Template:Item Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
Tag: Reverted
(finally)
Tag: Manual revert
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
  |Effect = Wikitext
  |Effect = Wikitext
}}
}}
</noinclude><includeonly>
</noinclude><includeonly>{{#cargo_store:_table=Item_Infobox}}
{{#cargo_store:_table=Item_Infobox}}<infobox><title source="name"><default><center><p style="color:{{#switch: {{{Rarity}}}  
<infobox>
  <title source="name">
    <default><center><p style="color:{{#switch: {{{Rarity}}}  
       | 1 = #7b7c85  
       | 1 = #7b7c85  
       | 2  = #61ceee  
       | 2  = #61ceee  
Line 13: Line 15:
       | 6 = #00af00
       | 6 = #00af00
       |  Grey }};
       |  Grey }};
   height:5px;font-size: {{#if: {{{HeaderSize|}}} | {{{HeaderSize}}} | 1.1em  }};margin-bottom:40px; margin-top:20px">{{PAGENAME}}</p></center></default></title><image source="image"><default>{{PAGENAMEE}}.png</default></image><group><data source="Item_Type"><label><span style="color:#82838e; font-weight:bold">Item Type:</span></label><format>[[{{{Item_Type}}}]][[Category:{{{Item_Type}}}]]</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></group></infobox></includeonly>
   height:5px;font-size: {{#if: {{{HeaderSize|}}} | {{{HeaderSize}}} | 1.1em  }};margin-bottom:40px; margin-top:20px" >{{PAGENAME}}</p></center></default>
  </title>
<image source="image"><default>{{PAGENAMEE}}.png</default></image>
<group>
<data source="Item_Type"><label><span style="color:#82838e; font-weight:bold">Item Type:</span></label><format>[[{{{Item_Type}}}]][[Category:{{{Item_Type}}}]]</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>
</group>
</infobox></includeonly>

Latest revision as of 04:04, 1 December 2024

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