Template:Item Infobox: Difference between revisions

From Tiny Rogues Wiki
(Created page with "<noinclude> {{#cargo_declare:_table=Item_Infobox |Item Type = Wikitext |Rarity = Integer |Effect = Wikitext }} </noinclude> <includeonly> {{#cargo_store:_table=Item_Infobox}} <infobox> <title source="name"> <default><center><p style="color:{{#switch: {{{Rarity}}} | 1 = #7b7c85 | 2 = #61ceee | 3 = #e1c969 | 4 = #b100fc | 5 = #f64e00 | 6 = #00af00 | Grey }}; height:5px;font-size: {{#if: {{{HeaderSize|}}} | {{{H...")
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#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.