Template:Equipment Infobox: Difference between revisions

From Tiny Rogues Wiki
(testing padding change)
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{#cargo_declare:_table=Equipment_Infobox
{{#cargo_declare:_table=Equipment_Infobox
  |Equipment_Type = String
  |Equipment_Type = String
  |Rarity = Integer
  |Rarity = String
  |Equip_Load = Integer
  |Equip_Load = String
  |Effect = Wikitext
  |Effect = Wikitext
  |SetEffect = Wikitext
  |SetEffect = Wikitext
  |SetName = Wikitext
  |SetName = Wikitext
  |SetItems = Wikitext
  |SetItems = Wikitext
  |Attunement = Integer
  |Attunement = String
  |Image = File
  |Image = File
}}</noinclude><includeonly>
}}</noinclude><includeonly>
Line 22: Line 22:
       | 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>
       height:5px;font-size:22px;margin-bottom:40px; margin-top:20px" >{{PAGENAME}}</p></center></default>
   </title>
   </title>
  <image source="image"><default>{{PAGENAMEE}}.png</default></image>
  <image source="image"><default>{{PAGENAMEE}}.png</default></image>
Line 30: Line 30:
   <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}} |}}{{#ifeq: {{{Rarity}}} | 6 | {{Set}} |}}</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}} |}}{{#ifeq: {{{Rarity}}} | 6 | {{Set}} |}}</format></data>
<data source="Equip_Load"><label><span style="color:#82838e; font-weight:bold">Equip Load:</span></label><format><span style=font-weight:bold">+{{{Equip_Load}}}</span></format></data>
<data source="Equip_Load"><label><span style="color:#82838e; font-weight:bold">Equip Load:</span></label><format><span style=font-weight:bold">+{{{Equip_Load}}}</span></format></data>
<data source="Effect"><label><span style="color:#82838e; font-weight:bold; padding-right:30px">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>
<data source="SetEffect"><label><span style="color:#82838e; font-weight:bold">{{{SetName}}}</span></label></data>
<data source="SetEffect"><label><span style="color:#82838e; font-weight:bold">{{{SetName}}}</span></label></data>
<data source="SetItems"><label><span style="color:#82838e; font-weight:bold">Set Items:</span></label><format><p style="color:#00af00; padding-top:10px; padding-bottom:10px; font-weight:bold">{{{SetItems}}}</p></format></data>
<data source="SetItems"><label><span style="color:#82838e; font-weight:bold">Set Items:</span></label><format><p style="color:#00af00; padding-top:10px; padding-bottom:10px; font-weight:bold">{{{SetItems}}}</p></format></data>
Line 36: Line 36:
</group>
</group>
  <image source="Image" class="gifresize"><default>{{Image}}</default></image>
  <image source="Image" class="gifresize"><default>{{Image}}</default></image>
</infobox>{{#switch: {{{Rarity}}}
</infobox>{{#css:.skin-timeless #mw-content-text .pi-data-label {padding-right:10px} }}{{#switch: {{{Rarity}}}
| 1 = {{#css:.portable-infobox {border-color: #7b7c85;} }}
| 1 = {{#css:.portable-infobox {border-color: #7b7c85;} }}
| 2 = {{#css:.portable-infobox {border-color: #61ceee;} }}
| 2 = {{#css:.portable-infobox {border-color: #61ceee;} }}

Latest revision as of 21:23, 2 February 2024

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