A Wiki in the Desert
Log in

Difference between revisions of "Template:Herb"

From A Wiki in the Desert
Line 1: Line 1:
{{Template:Item|name={{{name}}}|weight=1|bulk=1|image={{#ifexist: File:Herbs_{{#replace:{{{name}}}| |}}.png|Herbs {{#replace:{{{name}}}| |}}.png|Herbs {{#replace:{{{name}}}| |}}.jpg}}}}{{#set: Has image|File:{{#ifexist: File:Herbs_{{#replace:{{{name}}}| |}}.png|Herbs {{#replace:{{{name}}}| |}}.png|Herbs {{#replace:{{{name}}}| |}}.jpg}}}}
+
{{#vardefine:herbimage|{{#replace:{{#replace: {{{name}}}| |}}|'||}}{{Template:Item|name={{{name}}}|weight=1|bulk=1|image={{#ifexist: File:Herbs_{{#var:herbimage}}.png|Herbs {{#var:herbimage}}.png|Herbs {{#var:herbimage}}.jpg}}}}{{#set: Has image|File:{{#ifexist: File:Herbs_{{#var:herbimage}}.png|Herbs {{#var:herbimage}}.png|Herbs {{#var:herbimage}}.jpg}}}}
 
=== Properties ===
 
=== Properties ===
 
* Harvest Method: [[requires::Action/{{{method}}}|{{{method}}}]]
 
* Harvest Method: [[requires::Action/{{{method}}}|{{{method}}}]]

Revision as of 13:38, 14 May 2021

{{#vardefine:herbimage|{{{name}}}

{{{name}}}
{{{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