Difference between revisions of "Template:Item infobox"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
--><div class="icon">[[Has game icon::File:{{{icon|{{{name|{{PAGENAME}}}}}.png}}}|100x100px]]</div><!-- | --><div class="icon">[[Has game icon::File:{{{icon|{{{name|{{PAGENAME}}}}}.png}}}|100x100px]]</div><!-- | ||
--><div class="wrapper"><dl><!-- | --><div class="wrapper"><dl><!-- | ||
− | -->{{#if: {{{type|}}}|<dt>Type</dt><dd> | + | -->{{#if: {{{type|}}}|<dt>Type</dt><dd>{{ucfirst:{{{type}}}}}<!-- |
+ | -->{{#set: Has item type = {{ucfirst:{{{type}}}}} }}</dd>}}<!-- | ||
-->{{#if: {{{quality|}}}|<dt>Quality</dt><dd>{{quality label| {{ucfirst:{{{quality}}}}} }}<!-- | -->{{#if: {{{quality|}}}|<dt>Quality</dt><dd>{{quality label| {{ucfirst:{{{quality}}}}} }}<!-- | ||
-->{{#set: Has item quality = {{ucfirst:{{{quality}}}}} }}</dd>}}<!-- | -->{{#set: Has item quality = {{ucfirst:{{{quality}}}}} }}</dd>}}<!-- |
Revision as of 19:58, 31 May 2022
Description
Outlines an item page, including the title, infobox, description quote, etc. Sets SMW properties.
Usage
{{Item infobox | name = | icon = | quality = | level = | description = }}
Parameters
All parameters are optional.
- name
- Item name. Defaults to
{{PAGENAME}}
. - icon
- Item icon filename. Defaults to
File:<name>.png
- quality
- Item quality, one of Common, Magic, Rare, Epic, Legendary
- level
- Item level (if fixed)
- description
- Item in-game description.