Template:Harvestable

From Caves of Qud Wiki
Revision as of 14:54, 9 June 2022 by Egocarib (talk | contribs) (Fix blank space appearing in front of sentence when {{{sing}}} is not provided)
Jump to navigation Jump to search


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.
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

A Harvestable is a harvestable plant that can be found within the salt marsh. When harvested, a ripe Harvestable will yield a single vinewafer. Upon creation, each Harvestable has a 1:5 chance of spawning ripe and does not ripen over time. A ripe Harvestable can be identified by their green leaves, while an unripe Harvestable has black leaves.