A Wiki in the Desert
Log in

Difference between revisions of "Template:Herb"

From A Wiki in the Desert
Line 8: Line 8:
 
{{#ifexpr: {{{strength|0}}} != 0 or {{{dexterity|0}}} != 0 or {{{endurance|0}}} != 0 or {{{speed|0}}} != 0 or {{{constitution|0}}} != 0 or {{{focus|0}}} != 0 or {{{perception|0}}} > 0|=== Statistics===}}{{AttributeModifier|attribute=Strength|amount={{{strength|0}}}}}{{AttributeModifier|attribute=Dexterity|amount={{{dexterity|0}}}}}{{AttributeModifier|attribute=Endurance|amount={{{endurance|0}}}}}{{AttributeModifier|attribute=Speed|amount={{{speed|0}}}}}{{AttributeModifier|attribute=Constitution|amount={{{constitution|0}}}}}{{AttributeModifier|attribute=Focus|amount={{{focus|0}}}}}{{AttributeModifier|attribute=Perception|amount={{{perception|0}}}}}
 
{{#ifexpr: {{{strength|0}}} != 0 or {{{dexterity|0}}} != 0 or {{{endurance|0}}} != 0 or {{{speed|0}}} != 0 or {{{constitution|0}}} != 0 or {{{focus|0}}} != 0 or {{{perception|0}}} > 0|=== Statistics===}}{{AttributeModifier|attribute=Strength|amount={{{strength|0}}}}}{{AttributeModifier|attribute=Dexterity|amount={{{dexterity|0}}}}}{{AttributeModifier|attribute=Endurance|amount={{{endurance|0}}}}}{{AttributeModifier|attribute=Speed|amount={{{speed|0}}}}}{{AttributeModifier|attribute=Constitution|amount={{{constitution|0}}}}}{{AttributeModifier|attribute=Focus|amount={{{focus|0}}}}}{{AttributeModifier|attribute=Perception|amount={{{perception|0}}}}}
 
{{#ifeq: {{{similar|}}}|||{{#arraydefine:similar|{{{similar}}}}}=== Similar To ==={{#set: Is similar to={{#arrayprint:similar|,|@@@@|Herb/@@@@}}}}
 
{{#ifeq: {{{similar|}}}|||{{#arraydefine:similar|{{{similar}}}}}=== Similar To ==={{#set: Is similar to={{#arrayprint:similar|,|@@@@|Herb/@@@@}}}}
{{#arraydefine:similar|{{{similar}}}}}
+
<gallery mode="packed">{{#arraydefine:similar|{{{similar}}}}}{{
{{
 
 
   #loop: i
 
   #loop: i
 
   | 0                      <!-- loops start value for {{ #var:i }} -->
 
   | 0                      <!-- loops start value for {{ #var:i }} -->
Line 15: Line 14:
 
   | <nowiki/>{{#vardefine:herb|{{#arrayindex:similar|{{#var: i}}}}{{#vardefine:clean|{{#replace:{{#replace:{{#replace:{{#var:herb}}|Herb/|}}| |}}|'|}}}}}}
 
   | <nowiki/>{{#vardefine:herb|{{#arrayindex:similar|{{#var: i}}}}{{#vardefine:clean|{{#replace:{{#replace:{{#replace:{{#var:herb}}|Herb/|}}| |}}|'|}}}}}}
 
{{#ifexist: File:Herbs_{{#var:clean}}.png|Herbs {{#var:clean}}.png|Herbs {{#var:clean}}.jpg}}}} | [[Herb/{{#var:herb}}|{{#var:herb}}]]
 
{{#ifexist: File:Herbs_{{#var:clean}}.png|Herbs {{#var:clean}}.png|Herbs {{#var:clean}}.jpg}}}} | [[Herb/{{#var:herb}}|{{#var:herb}}]]
}}
+
}}</gallery>
 
[[Category:Herb]]
 
[[Category:Herb]]

Revision as of 20:40, 13 May 2021

{{{name}}}
[[File:Herbs {{{name}}}.jpgProperty "Has image" (as page type) with input value "File:Herbs {{{name}}}.jpg" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.|250px|{{{name}}}]]
(Item)
Weight 1
Bulk 1


Property "Has name" (as page type) with input value "{{{name}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

Properties

{{#ifeq: |||=== Similar To ===Property "Is similar to" (as page type) with input value "Herb/Template:(({similarTemplate:))}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.