Difference between revisions of "Template:Consumable/doc"
Jump to navigation
Jump to search
old>Realpsojed (Created page with "{{Doc/start}} 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 pag...") |
m (4 revisions imported) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
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. | 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 | 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: | ||
<nowiki><includeonly>{{#switch: {{{1}}} | <nowiki><includeonly>{{#switch: {{{1}}} | ||
|ItemType = Ingredient | |ItemType = Ingredient | ||
|Properties1 = Energy Replenishment | |Properties1 = Energy Replenishment | ||
|Values1 = {{ | |Values1 = {{c|+|+5}} | ||
|Properties2 = Health Restoration | |Properties2 = Health Restoration | ||
|Values2 = {{ | |Values2 = {{c|+|+0.50% (45x)}} | ||
|Properties3 = Immunity | |Properties3 = Immunity | ||
|Values3 = {{ | |Values3 = {{c|+|+1%}} | ||
|PropertyText = | |||
|Description = Agrimony has been valued for its healing qualities since olden times. | |Description = Agrimony has been valued for its healing qualities since olden times. | ||
|Price = 10 | |Price = 10 |
Latest revision as of 21:22, 21 November 2021
Documentation
[purge]
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.