Difference between revisions of "Template:ArtifactTable/row"
Jump to navigation
Jump to search
(Add base logic, based on ValuableTable/row.) |
(Test Item, Inv & Price working. Effect & Description still blank. Needs ArtifactDescription to be added + fallback condition.) |
||
Line 7: | Line 7: | ||
-->{{#vardefine:InvSlots|{{#explode: {{#var:Datastring}}|;|2}}}}<!-- | -->{{#vardefine:InvSlots|{{#explode: {{#var:Datastring}}|;|2}}}}<!-- | ||
-->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | -->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | ||
-->{{vardefine: | -->{{vardefine:ItemEffect|{{#explode: {{#var:Datastring}}|;|4}}}}<!-- | ||
-->{{#vardefine:ItemDescription|{{#explode: {{#var:Datastring}}|;|5}}}}<!-- | -->{{#vardefine:ItemDescription|{{#explode: {{#var:Datastring}}|;|5}}}}<!-- | ||
--- Load translations that are used multiple times into variables. --- | --- Load translations that are used multiple times into variables. --- | ||
Line 17: | Line 17: | ||
| '''[[{{#var:Link}}|{{#if:{{#var:TranslateName}}|{{#var:TranslateName}}|{{{1}}}}}]]'''<!-- | | '''[[{{#var:Link}}|{{#if:{{#var:TranslateName}}|{{#var:TranslateName}}|{{{1}}}}}]]'''<!-- | ||
--- Display image, if exist --- | --- Display image, if exist --- | ||
-->{{#ifexist:File:{{#var: | -->{{#ifexist:File:{{#var:Image}}.png|[[File:{{#var:Image}}.png|center|alt={{#var:TranslateName}}|class=image2x|link={{#var:Link}}]]}} | ||
<!-- Display the rest of the data in the row --> | <!-- Display the rest of the data in the row --> | ||
| {{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]] | ||
| {{#var: | | {{#if:{{Translate|{{#var:ItemEffect}}|ArtifactDescriptions}}}} | ||
| {{#if:{{Translate|{{#var:ItemDescription}}|ArtifactDescriptions}}}}<!-- | | {{#if:{{Translate|{{#var:ItemDescription}}|ArtifactDescriptions}}}}<!-- | ||
--></includeonly> | --></includeonly> | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude> | <noinclude>{{doc}}[[Category:Templates]]</noinclude> |
Revision as of 00:34, 23 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:ValuableTable/row.
Syntax
{{ArtifactTable/row|Blessed Aquamanile}}
Usage
It should be used with a 'header', right before it.
{{ArtifactTable/head}}
{{ArtifactTable/row|Blessed Aquamanile}}
.
Any Artifacts added in Artifact Data, can be used with the '/row' template.
Examples
Item | Inv. Slots | Price | Effect | Description |
---|---|---|---|---|
Blessed Aquamanile | 2×2 | 600 | ||
Barbador the Lame's Atlas of Aldor | 3×2 | 600 |