Difference between revisions of "Template:Weapon/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Creation)
 
m (change to renamed weapons)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is weapon template created for use anywhere on the wiki.
{{Doc/start}}
This is weapon template created for use together with the [[Template:Tooltip hover box]] template to display tooltip with item attributes for weapons.


Usage: Copy this code and replace/fill in the values:
Usage: Copy this code to any page where you want to display the item tooltip:
<nowiki>
{{{{{1|Tooltip hover box}}}|title={{Weapon}}}}</nowiki>


You can provide the item name as first parameter, otherwise the pagename is used.
By default, the page is also labelled with a category corresponding to the item type (ie. [[Aldorian Bow]] will receive the <code>Category: Bow</code>).
If you don't want to add this category to a page, add the <code>category</code> parameter:
  <nowiki>
  <nowiki>
{{Weapon
{{{{{1|Tooltip hover box}}}|title={{Weapon|Aldorian Bow|category=no}}}}</nowiki>
|WeaponName=Colt 1911
Examples:
|WeaponRarity=Common
{{{{{1|Tooltip hover box}}}|title={{Weapon|Aldorian Bow|category=no}}}}
|WeaponType=Gun
{{{{{1|Tooltip hover box}}}|title={{Weapon|Templar Sword|category=no}}}}
|Damage1=50|Damage1type=Piercing
{{Doc/end}}
|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.
}}
</nowiki>
It will produce this result:
{{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.
}}
 
Add as many of these as you need.

Latest revision as of 10:59, 27 February 2025

Template-info.png Documentation

This is weapon template created for use together with the Template:Tooltip hover box template to display tooltip with item attributes for weapons.

Usage: Copy this code to any page where you want to display the item tooltip:

{{{{{1|Tooltip hover box}}}|title={{Weapon}}}}

You can provide the item name as first parameter, otherwise the pagename is used.

By default, the page is also labelled with a category corresponding to the item type (ie. Aldorian Bow will receive the Category: Bow). If you don't want to add this category to a page, add the category parameter:

{{{{{1|Tooltip hover box}}}|title={{Weapon|Aldorian Bow|category=no}}}}

Examples:

Tier 5
Aldorian Bow
Common Bow
27 Piercing Damage

Armor Penetration: +15%
 
Knockback Chance: +20%
Stagger Chance: +30%
 
Accuracy: -50%
Fumble Chance: -12%
Range: 9
 
Skills Energy Cost: +35%
 
Durability: 85/85

Aldorian Bow
Price5100

Aldorian Bow
Tier 5
Templar Sword
Common Sword
28 Slashing Damage

Armor Penetration: +15%
 
Bleed Chance: +18%
 
Block Chance: +10%
Accuracy: +7%
Fumble Chance: -1%
 
Skills Energy Cost: +5%
 
Durability: 110/110

Templar Sword
Price6125

Templar Sword