Template:Consumable

From Stoneshard wiki
Revision as of 14:34, 13 May 2020 by old>Realpsojed (Consumables don't need sorting, so they don't need the properties template either.)
Jump to navigation Jump to search
Consumable
Consumable
{{:{{{1}}}|Properties1}}: {{:{{{1}}}|Values1}}{{:{{{1}}}|Properties2}}: {{:{{{1}}}|Values2}}{{:{{{1}}}|Properties3}}: {{:{{{1}}}|Values3}}{{:{{{1}}}|Properties4}}: {{:{{{1}}}|Values4}}{{:{{{1}}}|Properties5}}: {{:{{{1}}}|Values5}}{{:{{{1}}}|Properties6}}: {{:{{{1}}}|Values6}}{{:{{{1}}}|Properties7}}: {{:{{{1}}}|Values7}}{{:{{{1}}}|Properties8}}: {{:{{{1}}}|Values8}}{{:{{{1}}}|Properties9}}: {{:{{{1}}}|Values9}}{{:{{{1}}}|Properties10}}: {{:{{{1}}}|Values10}}{{:{{{1}}}|Properties11}}: {{:{{{1}}}|Values11}}{{:{{{1}}}|Properties12}}: {{:{{{1}}}|Values12}}{{:{{{1}}}|Properties13}}: {{:{{{1}}}|Values13}}
Consumable

Consumable
PriceConsumable
Template-info.png Documentation

This is consumable template created for use together with the Template:Tooltip hover box template on a specific consumable's page or consumable's tooltip page.

Usage: The page itself must contain the consumable's data before this Template works. For example, if I wanted to create the Agrimony page, I'll add this code to the start of the page and modify the values:

<includeonly>{{#switch: {{{1}}}
|ItemType = Ingredient
|Properties1 = Energy Replenishment
|Values1 = {{c|+|+5}}
|Properties2 = Health Restoration
|Values2 = {{c|+|+0.50% (45x)}}
|Properties3 = Immunity
|Values3 = {{c|+|+1%}}
|PropertyText = 
|Description = Agrimony has been valued for its healing qualities since olden times.
|Price = 10
|#default = 
}}</includeonly>

This data is invisible on the page itself, thanks to the includeonly tags.


Next, copy this code to Agrimony or Agrimony/Tooltip or Agrimony/anything page:

{{ {{{1|Tooltip hover box}}}
|title= {{Consumable}}
}}

It will automatically load the consumable's data and fill them into this format. Go to Agrimony to see the result.