Template:Equipment Infobox: Difference between revisions

From Tiny Rogues Wiki
(Style change. Gray labels and color-coded rarity.)
(fix bug in code resulting in strange rarity appearance)
Line 26: Line 26:
<data source="Equipment_Type"><label><span style="color:#82838e; font-weight:bold">Equipment Type</span></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><span style="color:#82838e; font-weight:bold">Rarity:</span></label><format>  
   <data source="Rarity"><label><span style="color:#82838e; font-weight:bold">Rarity:</span></label><format>{{#ifeq: {{{Rarity}}} | 1 | {{Common}} |}} {{#ifeq: {{{Rarity}}} | 2 | {{Uncommon}} |}}{{#ifeq: {{{Rarity}}} | 3 | {{Rare}} |}}{{#ifeq: {{{Rarity}}} | 4 | {{Epic}} |}}{{#ifeq: {{{Rarity}}} | 5 | {{Legendary}} |}}</format></data>
    {{#ifeq: {{{Rarity}}} | 1 | {{Common}} |}}  
    {{#ifeq: {{{Rarity}}} | 2 | {{Uncommon}} |}}
    {{#ifeq: {{{Rarity}}} | 3 | {{Rare}} |}}
    {{#ifeq: {{{Rarity}}} | 4 | {{Epic}} |}}
    {{#ifeq: {{{Rarity}}} | 5 | {{Legendary}} |}}
  </format></data>
<data source="Equip_Load"><label><span style="color:#82838e; font-weight:bold">Equip Load</span></label></data>
<data source="Equip_Load"><label><span style="color:#82838e; font-weight:bold">Equip Load</span></label></data>
<data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect</span></label></data>
<data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect</span></label></data>

Revision as of 06:55, 31 December 2023

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