Template:Monster

From NetHackWiki
Revision as of 23:24, 3 November 2012 by Bcode (talk | contribs) (Allow using refline=foo (and optionally reffile=bar, too) in case the format of the reference is changed for this template. Pages still using reference=foo#bar will continue to work.)
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.

The attributes and refline parameters 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.