Difference between revisions of "Template:ArtifactTable/row"
Jump to navigation
Jump to search
m (Add "#tag"s, to keep the formatting accordingly.) |
(Add ArtifactDescriptions to explode for Effects & Descriptions.) |
||
Line 2: | Line 2: | ||
--- Load complete datastring into a variable - to only load from the Artifact data page once. --- | --- Load complete datastring into a variable - to only load from the Artifact data page once. --- | ||
-->{{#vardefine:Datastring|{{:Artifact_data|{{{1}}}}}}}<!-- | -->{{#vardefine:Datastring|{{:Artifact_data|{{{1}}}}}}}<!-- | ||
-->{{#vardefine:StringsData|{{:ArtifactDescriptions|{{{1}}}}}}}<!-- | |||
-- Separate/Allocate values from datastring into individual variables. -- | -- Separate/Allocate values from datastring into individual variables. -- | ||
-->{{#vardefine:ItemID|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- | -->{{#vardefine:ItemID|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- | ||
Line 7: | Line 8: | ||
-->{{#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:ItemEffect|{{#explode: {{#var: | -->{{#vardefine:ItemEffect|{{#explode: {{#var:StringsData}}|;|0}}}}<!-- | ||
-->{{#vardefine:ItemDescription|{{#explode: {{#var: | -->{{#vardefine:ItemDescription|{{#explode: {{#var:StringsData}}|;|1}}}}<!-- | ||
--- Load translations that are used multiple times into variables. --- | --- Load translations that are used multiple times into variables. --- | ||
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ArtifactNames}}}}<!-- | -->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ArtifactNames}}}}<!-- | ||
Line 15: | Line 16: | ||
--- Define "Link" var, with a subpage verification. 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. --- | --- Define "Link" var, with a subpage verification. 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. --- | ||
-->{{#vardefine:Link|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}}} | -->{{#vardefine:Link|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}}} | ||
|- <!-- Starts a new table row | |- <!-- Starts a new table row & Display name --> | ||
| '''[[{{#var:Link}}|{{#if:{{#var:TranslateName}}|{{#var:TranslateName}}|{{{1}}}}}]]'''<!-- | | '''[[{{#var:Link}}|{{#if:{{#var:TranslateName}}|{{#var:TranslateName}}|{{{1}}}}}]]'''<!-- | ||
--- Display image, if exist --- | --- Display image, if exist --- | ||
Line 23: | Line 23: | ||
| {{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]] | ||
| {{#if:{{#var:TranslateEffect}} | | {{#if:{{#var:TranslateEffect}}|{{#var:ItemEffect}}|{{1}}}} | ||
| {{#if:{{#var:TranslateDescription}} | | {{#if:{{#var:TranslateDescription}}|{{#var:ItemDescription}}|{{1}}}}</includeonly><noinclude> | ||
{{doc}}[[Category:Templates]]</noinclude> | |||
<noinclude>{{doc}}[[Category:Templates]]</noinclude> |
Latest revision as of 04:35, 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 | Can be activated once per day. Sates 50% Thrist, replenishes 25% Max Health, and improves Condition of each body part by 15%. | A bronze jug in the form of a lion, expertly crafted on the Bronze Isles by an unknown master. Somehow this aquamanile found its way to Aldor, where it was blessed by the Archtheurgist of the High Hieron himself to serve as an eternal source of water to those dying of thirst - whenever emptied, it miraculously refills itself. |
Barbador the Lame's Atlas of Aldor | 3×2 | 600 | Using it reveals the terrain and certain locations across the entire global map. While it's in your inventory, grants +20% Fatigue Resistance and +10% Energy Restoration. |
The maps drawn by the renown Aldorian traveler, Barbador the Lame, are valued not only for incredible accuracy but also their powerful talismanic properties, which can fortify one's resolve during the most arduous journeys. |