Template:Item/doc

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
This is the documentation page for Item.
It contains usage information, categories, and other content not part of the original template page.
This template uses Module:Item, a script written in Lua.

This template creates the icon and link for an item.

Syntax

This template has 2 unnamed parameters:

  1. (mandatory) Name of the item. If set to Unknown no link is set.
  2. (optional) Size of the icon. Defaults to 30.

There are also 8 optional named parameters:

  • link: Sets another page to be linked.
  • text: Displays another text instead of the name of the item.
  • notext: If set to 1, the complete text will be omitted. The picture will no longer behave like an inline-block.
  • count (x): Quantity of the item. Part of the text.
  • white: Adds White suffix to file name.

See also

Examples

* {{Item|Satchel}}
* {{Item|Unknown}}
* {{Item|Satchel|20}}
* {{Item|Satchel|80}}
* {{Item|Satchel|link=Items}}
* {{Item|Satchel|text=Not Satchel}}
* {{Item|Satchel|notext=1}}
  • Satchel
* {{Item|Satchel|x=2}}
* {{Item|Eugene Grant|type=survivor}}

Template Data

Create item image and link.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1 name

Name of item and file name.

Default
Unknown
Stringsuggested
Image Size2 size

Size of Item

Default
40
Example
20
Numbersuggested
Item Countx count

Number of Items. Displayed with ×.

Example
1
Numberoptional
Item Typetype

The type of item to add as prefix to file name. Automatically adds suffix when needed.

Default
Item
Example
Item, Weapon, Map, Survivor, Zombie
Stringoptional
Display Texttext

Link displayed to the right if image.

Default
Value of name.
Stringoptional
Linklink

Link of image and text.

Default
Value of name.
Page nameoptional
Blueprintblueprint

Show furnishing blueprint icon in top left of image.

Example
1
Booleanoptional
No Textnotext

Hide item name and link.

Example
1
Booleanoptional
Whitewhite

Adds White to suffix of file name.

Example
1
Booleanoptional