Difference between revisions of "Template:ContainerTable"
Jump to navigation
Jump to search
(Add Translation template. Based on SUBPAGENAME_ItemNames, from Language templates. Therefore, can be implemented for any existing and new languages.) |
m (Quick fix test.) |
||
| Line 14: | Line 14: | ||
| style="border: 5px solid #1e1a31;"|[[{{{2}}}]]<!-- First Column/Cell & Category --> | | style="border: 5px solid #1e1a31;"|[[{{{2}}}]]<!-- First Column/Cell & Category --> | ||
! colspan="5" style="border: 5px solid #1e1a31; border-collapse: collapse;" |<!-- Display items | ! colspan="5" style="border: 5px solid #1e1a31; border-collapse: collapse;" |<!-- Display items | ||
-->{{#if:{{#explode:{{#var:ItemList}}|;|0}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|0}}|_| }}| | -->{{#if:{{#explode:{{#var:ItemList}}|;|0}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|0}}|_| }}|ItemNames}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|1}}|{{#var:Index}}| |- }}}}<!-- | ||
-->{{#if:{{#explode:{{#var:ItemList}}|;|1}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|1}}|_| }}|{{SUBPAGENAME}}_ItemNames}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|2}}|{{#var:Index}}| |- }}}}<!-- | -->{{#if:{{#explode:{{#var:ItemList}}|;|1}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|1}}|_| }}|{{SUBPAGENAME}}_ItemNames}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|2}}|{{#var:Index}}| |- }}}}<!-- | ||
-->{{#if:{{#explode:{{#var:ItemList}}|;|2}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|2}}|_| }}|{{SUBPAGENAME}}_ItemNames}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|3}}|{{#var:Index}}| |- }}}}<!-- | -->{{#if:{{#explode:{{#var:ItemList}}|;|2}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|2}}|_| }}|{{SUBPAGENAME}}_ItemNames}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|3}}|{{#var:Index}}| |- }}}}<!-- | ||
Revision as of 09:30, 19 February 2025
| This article is a stub. You can help Stoneshard wiki by expanding it. |
WORKING: [IMPLEMENTED]
DO NOT DELETE THESE   and •.
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