Difference between revisions of "Template:Valuable/doc"
Jump to navigation
Jump to search
old>AlchemistAdam |
old>Phoe nixx |
||
Line 1: | Line 1: | ||
{{Doc/start}} | {{Doc/start}} | ||
This is | This is valualbe template created for use together with the [[Template:Tooltip hover box]] template on a specific valuable's page or valuable's tooltip page. | ||
Usage: | Usage: The page itself must contain the valuable's data before this Template works. For example, if I wanted to create the [[Amethyst]] page, I'll add this code to the start of the page: | ||
<nowiki><includeonly>{{#switch: {{{1}}} | |||
|ItemType = Valuable | |||
|Description = This gem is prized for its rich color. | |||
|Price = 100 | |||
|#default = | |||
}}</includeonly></nowiki> | |||
This data is invisible on the page itself, thanks to the includeonly tags. | |||
Next, copy this code to [[Amethyst]] or [[Amethyst/Tooltip]] or [[Amethyst/anything]] page: | |||
<nowiki> | <nowiki> | ||
{{ {{{1|Tooltip hover box}}} | {{ {{{1|Tooltip hover box}}} | ||
|title = {{Valuable | |title= {{Valuable}} | ||
}}</nowiki> | |||
It will automatically load the hat's data and fill them into this format. Go to [[Witch Hat]] to see the result. | |||
}} | |||
< | |||
[[ | |||
{{Doc/end}} | {{Doc/end}} |
Revision as of 03:32, 9 October 2020
Documentation
[purge]
This is valualbe template created for use together with the Template:Tooltip hover box template on a specific valuable's page or valuable's tooltip page.
Usage: The page itself must contain the valuable's data before this Template works. For example, if I wanted to create the Amethyst page, I'll add this code to the start of the page:
<includeonly>{{#switch: {{{1}}} |ItemType = Valuable |Description = This gem is prized for its rich color. |Price = 100 |#default = }}</includeonly>
This data is invisible on the page itself, thanks to the includeonly tags.
Next, copy this code to Amethyst or Amethyst/Tooltip or Amethyst/anything page:
{{ {{{1|Tooltip hover box}}} |title= {{Valuable}} }}
It will automatically load the hat's data and fill them into this format. Go to Witch Hat to see the result.