Template:Weapon Infobox: Difference between revisions

From Tiny Rogues Wiki
m (undo again)
Tag: Undo
m (undo again x2)
Tag: Undo
Line 14: Line 14:
<infobox>
<infobox>
   <title source="name">
   <title source="name">
     <default><center><p style="color:{{#switch: {{{Rarity}}}  
     <default><center><p style="color:{{#switch: {{{Rarity}}} | C = #7b7c85 | U = #61ceee | = #e1c969 | E = #b100fc | L = #f64e00 |  Grey }};height:5px;font-size: {{#if: {{{HeaderSize|}}} | {{{HeaderSize}}} | 1.1em  }};margin-bottom:20px; margin-top:20px" >{{PAGENAME}}</p></center></default>
      | 1 = #7b7c85  
      | 2 = #61ceee  
      | 3 = #e1c969  
      | 4 = #b100fc  
      | 5 = #f64e00  
      | 6 = #00af00
      |  Grey }};height:5px;font-size: {{#if: {{{HeaderSize|}}} | {{{HeaderSize}}} | 1.1em  }};margin-bottom:20px; 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>
<group>
<group>
<data source="Weapon_Type"><label><span style="color:#82838e; font-weight:bold">Type:</span></label></data>
<data source="Weapon_Type"><label><span style="color:#82838e; font-weight:bold">Type:</span></label></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}}} | C | {{Common}} |}}{{#ifeq: {{{Rarity}}} | U | {{Uncommon}} |}}{{#ifeq: {{{Rarity}}} | R | {{Rare}} |}}{{#ifeq: {{{Rarity}}} | E | {{Epic}}|}}{{#ifeq: {{{Rarity}}} | L | {{Legendary}}|}}</format></data>
         <data source="Hand"> <label><span style="color:#82838e; font-weight:bold">Hand:</span></label> <format>{{#ifeq: {{{Hand}}} | 1 | {{One-Handed}} |}} {{#ifeq: {{{Hand}}} | 2 | {{KW|2H}}|}}</format></data>
         <data source="Hand"> <label><span style="color:#82838e; font-weight:bold">Hand:</span></label> <format>{{#ifeq: {{{Hand}}} | 1 | {{One-Handed}} |}} {{#ifeq: {{{Hand}}} | 2 | {{KW|2H}}|}}</format></data>
<data source="ManaDrain"> <label><span style="color:#1dc1ee; font-weight:bold">Mana Drain:</span></label><format><span style="color:#1dc1ee; font-weight:bold">{{tt|{{{ManaDrain}}}[[File:IconMana.png|15px|link=]]|{{KW/Mana}} }}</span></format></data>     
<data source="ManaDrain"> <label><span style="color:#1dc1ee; font-weight:bold">Mana Drain:</span></label><format><span style="color:#1dc1ee; font-weight:bold">{{tt|{{{ManaDrain}}}[[File:IconMana.png|15px|link=]]|{{KW/Mana}} }}</span></format></data>     

Revision as of 16:55, 27 January 2024

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