Difference between revisions of "Template:ContainerTable"
Jump to navigation
Jump to search
(Add Translation checks to use the correct template/table.) |
m (Add Treatises verification for Translation.) |
||
Line 9: | Line 9: | ||
-->{{#vardefine:Index| • }}<!-- | -->{{#vardefine:Index| • }}<!-- | ||
--- Define which Translation "table" to use for the ItemNames --- | --- Define which Translation "table" to use for the ItemNames --- | ||
-->{{#vardefine:TranslationTable|{{#ifeq:{{{2}}}|Jewelry|ValuableNames|{{#ifeq:{{{2}}}|Loot|ValuableNames|{{#ifeq:{{{2}}}|Consumables|ConsumableNames|ItemNames}}}}}}}}<!-- | -->{{#vardefine:TranslationTable|{{#ifeq:{{{2}}}|Jewelry|ValuableNames|{{#ifeq:{{{2}}}|Loot|ValuableNames|{{#ifeq:{{{2}}}|Consumables|ConsumableNames|{{#ifeq:{{{2}}}|Treatises|Treatises|ItemNames}}}}}}}}}}<!-- | ||
--- Load translations that are used multiple times into variables. --- | --- Load translations that are used multiple times into variables. --- | ||
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ContainerName}}}}<!-- | -->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ContainerName}}}}<!-- |
Revision as of 13:18, 19 February 2025
![]() |
This article is a stub. You can help Stoneshard wiki by expanding it. |
WORKING: [INCOMPLETE/NOT IMPLEMENTED]
DO NOT DELETE   & •.
This Template uses Container data.
Syntax
{{ContainerTable|(ContainerName)|(Category)}}
Usage
The template, must be used with an outer table, like so:
{| cellpadding="5" style="text-align: center; margin-left: left; border: 5px solid #1e1a31; background-color: #231f36; width: -webkit-fill-available; width: -moz-fill-available;" |- {{ContainerTable|Hero Sarcophagus|Armor}} {{ContainerTable|Hero Sarcophagus|Weapons}} {{ContainerTable|Hero Sarcophagus|Jewelry}} {{ContainerTable|Hero Sarcophagus|Consumables}} {{ContainerTable|Hero Sarcophagus|Loot}} {{ContainerTable|Hero Sarcophagus|Treatises}} |}
If the container has an empty category, you can call it or not, it will only show a blank row.
Example
Example for Hero Sarcophagus