A Wiki in the Desert
Log in

Difference between revisions of "Template:Herb"

From A Wiki in the Desert
 
(173 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:Item|name={{{name}}}|weight=1|bulk=1|image=Herbs {{{name}}}.jpg}}
+
<includeonly>{{#vardefine:name_clean|{{#replace:{{#replace: {{{name}}}| |}}|'|}}}}{{#vardefine:image|{{#ifexist: File:Herbs {{#var:name_clean}}.png|Herbs {{#var:name_clean}}.png|Herbs {{#var:name_clean}}.jpg}}}}{{Item|name={{{name}}}|weight=1|bulk=1|image={{#var:image}}|sculptable=False}}{{#set: Has image| [[File:{{#var:image}}]]}}
 
=== Properties ===
 
=== Properties ===
 
* Harvest Method: [[requires::Action/{{{method}}}|{{{method}}}]]
 
* Harvest Method: [[requires::Action/{{{method}}}|{{{method}}}]]
* Leaf Type: [[Has leaf::Herb/Leaf/{{{leaf}}}|{{{leaf}}}]]
+
* Leaf Type: {{#if: {{{leaf|}}}|[[Has leaf::Herb/Leaf/{{{leaf}}}|{{{leaf}}}]]|Unknown}}
* Stem Type: [[Has stem::Herb/Stem/{{{stem}}}|{{{stem}}}]]
+
* Stem Type: {{#if: {{{stem|}}}|[[Has stem::Herb/Stem/{{{stem}}}|{{{stem}}}]]|Unknown}}
* Color: [[Has color::Herb/Color/{{{color}}}|{{{color}}}]]
+
* Color(s): {{#if: {{{color|}}}|{{#arraydefine:color|{{{color}}}}}{{#arrayprint:color|,&nbsp;|@@@@|[[Has color::Herb/Color/@@@@|@@@@]]}}|Unknown}}
 +
{{#set: rarity=Herb/Rarity/{{{rarity|Unknown}}}}}
 +
{{#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/@@@@}}|+sep=,}}
 +
{{HerbGallery| {{#replace:{{FULLPAGENAME}}|Herb/|}}}}
 +
}}
  
{{#ifeq: {{{similar|none}}}|none|=== Similar To ==={{#set: Is similar to={{{similar}}} }}
 
{{#arraydefine:similar|{{{similar}}}}}{{#arrayprint:similar|, |@@@@|[[Herb/@@@@|@@@@]]}}
 
}}}
 
 
[[Category:Herb]]
 
[[Category:Herb]]
 +
</includeonly><noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"name": {
 +
"type": "string",
 +
"required": true,
 +
"description": "The name of the herb",
 +
"example": "Allbright"
 +
},
 +
"method": {
 +
"description": "Method used to harvest this herb",
 +
"type": "string"
 +
},
 +
"leaf": {
 +
"description": "The style of leaf that describes this herb"
 +
},
 +
"stem": {
 +
"description": "The style of stem that describes this herb"
 +
},
 +
"color": {
 +
"description": "A comma seperated list of colors that represent this herb. Usually a primary and secondary color."
 +
},
 +
"rarity": {
 +
"type": "number"
 +
},
 +
"strength": {
 +
"type": "number",
 +
"description": "How much eating this herb affects your Strength",
 +
"default": "0"
 +
},
 +
"dexterity": {
 +
"type": "number",
 +
"description": "How much eating this herb affects your Dexterity",
 +
"default": "0"
 +
},
 +
"endurance": {
 +
"type": "number",
 +
"description": "How much eating this herb affects your Endurance",
 +
"default": "0"
 +
},
 +
"speed": {
 +
"type": "number",
 +
"description": "How much eating this herb affects your Speed",
 +
"default": "0"
 +
},
 +
"constitution": {
 +
"type": "number",
 +
"description": "How much eating this herb affects your Constitution",
 +
"default": "0"
 +
},
 +
"focus": {
 +
"type": "number",
 +
"description": "How much eating this herb affects your Focus",
 +
"default": "0"
 +
},
 +
"perception": {
 +
"type": "number",
 +
"description": "How much eating this herb affects your Perception",
 +
"default": "0"
 +
},
 +
"similar": {
 +
"description": "A comma seperated list of similar looking herbs",
 +
"type": "string"
 +
}
 +
}
 +
}
 +
</templatedata>
 +
</noinclude>

Latest revision as of 19:53, 25 May 2021

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the herb

Example
Allbright
Stringrequired
Methodmethod

Method used to harvest this herb

Stringoptional
Leafleaf

The style of leaf that describes this herb

Unknownoptional
Stemstem

The style of stem that describes this herb

Unknownoptional
Colorcolor

A comma seperated list of colors that represent this herb. Usually a primary and secondary color.

Unknownoptional
Rarityrarity

no description

Numberoptional
Strengthstrength

How much eating this herb affects your Strength

Default
0
Numberoptional
Dexteritydexterity

How much eating this herb affects your Dexterity

Default
0
Numberoptional
Enduranceendurance

How much eating this herb affects your Endurance

Default
0
Numberoptional
Speedspeed

How much eating this herb affects your Speed

Default
0
Numberoptional
Constitutionconstitution

How much eating this herb affects your Constitution

Default
0
Numberoptional
Focusfocus

How much eating this herb affects your Focus

Default
0
Numberoptional
Perceptionperception

How much eating this herb affects your Perception

Default
0
Numberoptional
Similarsimilar

A comma seperated list of similar looking herbs

Stringoptional