Template:Weapon

From NetHackWiki
Jump to navigation Jump to search
) File:Weapon.png
Name Weapon
Appearance Weapon
Damage vs. small {{{smalldmg}}}
Damage vs. large {{{largedmg}}}
To-hit bonus +0
Weapon skill Weapon
Size one-handed
Base price {{{cost}}} zm
(+10/positive
enchant)
Weight {{{weight}}}
Material [[{{{material}}}]]

Put this template at the top of every weapon page. Call it like this:

{{weapon
 |color=COLOR
 |glyph=GLYPH
 |name=NAME
 |appearance=APPEARANCE
 |smalldmg=SMALLDMG
 |largedmg=LARGEDMG
 |tohit=<nowiki>TOHIT</nowiki>
 |skill=SKILL
 |size=SIZE
 |cost=COST
 |weight=WEIGHT
 |material=MATERIAL
}}

Appearance, skill, and color are optional parameters. The first two default to the name of the item, and color defaults to cyan. Glyph is optional, and defaults to ); specify ( or * for weapon-tools and gems respectively. Tohit is also optional, it defaults to +0; remember to use a <nowiki> tag. Size is optional and defaults to "one-handed"; specify "two-handed" for two-handed weapons. To remove the "(+10/positive enchant)" note (e.g. for stones), add a noenchant=yes parameter.

Any usage notes that are not covered here can be requested by leaving a message on the talk page, where any major changes to the template will ideally be documented.