Difference between revisions of "Template:Infobox item/doc"
Jump to navigation
Jump to search
m (added example property to template) |
m (added itemquality parameter) |
||
Line 8: | Line 8: | ||
<pre> | <pre> | ||
{{infobox item | {{infobox item | ||
− | + | | example = [marks the infobox as example. remove this line if stats are exact] | |
− | + | | image = [leave this field empty if there's no image yet] | |
− | + | | itemquality = [accepted values: low, normal, high, rarity, artifact. defaults to normal if omitted] | |
− | + | | name = | |
− | + | | type = | |
− | + | | description = | |
− | + | | whitestats = [optional, energy capacity and other stats written in white] | |
− | + | | greenstats = [optional, uses and other stats written in green] | |
+ | | whitestats2 = [optional, any stats written in white, below the green section] | ||
+ | | value = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 22: | Line 24: | ||
<pre> | <pre> | ||
{{infobox item | {{infobox item | ||
− | + | | image = items_medicine_health_hypo.png | |
− | + | | itemquality = normal | |
− | + | | name = Health Hypo | |
− | + | | type = Medicine | |
− | + | | description = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use. | |
+ | | greenstats = Use: Instantly restores 80 health points. | ||
(AP: 10, Cooldown: 6 turns) | (AP: 10, Cooldown: 6 turns) | ||
− | + | | value = 120 | |
}} | }} | ||
</pre> | </pre> | ||
Line 35: | Line 38: | ||
{{infobox item | {{infobox item | ||
− | + | | image = items_medicine_health_hypo.png | |
− | + | | itemquality = normal | |
− | + | | name = Health Hypo | |
− | + | | type = Medicine | |
− | + | | description = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use. | |
− | + | | greenstats = Use: Instantly restores 80 health points. | |
(AP: 10, Cooldown: 6 turns) | (AP: 10, Cooldown: 6 turns) | ||
− | + | | value = 120 | |
}} | }} | ||
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 08:15, 3 April 2013
Description
This is the generic item infobox template. It can be used for all items, but some item types also have their own infoboxes.
NOTE: generic items, armor, blueprints, components and weapons all have their own infobox templates!
Syntax
To use this template, copy the following code, fill in the appropriate fields and remove the rest.
{{infobox item | example = [marks the infobox as example. remove this line if stats are exact] | image = [leave this field empty if there's no image yet] | itemquality = [accepted values: low, normal, high, rarity, artifact. defaults to normal if omitted] | name = | type = | description = | whitestats = [optional, energy capacity and other stats written in white] | greenstats = [optional, uses and other stats written in green] | whitestats2 = [optional, any stats written in white, below the green section] | value = }}
Samples
{{infobox item | image = items_medicine_health_hypo.png | itemquality = normal | name = Health Hypo | type = Medicine | description = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use. | greenstats = Use: Instantly restores 80 health points. (AP: 10, Cooldown: 6 turns) | value = 120 }}
Results in...
| |||
A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use. | |||
Value: 120 |