Difference between revisions of "Template:Icon"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(32 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 = <imagemap>Image:Gta1.png|16px|
+
  | 1 = [[File:Gta1.png|link={{{3|:Category:GTA 1}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 1}}]]
default [[:Category:GTA_1|GTA 1]] desc none</imagemap>
+
  | 2 = [[File:Gta2.png|link={{{3|:Category:GTA 2}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 2}}]]
  | 2 = <imagemap>Image:Gta2.png|16px|
+
  | 3 = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]]
default [[:Category:GTA_2|GTA 2]]</imagemap>
+
  | iii = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]]
  | 3 = <imagemap>Image:Gta3.png|16px|
+
  | vc = [[File:Vc.png|link={{{3|:Category:GTA VC}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City}}]]
default [[GTA 3|GTA 3]]</imagemap>
+
  | sa = [[File:Sa.png|link={{{3|:Category:GTA SA}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|San Andreas}}]]
  | iii = <imagemap>Image:Gta3.png|16px|
+
| 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]]
default [[GTA 3|GTA3]]</imagemap>
+
  | 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]]
  | vc = <imagemap>Image:Vc.png|16px|
+
| lcs = [[File:Lcs.png|link={{{3|:Category:GTA LCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Liberty City Stories}}]]
default [[GTA VC|Vice City]]</imagemap>
+
  | vcs = [[File:Vcs.png|link={{{3|:Category:GTA VCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City Stories}}]]
  | sa = <imagemap>Image:Sa.png|16px|
+
| iv = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]]
default [[GTA SA|San Andreas]]</imagemap>
+
  | 4 = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]]
  | lcs = <imagemap>Image:Lcs.png|16px|
+
| v = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]]
default [[:Category:GTA LCS|GTA LCS]]</imagemap>
+
| 5 = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]]
  | vcs = <imagemap>Image:Vcs.png|16px|
+
  | gtanet = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
default [[:Category:GTA VCS|GTA VCS]]</imagemap>
+
| net = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
  | iv = <imagemap>Image:GTAIV.png|16px|
+
| uns = <span style="font-size:0.8em">unsupported</span>
default [[GTA 4|GTA 4]]</imagemap>
+
| [[File:Gta.png|{{{2|24}}}px|Grand Theft Auto series]]
  | 4 = <imagemap>Image:GTAIV.png|16px|
+
}}{{#if:{{{2|}}}||</span>}}</includeonly><noinclude>
default [[GTA 4|GTA4]]</imagemap>
+
{|class="wikitable center-col-1"
}}<noinclude>
+
!style="width: 5em;" |Icon
{{Icon|1}} &ndash; <nowiki>{{Icon|1}}</nowiki>
+
!Template syntax
{{Icon|2}} &ndash; <nowiki>{{Icon|2}}</nowiki>
+
|-
{{Icon|3}} &ndash; <nowiki>{{Icon|3}} or {{Icon|III}}</nowiki>
+
|{{Icon|1}} || <nowiki>{{Icon|1}}</nowiki>
{{Icon|VC}} &ndash; <nowiki>{{Icon|VC}}</nowiki>
+
|-
{{Icon|SA}} &ndash; <nowiki>{{Icon|SA}}</nowiki>
+
|{{Icon|2}} || <nowiki>{{Icon|2}}</nowiki>
{{Icon|LCS}} &ndash; <nowiki>{{Icon|LCS}}</nowiki>
+
|-
{{Icon|VCS}} &ndash; <nowiki>{{Icon|VCS}}</nowiki>
+
|{{Icon|3}} || <nowiki>{{Icon|3}} or {{Icon|III}}</nowiki>
{{Icon|4}} &ndash; <nowiki>{{Icon|4}} or {{Icon|IV}}</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>
 
</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.