Template:dNetHack armor

From NetHackWiki
Jump to navigation Jump to search
{{ {{{color}}} |[}}   {{{name}}}   [[Image:{{{name}}}.png]]
Appearance {{{name}}}
Slot [[{{{slot}}}]]
Base size medium
AC {{{ac}}}
DR {{{dr}}}
Magical item? no
Properties (none)
Base price {{{cost}}} zm
Default weight {{{weight}}}
Base material [[{{{material}}}]]

This template is designed for use with articles that detail armor items in dNetHack, notdNetHack and notnotdNetHack, with an example of how the template can be called as follows:

{{dNetHack armor
  |color=green
  |tile=[[Image:Elven toga.png]]
  |name=elven toga
  |appearance=elven toga
  |slot=body armor
  |size=large
  |bulk=light
  |ac=0
  |dr=1
  |mc=2
  |magical=no
  |future=no
  |special=<ul><li>+2 [[charisma]]</li><li>can be [[Scroll of enchant armor|enchanted]] to +7</li></ul>
  |cost=100
  |weight=5
  |material=cloth
}}

The fields for the template are described below:

Field Description Required?
top can display multiple glyphs and/or tiles, ignoring color/tile fields optional
color name of the color template to use for the glyph required
tile tile representing this item defaults to blank display
name name of the armor defaults to blank display
appearance the armor's unidentified description defaults to item name
slot where the armor is worn required
size the armor's default size defaults to medium
bulk determines a suit's impact on dexterity bonuses does not appear if unused
AC base AC value granted while worn required
DR base DR value while worn required
MC magic cancellation granted while worn does not appear if unused
magical whether or not the armor is magical by default defaults to "no"
future whether or not the armor is futuristic technology does not appear if unused
special other properties granted while worn defaults to (none)
cost base cost of this armor required
weight weight of this item required
material the base object material of the item required