Difference between revisions of "Template:Weapon"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
m (added missing durability)
old>Realpsojed
m (added includeonly tag)
Line 48: Line 48:


</noinclude>
</noinclude>
<includeonly>
{| class="wikitable" style="width: 20%;"
{| class="wikitable" style="width: 20%;"
|colspan="2" style="text-align:center;"|{{ #if:{{{WeaponName|}}}|{{{WeaponName}}} <br />{{{WeaponRarity}}} {{{WeaponType}}}}}
|colspan="2" style="text-align:center;"|{{ #if:{{{WeaponName|}}}|{{{WeaponName}}} <br />{{{WeaponRarity}}} {{{WeaponType}}}}}
Line 81: Line 82:
|colspan="2" style="text-align:center;"|{{ #if:{{{Flavortext|}}}|{{{Flavortext}}}}}
|colspan="2" style="text-align:center;"|{{ #if:{{{Flavortext|}}}|{{{Flavortext}}}}}
|}
|}
<includeonly>

Revision as of 14:20, 12 February 2020

This is weapon template created for use anywhere on the wiki. Usage: Copy this code and replace/fill in the values:

{{Weapon
|WeaponName=Colt 1911
|WeaponRarity=Common
|WeaponType=Gun
|Damage1=50|Damage1type=Piercing
|Damage2=3|Damage2type=Fire
|Damage3=|Damage3type=
|Damage4=|Damage4type=
|Stat1=Armor Penetration|Stat1value=+10%
|Stat2=Block Power|Stat2value=+5
|Stat3=Accuracy|Stat3value=+3%
|Stat4=Fumble Chance|Stat4value=-5%
|Stat5=|Stat5value=
|Stat6=|Stat6value=
|Stat7=|Stat7value=
|Stat8=|Stat8value=
|Stat9=|Stat9value=
|Stat10=|Stat10value=
|Durability=150
|Flavortext=A ranged weapon from the future! Good luck finding the correct ammo for it though.
}}

It will produce this result:


Colt 1911
Common Gun
50 Piercing Damage
3 Fire Damage
Armor Penetration
Block Power
Accuracy
Fumble Chance
+10%
+5
+3%
-5%
Durability: 150/150
A ranged weapon from the future! Good luck finding the correct ammo for it though.