Template:Icon
| Template documentation follows |
|---|
| Visit Template:Icon/doc to edit this documentation. (How does this work?) |
| Editors can experiment in this template's sandbox and test case pages. |
Usage
Use {{Icon}} to create a link with an image:
Lunasagi. Use |img= for an icon whose file name is different from their pagename. Use |txt= for text that doesn't match the pagename, such as plurals. Leave |link= empty to remove link, overrides link if not empty. Use |thumb= to quickly add "Thumbnail" to the end of a files name, intended for decor/backdrop items whose primary images have awkward dimensions.
Syntax
{{Icon|}}
{{Icon
|
|
|img=
|txt=
|link=
}}
Examples
{{Icon|Scraps}}
{{Icon|food|txt=Food Items}}
{{Icon|Lunasagi|x50px}}
File:Abyssal Outskirts.png Abyssal Outskirts
{{Icon|Abyssal Outskirts|thumb=y}}
Associated Templates
- Template:I: The shorthand for Template:Icon.
- Template:Thumb: A shorthand for setting parameter
thumb=to "true". - Template:T: Same as above.
- Template:N: An icon template for Natures.
- Template:F: An icon template for Flavors.
Template Data
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The item's name to link to. Default for link and image. Case sensitive for file name. | Unknown | required |
| 2 | 2 | File size.
| Unknown | optional |
| img | img | Overrides image. Case sensitive. | Unknown | optional |
| link | link | Leave empty to remove link, overrides link if not empty. | Unknown | optional |
| txt | txt | Overrides displayed linked text. | Unknown | optional |
| thumb | thumb | Adds "Thumbnail" to the end of the images name.
| Unknown | optional |
Modified from Flight Rising Wiki.
