Difference between revisions of "Template:Icon"
Jump to navigation
Jump to search
(icon size) |
m |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch: {{lc:{{{1|}}}}} | + | <includeonly>{{#if:{{{2|}}}||<span class="icon-align">}}{{#switch: {{lc:{{{1|}}}}} |
− | | 1 = [[ | + | | 1 = [[File:Gta1.png|link={{{3|:Category:GTA 1}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 1}}]] |
− | | 2 = [[ | + | | 2 = [[File:Gta2.png|link={{{3|:Category:GTA 2}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 2}}]] |
− | | 3 = [[ | + | | 3 = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]] |
− | | iii = [[ | + | | iii = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]] |
− | | vc = [[ | + | | vc = [[File:Vc.png|link={{{3|:Category:GTA VC}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City}}]] |
− | | sa = [[ | + | | sa = [[File:Sa.png|link={{{3|:Category:GTA SA}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|San Andreas}}]] |
− | | trilogy = [[ | + | | trilogy = [[File:Gta3.png|link=:Category:GTA 3|{{{2|16}}}px|GTA III]] [[File:Vc.png|link=:Category:GTA VC|{{{2|16}}}px|Vice City]] [[File:Sa.png|link=:Category:GTA SA|{{{2|16}}}px|San Andreas]] |
− | | t = [[ | + | | t = [[File:Gta3.png|link=:Category:GTA 3|{{{2|16}}}px|GTA III]] [[File:Vc.png|link=:Category:GTA VC|{{{2|16}}}px|Vice City]] [[File:Sa.png|link=:Category:GTA SA|{{{2|16}}}px|San Andreas]] |
− | | lcs = [[ | + | | lcs = [[File:Lcs.png|link={{{3|:Category:GTA LCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Liberty City Stories}}]] |
− | | vcs = [[ | + | | vcs = [[File:Vcs.png|link={{{3|:Category:GTA VCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City Stories}}]] |
− | | iv = [[ | + | | iv = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]] |
− | | 4 = [[ | + | | 4 = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]] |
− | | v = [[ | + | | v = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]] |
− | | 5 = [[ | + | | 5 = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]] |
− | | gtanet = [[ | + | | gtanet = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]] |
− | | net = [[ | + | | net = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]] |
| uns = <span style="font-size:0.8em">unsupported</span> | | uns = <span style="font-size:0.8em">unsupported</span> | ||
− | | [[ | + | | [[File:Gta.png|{{{2|24}}}px|Grand Theft Auto series]] |
− | }}</includeonly><noinclude> | + | }}{{#if:{{{2|}}}||</span>}}</includeonly><noinclude> |
− | {|class="wikitable" | + | {|class="wikitable center-col-1" |
− | ! | + | !style="width: 5em;" |Icon |
!Template syntax | !Template syntax | ||
|- | |- | ||
− | + | |{{Icon|1}} || <nowiki>{{Icon|1}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|2}} || <nowiki>{{Icon|2}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|3}} || <nowiki>{{Icon|3}} or {{Icon|III}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|VC}} || <nowiki>{{Icon|VC}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|SA}} || <nowiki>{{Icon|SA}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|trilogy}} || <nowiki>{{Icon|trilogy}}</nowiki> or <nowiki>{{Icon|t}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|LCS}} || <nowiki>{{Icon|LCS}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|VCS}} || <nowiki>{{Icon|VCS}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|4}} || <nowiki>{{Icon|4}} or {{Icon|IV}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|5}} || <nowiki>{{Icon|5}} or {{Icon|V}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon|GTANet}} || <nowiki>{{Icon|GTAnet}} or {{Icon|net}}</nowiki> | |
|- | |- | ||
− | + | |{{Icon}} || <nowiki>{{Icon}} (default)</nowiki> | |
|} | |} | ||
The second parameter is optional and its value is the icon size (16px, by default). | The second parameter is optional and its value is the icon size (16px, by default). | ||
− | + | Examples: | |
{|class="wikitable" | {|class="wikitable" | ||
|{{Icon|SA|32}} || <nowiki>{{Icon|SA|32}}</nowiki> | |{{Icon|SA|32}} || <nowiki>{{Icon|SA|32}}</nowiki> | ||
+ | |- | ||
+ | |{{Icon|SA|32|Main Page|Mouseover text}} || <nowiki>{{Icon|SA|32|Main Page|Mouseover text}}</nowiki> | ||
+ | |- | ||
+ | |{{Icon|SA|32||No link}} || <nowiki>{{Icon|SA|32||No link}}</nowiki> | ||
+ | |- | ||
+ | |{{Icon|SA}} {{Icon|SA|16}} || <nowiki>{{Icon|SA}} {{Icon|SA|16}}</nowiki> | ||
|} | |} | ||
Parameters are not case sensitive. | Parameters are not case sensitive. | ||
</noinclude> | </noinclude> |
Latest revision as of 21:59, 1 June 2017
The second parameter is optional and its value is the icon size (16px, by default).
Examples:
{{Icon|SA|32}} | |
{{Icon|SA|32|Main Page|Mouseover text}} | |
{{Icon|SA|32||No link}} | |
{{Icon|SA}} {{Icon|SA|16}} |
Parameters are not case sensitive.