Difference between revisions of "Template:Valuable"
Jump to navigation
Jump to search
old>Phoe nixx (add PropertyText as it differs for some valuables and junk. the text isn't also bolded) |
old>Phoe nixx |
||
Line 10: | Line 10: | ||
|style="float: right;"|[[File:Gold Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{:{{ROOTPAGENAME}}|Price}}}} | |style="float: right;"|[[File:Gold Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{:{{ROOTPAGENAME}}|Price}}}} | ||
|- | |- | ||
|style="text-align: center;"|[[File:{{#if:{{{Image|}}}|{{{ | |style="text-align: center;"|[[File:{{#if:{{:{{ROOTPAGENAME}}|Image}}|{{#if:{{:{{ROOTPAGENAME}}|Image}}|{{ROOTPAGENAME}}.png}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{ROOTPAGENAME}}|ValuableNames}}|{{Translate|{{ROOTPAGENAME}}|ValuableNames}}]]{{#if:{{:{{ROOTPAGENAME}}|Image2}}|[[File:{{#if:{{:{{ROOTPAGENAME}}|Image2}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{ROOTPAGENAME}}|ValuableNames}}|{{Translate|{{ROOTPAGENAME}}|ValuableNames}}]]}} | ||
|}</includeonly> | |}</includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 20:02, 12 October 2020
Documentation
[purge]
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.