Editing Template:Item/doc
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="wikitext" copy> | <syntaxhighlight lang="wikitext" copy> | ||
{{Item}} | {{Item|}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This template has 2 unnamed parameters: | This template has 2 unnamed parameters: | ||
* {{F|1}} / {{F|name}} – Name of the item. | * {{F|1}} / {{F|name}} – Name of the item. | ||
* {{F|2}} / {{F|size}} – Size of the icon | * {{F|2}} / {{F|size}} – Size of the icon. Default: {{F|30}}. | ||
* {{F|x}} / {{F|count}} – Quantity of the item. | * {{F|x}} / {{F|count}} – Quantity of the item. Part of the text. | ||
* {{F|type}} – Special keyword to adjust the file's suffix and prefix. | * {{F|type}} – Special keyword to adjust the file's suffix and prefix. | ||
* {{F|link}} – Set another page to be linked. | * {{F|link}} – Set another page to be linked. | ||
* {{F|text}} – Display another text instead of the name of the item. | * {{F|text}} – Display another text instead of the name of the item. | ||
* {{F| | * {{F|notext}} – Set to {{F|1}} to omit the complete text. The icon will no longer behave like an inline-block. | ||
* {{F|note}} – Append a note after the item text and count. | * {{F|note}} – Append a note after the item text and count. | ||
* {{F|ref}} – Append a reference to the item text. | * {{F|ref}} – Append a reference to the item text. | ||
* {{F|comma}} – Set to {{F|1}} to append a comma to the item text following AmE rules. | * {{F|comma}} – Set to {{F|1}} to append a comma to the item text following AmE rules. | ||
* {{F|dot}} – Set to {{F|1}} to append a dot to the item text following AmE rules. | * {{F|dot}} – Set to {{F|1}} to append a dot to the item text following AmE rules. | ||
* {{F| | * {{F|commaspc}} – Set to {{F|1}} to append a comma and a space to the item text following AmE rules. | ||
* {{F| | * {{F|dotspc}} – Set to {{F|1}} to append a dot and a space to the item text following AmE rules. | ||
==Examples== | ==Examples== | ||
{{ | {{T|Item|_Ybr_=1}}<br /> | ||
{{ | {{T|Item|p1=Unknown|_Ybr_=1}}<br /> | ||
{{ | {{T|Item|p1=Kabuto Beetle|_Ybr_=1}}<br /> | ||
{{ | {{T|Item|p1=Kabuto Beetle|p2=40|_Ybr_=1}}<br /> | ||
{{ | {{T|Item|p1=Kabuto Beetle|p2=link=Insect|p3=text=Custom text|_Ybr_=1}}<br /> | ||
{{ | {{T|Item|p1=Dough|p2=x=15|p3=notext=1|_Ybr_=1}}<br /> | ||
{{ | {{T|Item|p1=Elsasani|_Ybr_=1}}<br /> | ||
{{T|Item|p1=Hexia|p2=note=Galaxy|_Ybr_=1}} | |||
==Template Data== | ==Template Data== | ||
| Line 55: | Line 52: | ||
], | ], | ||
"label": "Size", | "label": "Size", | ||
"description": "Size of the icon | "description": "Size of the icon.", | ||
"example": "20, 40", | "example": "20, 40", | ||
"type": "number", | "type": "number", | ||
| Line 80: | Line 77: | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"default": "<1>, <name>" | "default": "<1>, <name>" | ||
}, | |||
"notext": { | |||
"label": "No text", | |||
"description": "Set to 1 to omit the complete text.", | |||
"example": "1", | |||
"type": "boolean" | |||
}, | }, | ||
"note": { | "note": { | ||
| Line 89: | Line 92: | ||
"label": "Reference", | "label": "Reference", | ||
"description": "Append a reference to the item text.", | "description": "Append a reference to the item text.", | ||
"type": " | "type": "unbalanced-wikitext" | ||
}, | }, | ||
"comma": { | "comma": { | ||
| Line 103: | Line 106: | ||
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
" | "commaspc": { | ||
"label": "Comma and space", | "label": "Comma and space", | ||
"description": "Set to 1 to append a comma and a space to the item text following AmE rules.", | "description": "Set to 1 to append a comma and a space to the item text following AmE rules.", | ||
| Line 109: | Line 112: | ||
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
" | "dotspc": { | ||
"label": "Dot and space", | "label": "Dot and space", | ||
"description": "Set to 1 to append a dot and a space to the item text following AmE rules.", | "description": "Set to 1 to append a dot and a space to the item text following AmE rules.", | ||
"example": "1", | "example": "1", | ||
"type": "boolean" | "type": "boolean" | ||
} | } | ||
}, | }, | ||
"description": "Template that adds a link to icons.", | "description": "Template that adds a link to icons.", | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata> | ||