Difference between revisions of "Template:ValuableTable/row"
Jump to navigation
Jump to search
(Fix Changed slots var parsing.) |
(Add subpage verification. Rather than using a translation based on the subpage, it will search for it.) |
||
Line 10: | Line 10: | ||
--- Load translations that are used multiple times into variables. --- | --- Load translations that are used multiple times into variables. --- | ||
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | -->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | ||
<!-- Determine the subdomain and fetch the appropriate description translation template. --> | |||
{{#vardefine:ItemDescription|{{#if:{{SUBPAGENAME}}|{{:{{SUBPAGENAME}}_ValuableDescriptions|{{{1}}}}}|{{#var:ItemDescription}}}}}} | |||
|- | |- | ||
<!-- Check if we are on a subpage. If subpagename = pagename, we are not on a subpage, therefore URL becomes "item name". If we are on a subpage, URL becomes "item name/subgpagename". Used for other languages. --> | <!-- Check if we are on a subpage. If subpagename = pagename, we are not on a subpage, therefore URL becomes "item name". If we are on a subpage, URL becomes "item name/subgpagename". Used for other languages. --> |
Revision as of 01:01, 15 January 2025
Documentation
[purge]
This article is a stub. You can help Stoneshard wiki by expanding it. |
This Template replicates the logic used for the Template:WeaponTable/row.
Syntax
{{ValuableTable/row|Agate}}
Usage
It should be used with a 'header', right before it.
{{ValuableTable/head}}
{{ValuableTable/row|Agate}}
.
Any Valuables added in Valuable Data, can be used with the '/row' template.
Example
Item | Inv. Slots | Price | Description
|
---|---|---|---|
Agate | 1×1 | 50 | Row ValuableDescriptions
|