A Wiki in the Desert
Log in

Difference between revisions of "Template:Herb"

From A Wiki in the Desert
Line 13: Line 13:
 
   | {{ #arraysize:similar}}
 
   | {{ #arraysize:similar}}
 
   | <nowiki/>
 
   | <nowiki/>
   {{#vardefine:herb|{{#arrayindex:similar|{{#var: i}}}}
+
   {{#vardefine:herb|
   {{#vardefine:clean{{#var: i}}|{{#replace:{{#replace:{{#replace:{{#var:herb}}|Herb/|}}| |}}|'|}}}}
+
    {{#arrayindex:similar|{{#var: i}}
* {{#var:clean{{#var: i}}}} {{#ifexist: File:Herbs_{{#var:clean{{#var: i}}}}.png|File:Herbs {{#var:clean{{#var: i}}}}.png|File:Herbs {{#var:clean{{#var: i}}}}.jpg}} {{!}} [[Herb/{{#var:herb}}|{{#var:herb}}]]<br>
+
  }}
 +
   {{#vardefine:clean|
 +
    {{#replace:
 +
      {{#replace:
 +
        {{#replace:
 +
          {{#var:herb}}|Herb/|
 +
        }}| |
 +
      }}|'|
 +
    }}
 +
  }}
 +
* {{#var:clean{{#var: i}}}}  
 
}}
 
}}
 
}}
 
}}
 
[[Category:Herb]]
 
[[Category:Herb]]

Revision as of 20:50, 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.