Template:Monster

From NetHackWiki
Revision as of 14:54, 12 March 2009 by ZeroOne (talk | contribs) (ok, clearly the nowikis weren't enough. just put them on separate lines then.)
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:

{{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}}
 |reference=[[monst.c#line104]]
}}

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 reference 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.