Template:Icon/doc: Difference between revisions
ReisuDesign (talk | contribs) Created page with "{{Documentation/Header}} {{CSS|Icon}} Template to display icons without link. ==Syntax== {{T|Icon |v1=file name without extension or Icon prefix |v2=customfile=full file name |P3=size=((XX)) |v4=top-left=content to insert in the icon's top-left corner |v5=top-left-style=inline styles to apply to the top-left icon |v6=top-right=content to insert in the icon's top-right corner |v7=top-right-style=inline styles to apply to the top-right icon |v8=bottom-left=content to inse..." |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
Template to display icons without link. | Template to display icons without link. | ||
Revision as of 23:43, 1 September 2026
This is the documentation page for Icon. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Template to display icons without link.
Syntax
{{Icon
|file name without extension or Icon prefix
|customfile = full file name
|size = XX
|top-left = content to insert in the icon's top-left corner
|top-left-style = inline styles to apply to the top-left icon
|top-right = content to insert in the icon's top-right corner
|top-right-style = inline styles to apply to the top-right icon
|bottom-left = content to insert in the icon's bottom-left corner
|bottom-left-style = inline styles to apply to the bottom-left icon
|bottom-right = content to insert in the icon's bottom-right corner
|bottom-right-style = inline styles to apply to the bottom-right icon
}}
- 1 or file — Value to insert as "name" in the Icon_name.png naming scheme to display as main image.
- If the file to use does not follow the naming scheme, customfile can be used instead.
- 2 or size — The icon's size. Defaults to 20px.
Examples
{{Icon|size = 30|file = Dough}} yields: ![]()
{{Icon|Dough|30}} yields: ![]()
{{Icon|Hexia|class = day-invert-image}} yields: ![]()
{{Icon|customfile = Hexia Icon.png|class = day-invert-image|size = 40}} yields: ![]()
Template Data
Template to display icons without link.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon | 1 file | Name of file excluding prefix and extension. | String | suggested |
| Size | 2 size | Size of icon.
| Number | optional |
| Type | type | Prefix of the file name.
| String | optional |
| Extension | ext | File extension of icon.
| String | optional |
| Class | class | Custom class to add to file.
| String | optional |
| Custom File | customfile | Full file name to use instead value in "1". | File | optional |
| Top Left | top-left | Content to place in top left of icon. | Unbalanced wikitext | optional |
| Top Right | top-right | Content to place in top right of icon. | Unbalanced wikitext | optional |
| Bottom Left | bottom-left | Content to place in bottom left of icon. | Unbalanced wikitext | optional |
| Bottom Right | bottom-right | Content to place in bottom right of icon. | Unbalanced wikitext | optional |
| Top Left Style | top-left-style | Additional style for "top-left" content. | String | optional |
| Top Right Style | top-right-style | Additional style for "top-right" content. | String | optional |
| Bottom Left Style | bottom-left-style | Additional style for "bottom-left" content. | String | optional |
| Bottom Right Style | bottom-right-style | Additional style for "bottom-right" content. | String | optional |