模板:Rarity
此模板定义表格“Rarities”。 查看表格.
This template is intended to hold the sort orders for each rarity value.
e.g. Common - 1, Rare - 2
The sort order is intended to be used for tables that use the Cargo extension.
{{#cargo_query: tables=Items=I,Rarities=R |join on=I.rarity=R.name |fields =I.name ,I.rarity ,R.sortorder |format=template |template=item table/row |named args=yes
Then the sort order can be used in templates like so:
|data-sort-value="{{{sortorder}}}"|{{{rarity}}}