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|no_text}} – Set to {{F|1}} to omit the complete text. | * {{F|no_text}} – 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. | ||
| Line 28: | Line 24: | ||
==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=no_text=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 120: | Line 117: | ||
"example": "1", | "example": "1", | ||
"type": "boolean" | "type": "boolean" | ||
} | } | ||
}, | }, | ||
| Line 137: | Line 128: | ||
"link", | "link", | ||
"no_text", | "no_text", | ||
"note", | "note", | ||
"ref", | "ref", | ||