Template:Item infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (26 intermediate revisions by the same user not shown) | |||
| 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}}}}}<!-- | ||
-->{{#if: {{{quality|}}}|<dt>Quality</dt><dd>{{quality label| | -->{{#set: Has item type = {{ucfirst:{{{type}}}}} }}</dd>}}<!-- | ||
-->{{#if: {{{slot|}}}|<dt>Slot</dt><dd>{{slot label| {{{slot}}} }}<!-- | |||
-->{{#set: Has item slot = {{lc:{{{slot}}}}} }}</dd>}}<!-- | |||
-->{{#if: {{{quality|}}}|<dt>Quality</dt><dd>{{quality label| {{ucfirst:{{{quality}}}}} }}<!-- | |||
-->{{#set: Has item quality = {{ucfirst:{{{quality}}}}} }}</dd>}}<!-- | |||
-->{{#if: {{{level|}}}|<dt>Level</dt><dd>[[Has level::{{{level}}}]]</dd>}}<!-- | -->{{#if: {{{level|}}}|<dt>Level</dt><dd>[[Has level::{{{level}}}]]</dd>}}<!-- | ||
--></dl></div></div><!-- | -->{{#if: {{{cooldown|}}}|<dt>Cooldown</dt><dd>{{#show: {{PAGENAME}}|?Has item cooldown#minutes-p2}}<!-- | ||
-->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!-- | |||
-->{{#if: {{{uses|}}}|<dt>Uses</dt><dd>[[Has item uses::{{{uses}}}]]</dd>}}<!-- | |||
-->{{#if: {{{set size|}}}|<dt>Set size</dt><dd>[[Has item set size::{{{set size}}}]]</dd>}}<!-- | |||
-->{{#if: {{{redeemable|}}}|<dt>Redeemable</dt><dd>Yes</dd>}}<!-- | |||
-->{{#if: {{{stat1|}}}{{{implicit|}}}{{{effect|}}}|<dt><br /></dt><dd></dd>}}<!-- | |||
-->{{#if: {{{implicit|}}}|<dt>Implicit</dt><dd>{{{implicit}}}</dd>}}<!-- | |||
-->{{#if: {{{stat1|}}}|<dt>Stats</dt><dd>{{{stat1}}}</dd>}}<!-- | |||
-->{{#if: {{{stat2|}}}|<dt></dt><dd>{{{stat2}}}</dd>}}<!-- | |||
-->{{#if: {{{stat3|}}}|<dt></dt><dd>{{{stat3}}}</dd>}}<!-- | |||
-->{{#if: {{{stat4|}}}|<dt></dt><dd>{{{stat4}}}</dd>}}<!-- | |||
-->{{#if: {{{stat5|}}}|<dt></dt><dd>{{{stat5}}}</dd>}}<!-- | |||
-->{{#if: {{{effect|}}}|<dt>Effect</dt><dd>{{{effect}}}</dd>}}<!-- | |||
--></dl></div>{{#if: {{{append|}}}|{{{append}}}}}</div><!-- | |||
description quote -->{{#if: {{{description|}}}|{{quotation|game|[[Has game description::{{{description}}}]]}}}}<!-- | description quote -->{{#if: {{{description|}}}|{{quotation|game|[[Has game description::{{{description}}}]]}}}}<!-- | ||
| Line 19: | Line 36: | ||
<!-- categorize --> | <!-- categorize --> | ||
[[Category:Items]] | [[Category:Items]] | ||
{{# | {{#switch: {{lc:{{{type|}}}}} | ||
<!-- material --> | |||
| crafting material = [[Category:Crafting materials]] | |||
| quest item = [[Category:Quest items]] | |||
| gambler's card = [[Category:Cards]] | |||
<!-- usable --> | |||
| toy = [[Category:Toys]] | |||
| consumable = [[Category:Consumables]] | |||
| mount = <!--[[Category:Mounts]]--> | |||
| key = | |||
| recipe = [[Category:Recipes]] | |||
<!-- cosmetic --> | |||
| pet = [[Category:Pet items]] | |||
| mtx = [[Category:Cosmetics]] | |||
<!-- eq head --> | |||
<!-- eq neck --> | |||
<!-- eq chest --> | |||
<!-- eq hands --> | |||
<!-- eq finger --> | |||
<!-- eq waist --> | |||
<!-- eq legs --> | |||
<!-- eq feet --> | |||
<!-- eq trinket --> | |||
<!-- eq weapon --> | |||
<!-- eq offhand --> | |||
<!-- eq tool --> | |||
| fishing rod = [[Category:Fishing rods]] | |||
| #default = [[Category:Items with unknown types]] | |||
}} | |||
{{#ifeq: {{lc:{{{slot|}}}}}|onehanded|[[Category:Weapons]]}} | |||
{{#ifeq: {{lc:{{{slot|}}}}}|twohanded|[[Category:Weapons]]}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
| Line 29: | Line 76: | ||
| name = | | name = | ||
| icon = | | icon = | ||
| type = | |||
| quality = | | quality = | ||
| level = | | level = | ||
| slot = | |||
| description = | | description = | ||
| cooldown = | |||
| uses = | |||
| redeemable = | |||
| set size = | |||
| implicit = | |||
| stat1 = | |||
| stat2 = | |||
| stat3 = | |||
| stat4 = | |||
| stat5 = | |||
| effect = | |||
| append = | |||
}}</pre> | }}</pre> | ||
| Line 40: | Line 103: | ||
;icon | ;icon | ||
: Item icon filename. Defaults to <code><nowiki>File:<name>.png</nowiki></code> | : Item icon filename. Defaults to <code><nowiki>File:<name>.png</nowiki></code> | ||
;type | |||
: Item type | |||
;quality | ;quality | ||
: Item quality, one of Common, Magic, Rare, Epic, Legendary | : Item quality, one of Common, Magic, Rare, Epic, Legendary | ||
;level | ;level | ||
: Item level (if fixed) | : Item level (if fixed) | ||
;slot | |||
: Item slot, see [[Property:Has item slot]] for values list | |||
;description | ;description | ||
: Item in-game description. | : Item in-game description. | ||
;cooldown | |||
: Full item cooldown duration. Preferably taken from inspecting the item data. Understands minutes, seconds, ticks. | |||
;uses | |||
: Number of uses if not infinite | |||
;redeemable | |||
: y/n. When redeemed, the item is stored in the cosmetics inventory | |||
;set size | |||
: For [[Card]]s | |||
;implicit, stat1, stat2, ..., stat5 | |||
: Stat rows. Plain text | |||
;effect | |||
: Effect text | |||
;append | |||
: Append more elements (used for weapon abilities) | |||
</noinclude> | </noinclude> | ||
Latest revision as of 03:15, 1 November 2022
Description
Outlines an item page, including the title, infobox, description quote, etc. Sets SMW properties.
Usage
{{Item infobox
| name =
| icon =
| type =
| quality =
| level =
| slot =
| description =
| cooldown =
| uses =
| redeemable =
| set size =
| implicit =
| stat1 =
| stat2 =
| stat3 =
| stat4 =
| stat5 =
| effect =
| append =
}}
Parameters
All parameters are optional.
- name
- Item name. Defaults to
{{PAGENAME}}. - icon
- Item icon filename. Defaults to
File:<name>.png - type
- Item type
- quality
- Item quality, one of Common, Magic, Rare, Epic, Legendary
- level
- Item level (if fixed)
- slot
- Item slot, see Property:Has item slot for values list
- description
- Item in-game description.
- cooldown
- Full item cooldown duration. Preferably taken from inspecting the item data. Understands minutes, seconds, ticks.
- uses
- Number of uses if not infinite
- redeemable
- y/n. When redeemed, the item is stored in the cosmetics inventory
- set size
- For Cards
- implicit, stat1, stat2, ..., stat5
- Stat rows. Plain text
- effect
- Effect text
- append
- Append more elements (used for weapon abilities)