Template:Icon: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><span {{#if:{{{flip|}}}|class="flip"}}>[[File:{{{1|}}}|x20px|link={{{2|}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]</span>{{#if:{{{2|}}}| [[{{{2|}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]}}</includeonly><noinclude>{{/doc}} | <includeonly><span {{#if:{{{flip|}}}|class="flip"}}>[[File:{{{1|}}}|x20px|link={{{2|}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]</span>{{#if:{{{2|}}}| [[{{{2|}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]}}</includeonly><noinclude>{{/doc}}</noinclude> | ||
Revision as of 19:17, 6 April 2025
Creates an inline icon of an image, optionally with a link.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | 1 | The image to use for the icon.
| File | required |
| Link | 2 | Adds a link to the page next to the icon and makes clicking on the icon link to that page.
| String | optional |
| Label | 3 | Changes the text displayed on the link.
| String | optional |
| Flip? | flip | If set to anything, the icon will be flipped horizontally.
| Boolean | optional |
Example usage
| Wikitext | Output |
|---|---|
{{icon|BTD6 Quincy RapidShotAA.png}}
|
|
{{icon|BTD6 Quincy RapidShotAA.png|Quincy (BTD6)}}
|
|
{{icon|BTD6 Quincy RapidShotAA.png|Quincy (BTD6)|Quincy}}
|