Difference between revisions of "Template:ContainerTable"

From Stoneshard wiki
Jump to navigation Jump to search
(Add Translation checks to use the correct template/table.)
m (Add more lines, for upto 30 items.)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
     -->{{#vardefine:Index|&#8239;&bull;&#8239;}}<!--
     -->{{#vardefine:Index|&#8239;&bull;&#8239;}}<!--
     --- 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}}}}<!--
Line 35: Line 35:
     -->{{#if:{{#explode:{{#var:ItemList}}|;|17}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|17}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|18}}|{{#var:Index}}| |- }}}}<!--
     -->{{#if:{{#explode:{{#var:ItemList}}|;|17}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|17}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|18}}|{{#var:Index}}| |- }}}}<!--
     -->{{#if:{{#explode:{{#var:ItemList}}|;|18}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|18}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|19}}|{{#var:Index}}| |- }}}}<!--
     -->{{#if:{{#explode:{{#var:ItemList}}|;|18}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|18}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|19}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|19}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|19}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|20}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|20}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|20}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|21}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|21}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|21}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|22}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|22}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|22}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|23}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|23}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|23}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|24}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|24}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|24}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|25}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|25}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|25}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|26}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|26}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|26}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|27}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|27}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|27}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|28}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|28}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|28}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|29}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|29}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|29}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|30}}|{{#var:Index}}| |- }}}}<!--
    -->{{#if:{{#explode:{{#var:ItemList}}|;|30}}|'''[[{{Translate|{{#replace:{{#explode:{{#var:ItemList}}|;|30}}|_|&#8239;}}|{{#var:TranslationTable}}}}]]'''{{#if:{{#explode:{{#var:ItemList}}|;|31}}|{{#var:Index}}| |- }}}}<!--
--></includeonly><noinclude>{{doc|Template:ContainerTable}}[[Category:Templates]]</noinclude>
--></includeonly><noinclude>{{doc|Template:ContainerTable}}[[Category:Templates]]</noinclude>

Latest revision as of 06:56, 20 February 2025


This article is a stub. You can help Stoneshard wiki by expanding it.

Template-info.png Documentation

WORKING: [INCOMPLETE/NOT IMPLEMENTED]
DO NOT DELETE &#8239; & &bull;.

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

Armor Pig-Faced Bascinet • Arcanist Cowl • Ceremonial Armor • Work Gloves
Weapons Bollock Dagger • Footman Sword • Rondel • Recruit Bastard Sword • Footman Axe • War Pick • Knight Warhammer • Fancy Sword • Ornate Dagger • Orient Staff • Militia Spear
Jewelry Gold Ring • Pearl Necklace • Golden Fancy Ring • Golden Patterned Ring • Sapphire Talisman
Consumables
Loot Emerald • Sapphire • Sea Pearls • Ruby Beads • Exquisite Casket • Golden Earrings • Amethyst • Aquamarine • Topaz • Golden Brooch • Old Agraffe • Silver Buckle • Golden Cup • Diamond • Ruby
Treatises