Difference between revisions of "Template:Item"

From NetHackWiki
Jump to navigation Jump to search
m (Text replace - "Cost" to "Base price")
 
Line 31: Line 31:
 
You may need to escape the symbol with &lt;nowiki&gt; tags. If the item has a randomised appearance, put <nowiki>[[Randomised appearance|random]]</nowiki> for the appearance parameter.
 
You may need to escape the symbol with &lt;nowiki&gt; tags. If the item has a randomised appearance, put <nowiki>[[Randomised appearance|random]]</nowiki> for the appearance parameter.
  
'''Please use the most specific template that applies, such as [[template:potion]] or [[template:armor]].'''
+
'''Please use the most specific template that applies; they are found in [[:Category:Infobox templates]].'''
  
 
[[Category:Infobox templates|I]]
 
[[Category:Infobox templates|I]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:17, 29 July 2015

{{{symbol}}}
Name {{{PAGENAME}}}
Appearance {{{PAGENAME}}}
Base price {{{cost}}} zm
Weight {{{weight}}}

Some item types have no template page of their own; put this template at the top of every such page. Call it like this:

{{item
 |symbol=SYMBOL
 |name=NAME
 |appearance=APPEARANCE
 |image=IMAGE
 |cost=COST
 |weight=WEIGHT
 |color=COLOR
}}

Name is an optional parameter that defaults to the page's name. Appearance and color are optional parameters that default to the name of the item and to brown. See this talk page for further usage notes.

You may need to escape the symbol with <nowiki> tags. If the item has a randomised appearance, put [[Randomised appearance|random]] for the appearance parameter.

Please use the most specific template that applies; they are found in Category:Infobox templates.