Template:Icon: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
SimpleArrows (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[Image:{{{1}}} {{#if: {{{2|}}}|{{!}}{{{2}}}|{{!}}20px}}|link={{{3|}}}]]</includeonly><noinclude>[[Category: Inline Templates]] | <includeonly>{{#if: {{{caption|}}}|{{{!}} style="text-align: center; line-height: 1;" | ||
{{!}}[[Image:{{{1}}} {{#if: {{{2|}}}|{{!}}{{{2}}}|{{!}}20px}}|link={{{3|}}}]] | |||
{{!}}- | |||
{{!}}{{#if: {{{caption|}}}|{{{caption}}}}} | |||
{{!}}} |[[Image:{{{1}}} {{#if: {{{2|}}}|{{!}}{{{2}}}|{{!}}20px}}|link={{{3|}}}]]}}</includeonly><noinclude>[[Category: Inline Templates]] | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 37: | Line 41: | ||
{{Icon|Icon_RFGMissions.png|50px}} Missions<br> | {{Icon|Icon_RFGMissions.png|50px}} Missions<br> | ||
{{Icon|Icon_RFGMissions.png||Red Faction: Guerrilla Missions}} Missions | {{Icon|Icon_RFGMissions.png||Red Faction: Guerrilla Missions}} Missions | ||
{{Icon|Icon_RFGMissions.png|caption=50}} | |||
</noinclude> | </noinclude> |
Revision as of 12:53, 20 February 2024
Creates a small icon with ease.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | 1 | The image used for the icon.
| File | required |
Size | 2 | Optional. Size override of the icon.
| Number | optional |
Link | 3 | The name of the page to link to. By default, the icon cannot be clicked.
| Page name | optional |
{{Icon|FILE_NAME|SIZE_OVERRIDE|LINK}}
Usage:
{{Icon|Icon_RFGMissions.png}} Missions {{Icon|Icon_RFGMissions.png|50px}} Missions {{Icon|Icon_RFGMissions.png||Red Faction: Guerrilla Missions}} Missions
Output:
Missions
Missions
Missions
50 |