Template:Icon: Difference between revisions
From Paw Borough Wiki
(Created page with "<includeonly>[[File:{{{img|{{ucfirst:{{lc:{{{1}}}}}}}}}}.png|{{#if:{{{2}}}|{{{2|x20px}}}|x20px}}|link={{#if:{{{link}}}|{{{link|{{{1}}}}}}|}}]] {{#if:{{{link}}}|[[{{{link|{{{1}}}}}}|{{{txt|{{{1}}}}}}]]|{{{txt|{{{1}}}}}}}}</includeonly><noinclude> ==Usage== Use <nowiki>{{Icon}}</nowiki> to create a link with an image: {{Icon|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...") |
(Edited parameter 1) |
||
| Line 1: | Line 1: | ||
<includeonly>[[File:{{{img| | <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> | ||
==Usage== | ==Usage== | ||
| Line 26: | Line 26: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"description": "The item's name to link to. Default for link and image. Case | "description": "The item's name to link to. Default for link and image. Case sensitive for file name.", | ||
"required": true | "required": true | ||
}, | }, | ||
Revision as of 16:26, 24 April 2026
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}}
File:BiTTer.png biTTer
{{Icon|biTTer|link=}}
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.
