Difference between revisions of "Template:Icon"

From GTAMods Wiki
Jump to navigation Jump to search
(test)
(icon size)
Line 1: Line 1:
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}
 
  | 1 = [[Image:Gta1.png|{{{2|16}}}px|GTA 1]]
 
  | 1 = [[Image:Gta1.png|{{{2|16}}}px|GTA 1]]
  | 2 = [[Image:Gta2.png|16px|GTA 2]]
+
  | 2 = [[Image:Gta2.png|{{{2|16}}}px|GTA 2]]
  | 3 = [[Image:Gta3.png|16px|GTA III]]
+
  | 3 = [[Image:Gta3.png|{{{2|16}}}px|GTA III]]
  | iii = [[Image:Gta3.png|16px|GTA III]]
+
  | iii = [[Image:Gta3.png|{{{2|16}}}px|GTA III]]
  | vc = [[Image:Vc.png|16px|Vice City]]
+
  | vc = [[Image:Vc.png|{{{2|16}}}px|Vice City]]
  | sa = [[Image:Sa.png|16px|San Andreas]]
+
  | sa = [[Image:Sa.png|{{{2|16}}}px|San Andreas]]
  | trilogy = [[Image:Gta3.png|16px|GTA III]]&nbsp;[[Image:Vc.png|16px|Vice City]]&nbsp;[[Image:Sa.png|16px|San Andreas]]
+
  | trilogy = [[Image:Gta3.png|{{{2|16}}}px|GTA III]]&nbsp;[[Image:Vc.png|{{{2|16}}}px|Vice City]]&nbsp;[[Image:Sa.png|{{{2|16}}}px|San Andreas]]
  | t = [[Image:Gta3.png|16px|GTA III]]&nbsp;[[Image:Vc.png|16px|Vice City]]&nbsp;[[Image:Sa.png|16px|San Andreas]]
+
  | t = [[Image:Gta3.png|{{{2|16}}}px|GTA III]]&nbsp;[[Image:Vc.png|{{{2|16}}}px|Vice City]]&nbsp;[[Image:Sa.png|{{{2|16}}}px|San Andreas]]
  | lcs = [[Image:Lcs.png|16px|GTA LCS]]
+
  | lcs = [[Image:Lcs.png|{{{2|16}}}px|GTA LCS]]
  | vcs = [[Image:Vcs.png|16px|GTA VCS]]
+
  | vcs = [[Image:Vcs.png|{{{2|16}}}px|GTA VCS]]
  | iv = [[Image:GTAIV.png|16px|GTA 4]]
+
  | iv = [[Image:GTAIV.png|{{{2|16}}}px|GTA 4]]
  | 4 = [[Image:GTAIV.png|16px|GTA 4]]
+
  | 4 = [[Image:GTAIV.png|{{{2|16}}}px|GTA 4]]
  | v = [[Image:GTAV.png|16px|GTA 5]]
+
  | v = [[Image:GTAV.png|{{{2|16}}}6px|GTA 5]]
  | 5 = [[Image:GTAV.png|16px|GTA 5]]
+
  | 5 = [[Image:GTAV.png|{{{2|16}}}px|GTA 5]]
  | gtanet = [[Image:Gtanet.png|16px|GTA Net]]
+
  | gtanet = [[Image:Gtanet.png|{{{2|16}}}px|GTA Net]]
  | net = [[Image:Gtanet.png|16px|GTA Net]]
+
  | net = [[Image: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>
 
  | [[Image:Gta.png|24px|Grand Theft Auto series]]
 
  | [[Image:Gta.png|24px|Grand Theft Auto series]]
Line 46: Line 46:
 
|-
 
|-
 
|{{a|c}}|{{Icon}} || <nowiki>{{Icon}} (default)</nowiki>
 
|{{a|c}}|{{Icon}} || <nowiki>{{Icon}} (default)</nowiki>
 +
|}
 +
The second parameter is optional and its value is the icon size (16px, by default).
 +
 +
Example:
 +
{|class="wikitable"
 +
|{{Icon|SA|32}} || <nowiki>{{Icon|SA|32}}</nowiki>
 
|}
 
|}
 
Parameters are not case sensitive.
 
Parameters are not case sensitive.
 
</noinclude>
 
</noinclude>

Revision as of 15:23, 20 August 2014

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}}
GTA LCS {{Icon|LCS}}
GTA VCS {{Icon|VCS}}
GTA 4 {{Icon|4}} or {{Icon|IV}}
GTA 5 {{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).

Example:

San Andreas {{Icon|SA|32}}

Parameters are not case sensitive.