Template:Item Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{#cargo_declare:_table=Item_Infobox
{{#cargo_declare:_table=Item_Infobox
  |Item_Type = Wikitext
  |Item_Type = Wikitext
|Rarity = Integer
  |Effect = Wikitext
  |Effect = Wikitext
}}
}}
Line 22: Line 21:
  <image source="image"><default>{{PAGENAMEE}}.png</default></image>
  <image source="image"><default>{{PAGENAMEE}}.png</default></image>
<group>
<group>
<data source="Item_Type"><label><span style="color:#82838e; font-weight:bold">Equipment Type:</span></label><format>[[{{{Equipment_Type}}}]] [[Category:{{{Equipment_Type}}}]]
<data source="Item_Type"><label><span style="color:#82838e; font-weight:bold">Item Type:</span></label><format>[[{{{Item_Type}}}]][[Category:{{{Item_Type}}}]]</format></data>
  </format></data>
   <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>
   <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>
<data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect:</span></label><format><p style="padding-top:10px; padding-bottom:10px">{{{Effect}}}</p></format></data>
<data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect:</span></label><format><p style="padding-top:10px; padding-bottom:10px">{{{Effect}}}</p></format></data>
</group>
</group>
</infobox>{{#switch: {{{Rarity}}}
</infobox>
| 1 = {{#css:.portable-infobox {border-color: #7b7c85;} }}
| 2 = {{#css:.portable-infobox {border-color: #61ceee;} }}
| 3 = {{#css:.portable-infobox {border-color: #e1c969;} }}
| 4 = {{#css:.portable-infobox {border-color: #b100fc;} }}
| 5 = {{#css:.portable-infobox {border-color: #f64e00;} }}
| 6 = {{#css:.portable-infobox {border-color: #00af00;} }}}}

Latest revision as of 20:02, 22 January 2024

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