Template:Icon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><span {{#if:{{{flip|}}}|class="flip"}}>[[File:{{{1|}}}|x20px|link={{{2|}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]</span> [[{{{2|}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]</includeonly><noinclude>{{/doc}}[[Category:Icon templates]]</noinclude> | ||
Revision as of 05:45, 15 November 2024
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}}
|