Template:Infobox item/doc: Difference between revisions
mNo edit summary |
m Harristic moved page Template:Item/doc to Template:Infobox item/doc: per MCW:Forum/Better navbox and infobox naming |
||
(67 intermediate revisions by 37 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Documentation header}} | ||
This template provides a uniform design for usable item pages | This template provides a uniform design for usable item pages. | ||
<pre | <pre style="display:table"> | ||
{{Item | {{Item | ||
|title= | | title = | ||
|image= | | image = | ||
| | | image2 = | ||
| | | image3 = | ||
| | <!-- Start Multiple mode --> | ||
|durability= | | group = | ||
|stackable= | | 1-1 = | ||
| | | 1-2 = | ||
| 1-3 = | |||
| group2 = | |||
| 2-1 = | |||
| 2-2 = | |||
| 2-3 = | |||
| group3 = | |||
| 3-1 = | |||
| 3-2 = | |||
| 3-3 = | |||
| group4 = | |||
| 4-1 = | |||
| 4-2 = | |||
| 4-3 = | |||
<!-- End Multiple mode --> | |||
| durability = | |||
| rarity = | |||
| renewable = | |||
| stackable = | |||
| heals = | |||
| effects = | |||
}}</pre> | }}</pre> | ||
See below: | |||
{| class | {| class="wikitable" | ||
! Parameter | ! Parameter | ||
! Function | ! Function | ||
! Default/Example value | ! Default/Example value | ||
|- | |- | ||
| <code>title</code> || Optional value to use a different | | <code>title</code> || Optional value to use a different title instead of the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code> | ||
|- | |- | ||
| <code>image</code> || Image of the | | <code>image</code> || Image of the item (should be approx. 160x160px) || <code><nowiki>{{{title}}}.png</nowiki></code> if it exists, otherwise [[:File:No image.svg|No image.svg]] (linking to the page where to upload the missing image) | ||
|- | |- | ||
| <code> | | <code>image''N''</code> || Other images for multi-state items || ''None'' | ||
|- | |- | ||
| <code> | | <code>rarity</code> || The color of this item's name. See [[rarity]] for more info. || Common | ||
|- | |- | ||
| <code> | | <code>durability</code> || How durable the item is || ''None'' | ||
|- | |- | ||
| <code> | | <code>renewable</code> || Whether the item is [[Renewable Resources|renewable]] || ? | ||
|- | |- | ||
| <code>stackable</code> || Stackable || ? | | <code>stackable</code> || Stackable || ? | ||
|- | |- | ||
| <code> | | <code>heals</code> || Amount of hunger points restored || ''None'' | ||
|- | |||
| <code>effects</code> || Status effects given when consumed || ''None'' | |||
|- | |||
! Parameter (multiple mode only) | |||
! Function | |||
! Default/Example value | |||
|- | |||
| {{cd|multiple}} || Whether to enter multiple mode. In this mode, multiple images can be present under the same tab. || 0 | |||
|- | |- | ||
| | | {{cd|group}} || Group (tab) under which to put the image || ''None'' | ||
|- | |||
| {{cd|group''N''}} || Other tabs present || ''None'' | |||
|- | |||
| {{cd|1-''n''}} || ''n''th image under the first (default) tab || ''None'' | |||
|- | |||
| {{cd|''N''-''n''}} || ''n''th image under the ''N''th tab || ''None'' | |||
|} | |} | ||
== See also == | == See also == | ||
{{Infobox see also}} | {{Infobox see also}} | ||
<includeonly> | |||
<!-- Template categories/interwiki here --> | |||
[[Category:Infobox templates|I]] | |||
[[cs:Šablona:Item]] | |||
[[de:Vorlage:Gegenstand]] | |||
[[es:Plantilla:Objeto]] | |||
[[fr:Modèle:Objet]] | |||
[[it:Template:Oggetto]] | |||
[[ja:テンプレート:Item]] | |||
[[nl:Sjabloon:Voorwerp]] | |||
[[pl:Szablon:Przedmiot]] | |||
[[pt:Predefinição:Item]] | |||
[[ru:Шаблон:Предмет]] | |||
[[uk:Шаблон:Предмет]] | |||
[[zh:Template:Item]] | |||
</includeonly> | |||
<noinclude> | |||
<!-- Documentation categories/interwiki here --> | |||
[[cs:Šablona:Item/doc]] | |||
[[de:Vorlage:Gegenstand/Dokumentation]] | |||
[[es:Plantilla:Objeto/doc]] | |||
[[fr:Modèle:Objet/doc]] | |||
[[ja:テンプレート:Item/doc]] | |||
[[nl:Sjabloon:Voorwerp/doc]] | |||
[[pl:Szablon:Przedmiot/opis]] | |||
[[pt:Predefinição:Item/doc]] | |||
[[ru:Шаблон:Предмет/док]] | |||
[[uk:Шаблон:Предмет/док]] | |||
</noinclude> |