Template:Weapon Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
(Undo revision 29992 by Ceimir (talk))
Tag: Undo
 
(169 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{#cargo_declare:_table=Weapon_Infobox
{{#cargo_declare:_table=Weapon_Infobox
  |Weapon_Type = Wikitext
  |Weapon_Type = String
  |Weapon_Subtype = Wikitext
  |Attack_Type = String
  |Rarity = Wikitext
  |Rarity = String
  |Hand = Wikitext
  |Hand = Integer
  |Damage_Range = Wikitext
|DMGmin = Integer
  |APS = String
  |DMGmax = Integer
  |ManaDrain = String
  |APS = Integer
  |AttackRange = Wikitext
  |Capacity = Integer
|Reload = Integer
  |AttackRange = Integer
  |Effect = Wikitext
  |Effect = Wikitext
  |ProfSTR = String
  |ProfSTR = String
  |ProfDEX = String
  |ProfDEX = String
  |ProfINT = String
  |ProfINT = String
}}
|Tags = Wikitext
</noinclude>
}}</noinclude><includeonly>{{#cargo_store:_table=Weapon_Infobox}}
<includeonly>
{{#cargo_store:_table=Weapon_Infobox}}
<infobox>
<infobox>
   <title source="name">
   <title source="name">
     <default><center><p style="color:{{#switch: {{{Rarity}}} | C = #7b7c85 | U = #61ceee | R = #e1c969 | E = #b100fc | L = #f64e00 |  Grey }};height:5px;font-size: 0.8em;" >{{PAGENAME}}</p></center></default>
     <default><center><p style="color:{{#switch: {{{Rarity}}} | 1 = #7b7c85 | 2 = #61ceee | 3 = #e1c969 | 4 = #b100fc | 5 = #f64e00 |  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>{{PAGENAME}}.png</default></image>
  <image source="image"><default>{{PAGENAMEE}}.png</default></image>
<group>
<group>
<data source="Weapon_Type"><label>Weapon Type:</label><format></format></data>
<data source="Weapon_Type"><label><span style="color:#82838e; font-weight:bold">Type:</span></label></data>
<data source="Attack_Type"><label>Attack Type</label><format>{{#replaceset:{{{Attack_Type|}}}|/(\w+)/i=\1|Physical={{Physical}}[[Category:Physical]]|Slash={{Slash}} [[Category:Slash]]|Strike = {{Strike}} [[Category:Strike]]|Thrust={{Thrust}} [[Category:Thrust]]|AoE={{AoE}} [[Category:AoE]]|Lightning={{Lightning}} [[Category:Lightning]]‎ |Holy={{Holy}} [[Category:Holy]]‎|Fire={{Fire}} [[Category:Fire]]‎|Elemental={{Elemental}} [[Category:Elemental]]‎| Cold={{Cold}} [[Category:Cold]]‎| Poison = {{Poison}} [[Category:Poison]]‎| Dark = {{Dark}} [[Category:Dark]]‎| Magical = {{Magical}} [[Category:Magical]]‎| Sound = {{Sound}} [[Category:Sound]]‎|Nature = {{Nature}} [[Category:Nature]]‎}}</format></data>
<data source="Weapon_Subtype"><label><span style="color:#82838e; font-weight:bold">Subtype:</span></label></data>
         <data source="Rarity"><label>Rarity:</label><format> {{#ifeq: {{{Rarity}}} | C | [[Category:Common]][[:Category:Common|Common]] |}}{{#ifeq: {{{Rarity}}} | U | [[Category:Uncommon]][[:Category:Uncommon|Uncommon]] |}}{{#ifeq: {{{Rarity}}} | R | [[Category:Rare]][[:Category:Rare|Rare]] |}}{{#ifeq: {{{Rarity}}} | E | [[Category:Epic]][[:Category:Epic|Epic]] |}}{{#ifeq: {{{Rarity}}} | L | [[Category:Legendary]][[:Category:Legendary|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="Hand"><label>Handling:</label><format>{{#ifeq: {{{Hand}}} | 1 | {{#replaceset:{{{Hand|}}}|/(\w+)/i=[[Category:One-Handed]][[:Category:One-Handed|One-Handed]]}} |}}{{#ifeq: {{{Hand}}} | 2 | {{#replaceset:{{{Hand|}}}|/(\w+)/i=[[Category:Two-Handed]][[:Category:Two-Handed|Two-Handed]]}} |}}</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="DMGmin"><label><style="margin-top:35px">DMG:</p></label><format><p><b>{{{DMGmin}}}-{{{DMGmax}}} (+0)</b><br>{{#switch: {{{Rarity}}} | C = {{#expr:{{{DMGmin|}}} * 1.16}}-{{#expr:{{{DMGmax|}}} * 1.16}} (+1) <br> {{#expr:{{{DMGmin|}}} * 1.32}}-{{#expr:{{{DMGmax|}}} * 1.32}} (+2) <br> {{#expr:{{{DMGmin|}}} * 1.48}}-{{#expr:{{{DMGmax|}}} * 1.48}} (+3) <br>  {{#expr:{{{DMGmin|}}} * 1.64}}-{{#expr:{{{DMGmax|}}} * 1.64}} (+4) | U = {{#expr:{{{DMGmin|}}} * 1.13}}-{{#expr:{{{DMGmax|}}} * 1.13}} (+1) <br> {{#expr:{{{DMGmin|}}} * 1.26}}-{{#expr:{{{DMGmax|}}} * 1.26}} (+2) <br> {{#expr:{{{DMGmin|}}} * 1.39}}-{{#expr:{{{DMGmax|}}} * 1.39}} (+3) <br> {{#expr:{{{DMGmin|}}} * 1.52}}-{{#expr:{{{DMGmax|}}} * 1.52}} (+4) |  R = {{#expr:{{{DMGmin|}}} * 1.10}}-{{#expr:{{{DMGmax|}}} * 1.10}} (+1) <br> {{#expr:{{{DMGmin|}}} * 1.20}}-{{#expr:{{{DMGmax|}}} * 1.20}} (+2) <br> {{#expr:{{{DMGmin|}}} * 1.30}}-{{#expr:{{{DMGmax|}}} * 1.30}} (+3) <br> {{#expr:{{{DMGmin|}}} * 1.40}}-{{#expr:{{{DMGmax|}}} * 1.40}} (+4) |  E = {{#expr:{{{DMGmin|}}} * 1.07}}-{{#expr:{{{DMGmax|}}} * 1.07}} (+1) <br> {{#expr:{{{DMGmin|}}} * 1.14}}-{{#expr:{{{DMGmax|}}} * 1.14}} (+2) <br> {{#expr:{{{DMGmin|}}} * 1.21}}-{{#expr:{{{DMGmax|}}} * 1.21}} (+3) <br> {{#expr:{{{DMGmin|}}} * 1.28}}-{{#expr:{{{DMGmax|}}} * 1.28}} (+4) |  L = {{#expr:{{{DMGmin|}}} * 1.06}}-{{#expr:{{{DMGmax|}}} * 1.06}} (+1) <br> {{#expr:{{{DMGmin|}}} * 1.12}}-{{#expr:{{{DMGmax|}}} * 1.12}} (+2) <br> {{#expr:{{{DMGmin|}}} * 1.18}}-{{#expr:{{{DMGmax|}}} * 1.18}} (+3) <br> {{#expr:{{{DMGmin|}}} * 1.24}}-{{#expr:{{{DMGmax|}}} * 1.24}} (+4) |  ???}}</p></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="APS"><label>APS:</label></data>
<data source="AttackRange"><label><span style="color:#82838e; font-weight:bold">Range:</span></label></data>
<data source="Capacity"><label>Capacity:</label></data>
<data source="Damage_Range"><label><span style="color:#82838e; font-weight:bold">Damage:</span></label></data>
<data source="Reload"><label>Reload:</label> <format>{{{Reload}}}s</format></data>
<data source="APS"><label> <span style="color:#82838e; font-weight:bold">APS:</span></label></data>
<data source="AttackRange"><label>Range:</label></data>
<data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect:</span></label><format><p style=" padding-bottom:10px; padding-top:10px"><span style="text-align:center; font-size:13px; font-weight:bold;">{{{Effect}}}</p></format></data>
<data source="Effect"><label>Effect:</label></data>
<data source="Tags"><label><span style="color:#82838e; font-weight:bold">Tags:</span></label><format><p style=" padding-bottom:10px; padding-top:10px"><span style="text-align:center; font-size:13px; font-weight:bold;">{{{Tags}}}</p></format></data>
</group>
</group>
<group layout="horizontal" row-items="3">
<group layout="horizontal" row-items="3">
<data source="ProfSTR"><label><p style="color:#fa0e83">STR</p></label><default style="padding-left:32px">{{#if:{{{ProfDEX|}}}{{{ProfINT|}}}| - }}</default></data>
<data source="ProfSTR"><label><p style="color:#fa0e83">STR</p></label><default style="padding-left:50px">-</default><format><span style="color:#fa0e83; font-weight:bold"; font-size: 15px>{{{ProfSTR}}}</span></format></data>
<data source="ProfDEX"><label><p style="color:#8bdf7e">DEX</p></label><default>{{#if:{{{ProfSTR|}}}{{{ProfINT|}}}| - }}</default></data>
<data source="ProfDEX"><label><p style="color:#8bdf7e">DEX</p></label><default>-</default><format><span style="color:#8bdf7e; font-weight:bold; font-size: 15px">{{{ProfDEX}}}</span></format></data>
<data source="ProfINT"><label><p style="color:#1bc4f0">INT</p></label><default>{{#if:{{{ProfSTR|}}}{{{ProfDEX|}}}| - }}</default></data>
<data source="ProfINT"><label><p style="color:#1bc4f0">INT</p></label><default>-</default><format><span style="color:#1bc4f0; font-weight:bold; font-size: 15px">{{{ProfINT}}}</span></format></data>
</group>
</group>
<image source="Image"><default>{{#setmainimage:{{PAGENAMEE}}.gif}}</default></image>
</infobox>
</infobox>
 
</includeonly><includeonly>[[Category: Weapon]]</includeonly>{{#switch: {{{Rarity}}}
[[File:{{PAGENAME}}.gif|right|{{PAGENAME}} Attacking|]][[Category:Weapons]]<br>
| 1 = {{#css:.portable-infobox {border-color: #7b7c85;} }}
</includeonly>
| 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;} }}}}

Latest revision as of 19:02, 24 August 2024

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