Difference between revisions of "Template:Valuable/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>AlchemistAdam
m (14 revisions imported)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Doc/start}}
{{Doc/start}}
This is Valuable template created for use as an infobox on a specific Valuable tooltip page.
This is valuable template created for use together with the [[Template:Tooltip hover box]] template on a specific valuable's page or valuable's tooltip page.


Usage: Copy this code to any <valuable name>/Tooltip page and replace/fill in the values:
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 =
|title= {{Valuable}}
{{Valuable
}}</nowiki>
|Description = This inkwell used to be in possession of some elven scribe or tax collector.
It will automatically load the valuable's data and fill them into this format. Go to [[Amethyst]] to see the result.
|Price = 250
{{Doc/end}}
}}
}}
<noinclude>
[[Category:Item_tooltips]]
</noinclude>
</nowiki>
 
It will produce this result:
{{ {{{1|Tooltip hover box}}}
|title =
{{Valuable
|Description = This inkwell used to be in possession of some elven scribe or tax collector.
|Price = 250
}}
}}

Latest revision as of 21:38, 21 November 2021

Template-info.png Documentation

This is valuable 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 valuable's data and fill them into this format. Go to Amethyst to see the result.