Template:SortableValue

From Thorium Mod Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:SortableValue/doc. (edit | history)

Template for showing prices in sortable tables. Uses the value of an item in copper coins (so, a value of 8 gold becomes 80000). Calls the {{Value}} template to format it, but also includes an undisplayed value first which will allow correct sorting.

Usage

To be used inside tables, so that it can be sorted on value.

{{SortableValue|Value of the item}}
Unnamed Parameter 1

Value of the item, e.g. 80000 for 8 gold coins.


Example:

  • The Blast Shield can be bought from a merchant for {{SortableValue|35000}}.

becomes:

  • The Blast Shield can be bought from a merchant for 3500035000*3 Gold Coin.png 50 Silver Coin.png.