Difference between revisions of "Template:ValuableTable/row"
Jump to navigation
Jump to search
(Test Translate template fix) |
(Test translation fix.) |
||
| Line 28: | Line 28: | ||
| {{slots|{{#explode: {{#var:InvSlots}}|x|0}}|{{#explode: {{#var:InvSlots}}|x|1}}}} | | {{slots|{{#explode: {{#var:InvSlots}}|x|0}}|{{#explode: {{#var:InvSlots}}|x|1}}}} | ||
| {{#var:Price}} [[File:Gold.png|27x27px]] | | {{#var:Price}} [[File:Gold.png|27x27px]] | ||
| {{Translate|{{#var:ItemDescription}}|ValuableDescriptions}} | | {{#if:{{Translate|{{#var:ItemDescription}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|ValuableDescriptions|{{SUBPAGENAME}}_ValuableDescriptions}}}}|{{Translate|{{#var:ItemDescription}}|ValuableDescriptions}}}} | ||
</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude> | </includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude> | ||
Revision as of 20:20, 22 January 2025
| 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.
Debug
For future modifications or debugging, you can add this, after the "ItemDescription" variable (Open Source to verify code):
[...]
|{{{1}}}
Base Image:
Variants:
Datastring:
Examples
Single Image
| Item | Inv. Slots | Price |
Description |
|---|---|---|---|
| Agate | 50× | Common folk believe agate to bring good luck. It's often used to make cheap jewelry. |
Multiple Images
| Item | Inv. Slots | Price |
Description |
|---|---|---|---|
| Horse Pelt | 60× | Peasants only kill horses that are hopelessly sick or already half-dead from old age. |
|
| Rabbit Pelt | 40-50× | Despite how cautious and skittish rabbits can be, hunting one down isn't that hard. Their pelts are usually used to make clothes. |