Difference between revisions of "Template:Infobox item/doc"

From Underrail Wiki
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
| image        = [leave this field empty if there's no image yet]
+
| example      = [marks the infobox as example. remove this line if stats are exact]
| example      = [marks the infobox as example. remove this line if stats are exact]
+
| image        = [leave this field empty if there's no image yet]
| type          =  
+
| itemquality  = [accepted values: low, normal, high, rarity, artifact. defaults to normal if omitted]
| description  =  
+
| name          =
| whitestats    = [optional, energy capacity and other stats written in white]
+
| type          =  
| greenstats    = [optional, uses and other stats written in green]
+
| description  =  
| whitestats2  = [optional, any stats written in white, below the green section]
+
| whitestats    = [optional, energy capacity and other stats written in white]
| value        = [optional]
+
| 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
+
| image        = items_medicine_health_hypo.png
| name          = Health Hypo
+
| itemquality  = normal
| type          = Medicine
+
| name          = Health Hypo
| description  = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use.
+
| type          = Medicine
| greenstats    = Use: Instantly restores 80 health points.
+
| 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
+
| value        = 120
 
}}
 
}}
 
</pre>
 
</pre>
Line 35: Line 38:
  
 
{{infobox item
 
{{infobox item
| image        = items_medicine_health_hypo.png
+
| image        = items_medicine_health_hypo.png
| imagewidth    =  
+
| itemquality  = normal
| name          = Health Hypo
+
| name          = Health Hypo
| type          = Medicine
+
| type          = Medicine
| description  = A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use.
+
| 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.
+
| greenstats    = Use: Instantly restores 80 health points.
 
(AP: 10, Cooldown: 6 turns)
 
(AP: 10, Cooldown: 6 turns)
| value        = 120
+
| 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...

Health Hypo.png
Health Hypo
Medicine
A hypo filled with blood and enzymes that catalyze rapid regenerative process. Double check your blood type before use.
Value: 120