Template:Item infobox: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
No edit summary
(Add docs, used-by)
Line 1: Line 1:
<includeonly>
<div class="infobox">
<div class="infobox">


Line 6: Line 7:
<div class="section">Basic Information</div>
<div class="section">Basic Information</div>
<table>
<table>
<tr><th>Slot:</th><td>{{{slot|}}}</td></tr>
{{#if:{{{used-by|}}}|<tr><th>Used by:</th><td>{{{used-by}}}</td></tr>}}
{{#if:{{{slot|}}}|<tr><th>Slot:</th><td>{{{slot}}}</td></tr>
</table>
</table>


Line 18: Line 20:


</div>
</div>
</includeonly>
<noinclude>
{{doc begin}}
This template is used to display information about an item.
== Parameters ==
{| class="wikitable grid"
! width="15%" class="header" | Parameter
! width="35%" class="header" | Example
! class="header" | Description
|-
| name
| Spud Hat
| A name that will be displayed at the top of the infobox, usually this isn't necessary and will use the page title by default.
|-
| image
| Spudburger.png
| A new image to use under the item's name at the top. Use this only if necessary and stick to the set convention as much as possible.
|-
| slot
| Head
| The slot that the item is equipped in.
|-
| used-by
| [[Atlas]], [[P-body]]
| A list of classes that can equip the item.
|-
| level
| Level 100 Testing Apparatus
| The level of the item (used in backpack example)
|-
|}
</noinclude>

Revision as of 00:04, 26 April 2011


The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Item infobox

This template is used to display information about an item.

Parameters

Parameter Example Description
name Spud Hat A name that will be displayed at the top of the infobox, usually this isn't necessary and will use the page title by default.
image Spudburger.png A new image to use under the item's name at the top. Use this only if necessary and stick to the set convention as much as possible.
slot Head The slot that the item is equipped in.
used-by Atlas, P-body A list of classes that can equip the item.
level Level 100 Testing Apparatus The level of the item (used in backpack example)