Template:Equipment Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
(Style change. Gray labels and color-coded rarity.)
Line 24: Line 24:
<group>
<group>
<header><center>Stats</center></header>
<header><center>Stats</center></header>
<data source="Equipment_Type"><label>Equipment Type</label><format>[[{{{Equipment_Type}}}]] [[Category:{{{Equipment_Type}}}]]
<data source="Equipment_Type"><label><span style="color:#82838e; font-weight:bold">Equipment Type</span></label><format>[[{{{Equipment_Type}}}]] [[Category:{{{Equipment_Type}}}]]
   </format></data>
   </format></data>
   <data source="Rarity"><label>Rarity</label><format>  
   <data source="Rarity"><label><span style="color:#82838e; font-weight:bold">Rarity:</span></label><format>  
     {{#ifeq: {{{Rarity}}} | 1 | [[Category:Common]][[:Category:Common|Common]] |}}  
     {{#ifeq: {{{Rarity}}} | 1 | {{Common}} |}}  
     {{#ifeq: {{{Rarity}}} | 2 | [[Category:Uncommon]][[:Category:Uncommon|Uncommon]] |}}
     {{#ifeq: {{{Rarity}}} | 2 | {{Uncommon}} |}}
     {{#ifeq: {{{Rarity}}} | 3 | [[Category:Rare]][[:Category:Rare|Rare]] |}}
     {{#ifeq: {{{Rarity}}} | 3 | {{Rare}} |}}
     {{#ifeq: {{{Rarity}}} | 4 | [[Category:Epic]][[:Category:Epic|Epic]] |}}
     {{#ifeq: {{{Rarity}}} | 4 | {{Epic}} |}}
     {{#ifeq: {{{Rarity}}} | 5 | [[Category:Legendary]][[:Category:Legendary|Legendary]] |}}
     {{#ifeq: {{{Rarity}}} | 5 | {{Legendary}} |}}
   </format></data>
   </format></data>
<data source="Equip_Load"><label>Equip Load</label></data>
<data source="Equip_Load"><label><span style="color:#82838e; font-weight:bold">Equip Load</span></label></data>
<data source="Effect"><label>Effect</label></data>
<data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect</span></label></data>
<data source="Attunement"><label>Attunement</label></data>
<data source="Attunement"><label><span style="color:#82838e; font-weight:bold">Attunement</span></label></data>
</group>
</group>
</infobox>
</infobox>

Revision as of 06:54, 31 December 2023

This template defines the table "Equipment_Infobox". View table.