Difference between revisions of "Template:Icon"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}
 
<includeonly>{{#switch: {{lc:{{{1|}}}}}
  | 1 = [[File:Gta1.png|link={{{3|:Category:GTA 1}}}|{{{2|16}}}px|GTA 1]]
+
  | 1 = [[File:Gta1.png|link={{{3|:Category:GTA 1}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA 1]]
  | 2 = [[File:Gta2.png|link={{{3|:Category:GTA 2}}}|{{{2|16}}}px|GTA 2]]
+
  | 2 = [[File:Gta2.png|link={{{3|:Category:GTA 2}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA 2]]
  | 3 = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|GTA III]]
+
  | 3 = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA III]]
  | iii = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|GTA III]]
+
  | iii = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA III]]
  | vc = [[File:Vc.png|link={{{3|:Category:GTA VC}}}|{{{2|16}}}px|Vice City]]
+
  | vc = [[File:Vc.png|link={{{3|:Category:GTA VC}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|Vice City]]
  | sa = [[File:Sa.png|link={{{3|:Category:GTA SA}}}|{{{2|16}}}px|San Andreas]]
+
  | sa = [[File:Sa.png|link={{{3|:Category:GTA SA}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|San Andreas]]
  | 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]]
+
  | trilogy = [[File:Gta3.png|link=:Category:GTA 3|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA III]]&nbsp;[[File:Vc.png|link=:Category:GTA VC|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|Vice City]]&nbsp;[[File:Sa.png|link=:Category:GTA SA|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|San Andreas]]
  | 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]]
+
  | t = [[File:Gta3.png|link=:Category:GTA 3|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA III]]&nbsp;[[File:Vc.png|link=:Category:GTA VC|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|Vice City]]&nbsp;[[File:Sa.png|link=:Category:GTA SA|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|San Andreas]]
  | lcs = [[File:Lcs.png|link={{{3|:Category:GTA LCS}}}|{{{2|16}}}px|GTA LCS]]
+
  | lcs = [[File:Lcs.png|link={{{3|:Category:GTA LCS}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA LCS]]
  | vcs = [[File:Vcs.png|link={{{3|:Category:GTA VCS}}}|{{{2|16}}}px|GTA VCS]]
+
  | vcs = [[File:Vcs.png|link={{{3|:Category:GTA VCS}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA VCS]]
  | iv = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|GTA IV]]
+
  | iv = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA IV]]
  | 4 = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|GTA IV]]
+
  | 4 = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA IV]]
  | v = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|GTA V]]
+
  | v = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA V]]
  | 5 = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|GTA V]]
+
  | 5 = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA V]]
  | gtanet = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
+
  | gtanet = [[File:Gtanet.png|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|GTA Net]]
  | net = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
+
  | net = [[File:Gtanet.png|{{{2|16}}}px|{{#if:{{{2|}}}||text-top}}|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]]
 
  | [[File:Gta.png|{{{2|24}}}px|Grand Theft Auto series]]

Revision as of 20:31, 29 November 2015

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 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).

Example:

32px San Andreas {{Icon|SA|32}}

Parameters are not case sensitive.