Difference between revisions of "Template:Icon"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}
+
<includeonly>{{#if:{{{2|}}}||<span class="icon-align">}}{{#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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|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|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|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|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]]
  | 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:{{{4|}}}|{{{4}}}|Liberty City Stories}}]]
  | 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:{{{4|}}}|{{{4}}}|Vice City Stories}}]]
  | 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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|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:{{{4|}}}|{{{4}}}|GTA V}}]]
 
  | gtanet = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
 
  | gtanet = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
 
  | net = [[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>
 
  | 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]]
}}</includeonly><noinclude>
+
}}{{#if:{{{2|}}}||</span>}}</includeonly><noinclude>
{|class="wikitable"
+
{|class="wikitable center-col-1"
!width="60" |Icon
+
!style="width: 5em;" |Icon
 
!Template syntax
 
!Template syntax
 
|-
 
|-
|{{a|c}}|{{Icon|1}} || <nowiki>{{Icon|1}}</nowiki>
+
|{{Icon|1}} || <nowiki>{{Icon|1}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|2}} || <nowiki>{{Icon|2}}</nowiki>
+
|{{Icon|2}} || <nowiki>{{Icon|2}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|3}} || <nowiki>{{Icon|3}} or {{Icon|III}}</nowiki>
+
|{{Icon|3}} || <nowiki>{{Icon|3}} or {{Icon|III}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|VC}} || <nowiki>{{Icon|VC}}</nowiki>
+
|{{Icon|VC}} || <nowiki>{{Icon|VC}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|SA}} || <nowiki>{{Icon|SA}}</nowiki>
+
|{{Icon|SA}} || <nowiki>{{Icon|SA}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|trilogy}} || <nowiki>{{Icon|trilogy}}</nowiki> or <nowiki>{{Icon|t}}</nowiki>
+
|{{Icon|trilogy}} || <nowiki>{{Icon|trilogy}}</nowiki> or <nowiki>{{Icon|t}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|LCS}} || <nowiki>{{Icon|LCS}}</nowiki>
+
|{{Icon|LCS}} || <nowiki>{{Icon|LCS}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|VCS}} || <nowiki>{{Icon|VCS}}</nowiki>
+
|{{Icon|VCS}} || <nowiki>{{Icon|VCS}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|4}} || <nowiki>{{Icon|4}} or {{Icon|IV}}</nowiki>
+
|{{Icon|4}} || <nowiki>{{Icon|4}} or {{Icon|IV}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|5}} || <nowiki>{{Icon|5}} or {{Icon|V}}</nowiki>
+
|{{Icon|5}} || <nowiki>{{Icon|5}} or {{Icon|V}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon|GTANet}} || <nowiki>{{Icon|GTAnet}} or {{Icon|net}}</nowiki>
+
|{{Icon|GTANet}} || <nowiki>{{Icon|GTAnet}} or {{Icon|net}}</nowiki>
 
|-
 
|-
|{{a|c}}|{{Icon}} || <nowiki>{{Icon}} (default)</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).
  
Example:
+
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

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.