Template:Weapon/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Documentation/Header}} {{Lua|Weapon}} This template creates the icon and link for an weapon. ==Syntax== This template has 2 unnamed parameters: #'''(mandatory)''' Name of the item. If set to Unknown no link is set. #'''(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..." |
(No difference)
|
Revision as of 10:35, 12 June 2025
This is the documentation page for Weapon. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
This template uses Module:Weapon, a script written in Lua.
This template creates the icon and link for an weapon.
Syntax
This template has 2 unnamed parameters:
- (mandatory) Name of the item. If set to Unknown no link is set.
- (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}}
Satchel
Unknown
* {{Item|Satchel|20}}
* {{Item|Satchel|80}}
* {{Weapon|Satchel|link=Items}}
* {{Weapon|Satchel|text=Not Satchel}}
* {{Weapon|Satchel|notext=1}}
* {{Weapon|Satchel|x=2}}
Satchel ×2
Template Data
Create item image and link.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | 1 name | Name of item and file name.
| String | suggested |
| Image Size | 2 size | Size of Item
| Number | suggested |
| Item Count | x count | Number of Items. Displayed with ×.
| Number | optional |
| Display Text | text | Link displayed to the right if image.
| String | optional |
| Link | link | Link of image and text.
| Page name | optional |
| No Text | notext | Hide item name and link.
| Boolean | optional |
| White | white | Adds White to suffix of file name.
| Boolean | optional |