Difference between revisions of "Template:Tool"

From NetHackWiki
Jump to navigation Jump to search
(Adding material.)
(add muse)
 
Line 17: Line 17:
 
!Material
 
!Material
 
|[[{{{material}}}]]
 
|[[{{{material}}}]]
 +
|-
 +
!Monster use
 +
|{{#if: {{{muse|}}} | {{#ifeq: {{{muse}}} | def | <small>''May be used [[defensive item|defensively]] by monsters.''</small> [[Category:Defensive items]] | {{#ifeq: {{{muse}}} | off | <small>''May be used [[offensive item|offensively]] by monsters.''</small> [[Category:Offensive items]] | <small>''Will not be used by monsters.''</small>}}}} | <small>''Will not be used by monsters.''</small>}}
 
|}
 
|}
 
</div><noinclude>
 
</div><noinclude>

Latest revision as of 15:21, 2 October 2015

(
Name Tool
Appearance Tool
Base price {{{cost}}} zm
Weight {{{weight}}}
Material [[{{{material}}}]]
Monster use Will not be used by monsters.

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

{{tool
 |name=NAME
 |tile=TILE
 |appearance=APPEARANCE
 |cost=COST
 |weight=WEIGHT
 |color=COLOR
 |material=MATERIAL
}}

Name, appearance and color are optional parameters that default to the page name, name of the item and to cyan. See the talk page for further usage notes.