Difference between revisions of "Template:Icon"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{#switch: {{lc:{{{1|}}}}} | 1 = 16px|GTA 1 | 2 = 16px|GTA 2 | 3 = 16px|GTA III | iii = 16px|GTA III | vc =...)
 
m
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch: {{lc:{{{1|}}}}}
+
<includeonly>{{#if:{{{2|}}}||<span class="icon-align">}}{{#switch: {{lc:{{{1|}}}}}
  | 1 = [[Image:Gta1.png|16px|GTA 1]]
+
  | 1 = [[File:Gta1.png|link={{{3|:Category:GTA 1}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 1}}]]
  | 2 = [[Image:Gta2.png|16px|GTA 2]]
+
  | 2 = [[File:Gta2.png|link={{{3|:Category:GTA 2}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 2}}]]
  | 3 = [[Image:Gta3.png|16px|GTA III]]
+
  | 3 = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]]
  | iii = [[Image:Gta3.png|16px|GTA III]]
+
  | iii = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]]
  | vc = [[Image:Vc.png|16px|Vice City]]
+
  | vc = [[File:Vc.png|link={{{3|:Category:GTA VC}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City}}]]
  | sa = [[Image:Sa.png|16px|San Andreas]]
+
  | sa = [[File:Sa.png|link={{{3|:Category:GTA SA}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|San Andreas}}]]
  | lcs = [[Image:Lcs.png|16px|GTA LCS]]
+
| trilogy = [[File:Gta3.png|link=:Category:GTA 3|{{{2|16}}}px|GTA III]]&nbsp;[[File:Vc.png|link=:Category:GTA VC|{{{2|16}}}px|Vice City]]&nbsp;[[File:Sa.png|link=:Category:GTA SA|{{{2|16}}}px|San Andreas]]
  | vcs = [[Image:Vcs.png|16px|GTA VCS]]
+
| t = [[File:Gta3.png|link=:Category:GTA 3|{{{2|16}}}px|GTA III]]&nbsp;[[File:Vc.png|link=:Category:GTA VC|{{{2|16}}}px|Vice City]]&nbsp;[[File:Sa.png|link=:Category:GTA SA|{{{2|16}}}px|San Andreas]]
  | iv = [[Image:GTAIV.png|16px|GTA 4]]
+
  | lcs = [[File:Lcs.png|link={{{3|:Category:GTA LCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Liberty City Stories}}]]
  | 4 = [[Image:GTAIV.png|16px|GTA 4]]
+
  | vcs = [[File:Vcs.png|link={{{3|:Category:GTA VCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City Stories}}]]
}}
+
  | iv = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]]
 +
  | 4 = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]]
 +
| v = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]]
 +
| 5 = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]]
 +
| gtanet = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
 +
| net = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
 +
| uns = <span style="font-size:0.8em">unsupported</span>
 +
| [[File:Gta.png|{{{2|24}}}px|Grand Theft Auto series]]
 +
}}{{#if:{{{2|}}}||</span>}}</includeonly><noinclude>
 +
{|class="wikitable center-col-1"
 +
!style="width: 5em;" |Icon
 +
!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).
 +
 
 +
Examples:
 +
{|class="wikitable"
 +
|{{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.
 +
</noinclude>

Latest revision as of 21:59, 1 June 2017

Icon Template syntax
GTA 1 {{Icon|1}}
GTA 2 {{Icon|2}}
GTA III {{Icon|3}} or {{Icon|III}}
Vice City {{Icon|VC}}
San Andreas {{Icon|SA}}
GTA III Vice City San Andreas {{Icon|trilogy}} or {{Icon|t}}
Liberty City Stories {{Icon|LCS}}
Vice City Stories {{Icon|VCS}}
GTA IV {{Icon|4}} or {{Icon|IV}}
GTA V {{Icon|5}} or {{Icon|V}}
GTA Net {{Icon|GTAnet}} or {{Icon|net}}
Grand Theft Auto series {{Icon}} (default)

The second parameter is optional and its value is the icon size (16px, by default).

Examples:

San Andreas {{Icon|SA|32}}
Mouseover text {{Icon|SA|32|Main Page|Mouseover text}}
No link {{Icon|SA|32||No link}}
San Andreas San Andreas {{Icon|SA}} {{Icon|SA|16}}

Parameters are not case sensitive.