Difference between revisions of "Template:Weapon/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Creation)
 
m (add unobtainable example)
 
(13 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. [[Heavy 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|Heavy Aldorian Bow|category=no}}}}</nowiki>
|WeaponName=Colt 1911
Examples:
|WeaponRarity=Common
{{{{{1|Tooltip hover box}}}|title={{Weapon|Heavy Aldorian Bow|category=no}}}}
|WeaponType=Gun
{{{{{1|Tooltip hover box}}}|title={{Weapon|Orcish Battlesickle|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 13:30, 11 February 2024

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. Heavy 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|Heavy Aldorian Bow|category=no}}}}

Examples:

Heavy Aldorian Bow
Common Bow
31 Piercing Damage

Armor Penetration: +33%
 
Knockback Chance: +6%
Stagger Chance: +4%
Immobilization Chance: +8%
 
Accuracy: -40%
Range: 12
 
Skills Energy Cost: +50%
Spells Energy Cost: +50%
 
Durability: 225/225

Heavy Aldorian Bow
Price3910

Heavy Aldorian Bow
UNOBTAINABLE
Orcish Battlesickle
Common Sword
26 Slashing Damage

 
Energy: -10
Skills Energy Cost: +50%
Spells Energy Cost: +50%
 
Durability: 50/50

Orcish Battlesickle
Price650

Orcish Battlesickle