Template:Weapon Infobox: Difference between revisions
From Tiny Rogues Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | |||
<infobox> | <infobox> | ||
<title source="name"> | <title source="name"> | ||
Line 7: | Line 7: | ||
<group> | <group> | ||
<data source="Weapon_Type"><label>Weapon Type:</label><format>{{#replaceset:{{{Weapon_Type|}}}|/(\w+)/i=[[Category:\1]][[:Category:\1|\1]]}}</format></data> | <data source="Weapon_Type"><label>Weapon Type:</label><format>{{#replaceset:{{{Weapon_Type|}}}|/(\w+)/i=[[Category:\1]][[:Category:\1|\1]]}}</format></data> | ||
<data source="Attack_Type"><label>Attack Type:</ | <data source="Attack_Type"><label>Attack Type</label><format>{{#replaceset:{{{Attack_Type|}}}|/(\w+)/i=\1|Physical={{Physical}}|Slash={{Slash}} |Strike = {{Strike}}|Thrust={{Thrust}}|AoE={{AoE}}|Lightning={{Lightning}}|Holy={{Holy}}|Fire={{Fire}}|Elemental={{Elemental}}| Cold={{Cold}} | Poison = {{Poison}} | Dark = {{Dark}} | Magical = {{Magical}} | Sound = {{Sound}} |Nature = {{Nature}} }}</format></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>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="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>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=" | <data source="DMGmin"><label><p 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="APS"><label>APS:</label></data> | <data source="APS"><label>APS:</label></data> | ||
<data source="Capacity"><label>Capacity:</label></data> | <data source="Capacity"><label>Capacity:</label></data> | ||
<data source="Reload"><label>Reload:</label> <format>{{{Reload}}}s</format></data> | <data source="Reload"><label>Reload:</label> <format>{{{Reload}}}s</format></data> | ||
<data source=" | <data source="AttackRange"><label>Range:</label></data> | ||
<data source="Effect"><label>Effect:</label></data> | <data source="Effect"><label>Effect:</label></data> | ||
</group> | </group> | ||
<group layout="horizontal" row-items="3"> | <group layout="horizontal" row-items="3"> | ||
<data source=" | <data source="ProfSTR"><label><p style="color:#fa0e83">STR</p></label><default style="padding-left:32px">{{#if:{{{ProfDEX|}}}{{{ProfINT|}}}| - }}</default></data> | ||
<data source=" | <data source="ProfDEX"><label><p style="color:#8bdf7e">DEX</p></label><default>{{#if:{{{ProfSTR|}}}{{{ProfINT|}}}| - }}</default></data> | ||
<data source=" | <data source="ProfINT"><label><p style="color:#1bc4f0">INT</p></label><default>{{#if:{{{ProfSTR|}}}{{{ProfDEX|}}}| - }}</default></data> | ||
</group> | </group> | ||
</infobox> | </infobox> | ||
[[File:{{PAGENAME}}.gif|right|{{PAGENAME}} Attacking|]] | [[File:{{PAGENAME}}.gif|right|{{PAGENAME}} Attacking|]][[Category:Weapons]] | ||
</includeonly> |