Template:Monster

From NetHackWiki
Revision as of 04:45, 20 July 2024 by Cathartes (talk | contribs) (make most parameters optional)
Jump to navigation Jump to search

Put this template at the top of every monster page. The following example from the killer bee article shows how to call this template, the result being shown on your right:

{{monster
 |name=killer bee
 |symbol={{yellow|a}}
 |tile=[[Image:killer bee.png]]
 |difficulty=5
 |level=1
 |experience=19
 |speed=18
 |AC=−1
 |MR=0
 |align=0
 |frequency=Rare
 |genocidable=Yes
 |attacks=Sting 1d3 [[poison]]ous
 |weight=1
 |nutr=5
 |size=Tiny
 |resistances=Poison
 |resistances conveyed=Poison (30%)
 |attributes={{attributes|A killer bee|=
 |lgroup=1|animal=1|fly=1|nohands=1|pois=1|hostile=1|female=1}}
 |refline=104
}}

The name and tile parameters do not need to be used if name matches the article's title. symbol can be omitted, in which case the template uses name, or if that is missing, then the article title, to find the correct symbol.

The first line of the attributes parameter should be A <monster> for most monsters, but <Monster> for unique monsters with names.

Parameters other than attack are defined as optional in the template so that this template could be backward-compatible with pages that were not updated yet to use these new parameters. All pages using this template should be updated to use the new parameters, as shown in the above example.