Template:Icon: Difference between revisions
From Paw Borough Wiki
(Edited parameter 1) |
(Documentation template) |
||
| Line 1: | Line 1: | ||
<includeonly>[[File:{{{img|{{{1}}}}}}.png|{{#if:{{{2}}}|{{{2|x20px}}}|x20px}}|link={{#if:{{{link}}}|{{{link|{{{1}}}}}}|}}]] {{#if:{{{link}}}|[[{{{link|{{{1}}}}}}|{{{txt|{{{1}}}}}}]]|{{{txt|{{{1}}}}}}}}</includeonly><noinclude> | <includeonly>[[File:{{{img|{{{1}}}}}}.png|{{#if:{{{2}}}|{{{2|x20px}}}|x20px}}|link={{#if:{{{link}}}|{{{link|{{{1}}}}}}|}}]] {{#if:{{{link}}}|[[{{{link|{{{1}}}}}}|{{{txt|{{{1}}}}}}]]|{{{txt|{{{1}}}}}}}}</includeonly><noinclude> | ||
{{Documentation}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 19:30, 1 May 2026
| 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= to remove link, overrides link if not empty.
Syntax
{{Icon|}}
{{Icon
|
|
|img=
|txt=
|link=
}}
Examples
{{Icon|Scraps}}
{{Icon|food|txt=Food Items}}
{{Icon|Lunasagi|x50px}}
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 |
Modified from Flight Rising Wiki.
