Difference between revisions of "Template:Herb"
From A Wiki in the Desert
| Line 9: | Line 9: | ||
{{#ifeq: {{{similar|}}}|||{{#arraydefine:similar| | {{#ifeq: {{{similar|}}}|||{{#arraydefine:similar| | ||
{{{similar}}}}}=== Similar To ==={{#set: Is similar to={{#arrayprint:similar|,|@@@@|Herb/@@@@}}}} | {{{similar}}}}}=== Similar To ==={{#set: Is similar to={{#arrayprint:similar|,|@@@@|Herb/@@@@}}}} | ||
| − | {{#arraydefine:similar|{{{similar}}}}} | + | {{#arraydefine:similar|{{{similar}}}}} |
{{#loop: i | {{#loop: i | ||
| 0 | | 0 | ||
| {{ #arraysize:similar}} | | {{ #arraysize:similar}} | ||
| <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: | + | {{#ifexist: Image:Herbs_{{#var:clean}}.png|Image:Herbs {{#var:clean}}.png|Image:Herbs {{#var:clean}}.jpg}} {{!}} [[Herb/{{#var:herb}}|{{#var:herb}}]]<br/> |
}} | }} | ||
| − | |||
}} | }} | ||
[[Category:Herb]] | [[Category:Herb]] | ||
Revision as of 20:55, 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) | ||
|
||
|
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
- Harvest Method: {{{method}}}
- Leaf Type: {{{leaf}}}
- Stem Type: {{{stem}}}
- Color(s): [[Has color::Herb/Color/Template:(({colorTemplate:))}|Template:(({colorTemplate:))}]]
- Rarity: Unknown