Difference between revisions of "Template:ValuableTable/row"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
-->{{#vardefine:Datastring|{{:Valuable_data|{{{1}}}}}}}<!-- | -->{{#vardefine:Datastring|{{:Valuable_data|{{{1}}}}}}}<!-- | ||
-- Separate values from datastring into individual variables. -- | -- Separate values from datastring into individual variables. -- | ||
-->{{#vardefine: | -->{{#vardefine:ItemID|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:Image|{{#explode: {{#var:Datastring}}|;|1}}}}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:InvSlots|{{#explode: {{#var:Datastring}}|;|2}}}}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:ItemDescription|{{#explode: {{#var:Datastring}}|;|4}}}}<!-- | ||
--- 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}}}} | ||
Line 21: | Line 20: | ||
| data-sort-value="{{#var:InvSlots}}" | {{#var:InvSlots}} | | data-sort-value="{{#var:InvSlots}}" | {{#var:InvSlots}} | ||
| {{#var:Price}} [[File:Gold.png|27x27px]] | | {{#var:Price}} [[File:Gold.png|27x27px]] | ||
| {{#if:{{#var:ItemDescription}}|{{#var:ItemDescription}}|{{ | | {{#if:{{#var:ItemDescription}}|{{#var:ItemDescription}}|{{1}}}} | ||
</includeonly> | </includeonly> | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude> | <noinclude>{{doc}}[[Category:Templates]]</noinclude> |
Revision as of 21:39, 14 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 | 1x1 | 50 | Common folk believe agate to bring good luck. It's often used to make cheap jewelry.
|