Difference between revisions of "Template:Valuable"

From Stoneshard wiki
Jump to navigation Jump to search
old>AlchemistAdam
old>AlchemistAdam
Line 5: Line 5:
|'''This item may interest some merchants.'''
|'''This item may interest some merchants.'''
|-
|-
|style="color: #9d7969; text-align: justify"|<hr style="height: 2px; background-color: #33323f; box-shadow: 0 2px #13121d; margin: 10px 0 10px 0;"><br>
|style="color: #9d7969; text-align: justify"|<hr style="height: 2px; background-color: #33323f; box-shadow: 0 2px #13121d; margin: 10px 0 10px 0;">
|-
|'''{{{Description}}}'''
|'''{{{Description}}}'''
|<div style="float: right;">[[File:Gold Icon.png|18px|alt=Price|link=|Price]]{{W|{{{Price}}}}}</div><br>
|<div style="float: right;">[[File:Gold Icon.png|18px|alt=Price|link=|Price]]{{W|{{{Price}}}}}</div><br>

Revision as of 22:21, 3 July 2020


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.