Template:Harvestable: Difference between revisions
Jump to navigation
Jump to search
(improve {{{locs}}} variable and improve example) |
m (better example) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{sing|}}}|{{{sing|}}}  |}}{{name}} is a [[harvestry|harvestable]] {{{kingdom|plant}}} that can be found within the {{favilink|{{{loc|salt marsh}}}}}{{#if:{{{locs|}}}| or {{{locs|}}}|}}. When harvested, a ripe {{name}} will yield a single {{favilink|{{{yield|vinewafer}}}}}. Upon creation, each {{name}} has a 1:{{{chance|5}}} chance of spawning ripe and does not ripen over time. A ripe {{name}} can be identified by their {{{ripe|green leaves}}}, while an unripe {{name}} has {{{unripe|black leaves}}}.</includeonly><noinclude> | <includeonly>{{#if:{{{sing|}}}|{{{sing|}}}  |}}{{name}} is a [[harvestry|harvestable]] {{{kingdom|plant}}} that can be found within the {{favilink|{{{loc|salt marsh}}}}}{{#if:{{{locs|}}}| or {{{locs|}}}|}}. When harvested, a ripe {{name}} will yield a single {{favilink|{{{yield|vinewafer}}}}}. Upon creation, each {{name}} has a 1:{{{chance|5}}} chance of spawning ripe and does not ripen over time. A ripe {{name}} can be identified by their {{{ripe|green leaves}}}, while an unripe {{name}} has {{{unripe|black leaves}}}.</includeonly><noinclude> | ||
Creates a paragraph describing a harvestable plant or other harvestable object. | Creates a paragraph describing a harvestable plant or other harvestable object. | ||
Line 34: | Line 33: | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
<nowiki>{{Harvestable|sing=A|loc=Bethesda Susa|locs=underground}}</nowiki> | <nowiki>{{Harvestable|sing=A|loc=Bethesda Susa|locs=underground|yield=bop cheek|chance=7|ripe=blue and purple color|unripe=green and black color}}</nowiki> | ||
</pre> | </pre> | ||
{{Harvestable|sing=A|loc=Bethesda Susa|locs=underground}} | {{Harvestable|sing=A|loc=Bethesda Susa|locs=underground|yield=bop cheek|chance=7|ripe=blue and purple color|unripe=green and black color}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 14:59, 9 June 2022
Creates a paragraph describing a harvestable plant or other harvestable object.
Parameter | Description |
---|---|
sing
|
The article to appear in front of the harvestable's name at the beginning of the sentence |
kingdom
|
The noun used to describe the category of harvestable. "plant" by default. |
loc
|
The primary location where the harvestable is found. This will be converted into a favilink. |
locs
|
Additional secondary locations where the harvestable is found. This will be treated as a simple string that continues the location sentence after a connecting "or" |
yield
|
The single object yielded when the harvestable is harvested. |
chance
|
A number which will be converted into the string "has a 1:<NUMBER> chance of spawning ripe and does not ripen over time." |
ripe
|
a description of the harvestable when ripe, such as "green leaves". Will be converted into the phrase "can be identified by their <RIPE_PHRASE>" |
unripe
|
a description of the harvestable when unripe, such as "black leaves". Will be converted into the phrase "while an unripe <NAME> has <UNRIPE_PHRASE>" |
Example
{{Harvestable|sing=A|loc=Bethesda Susa|locs=underground|yield=bop cheek|chance=7|ripe=blue and purple color|unripe=green and black color}}
A Harvestable is a harvestable plant that can be found within the Bethesda Susa or underground. When harvested, a ripe Harvestable will yield a single bop cheek. Upon creation, each Harvestable has a 1:7 chance of spawning ripe and does not ripen over time. A ripe Harvestable can be identified by their blue and purple color, while an unripe Harvestable has green and black color.