Difference between revisions of "Template:Icon"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}
+
<includeonly>{{#if:{{{2|}}}||<span class="icon-align">}}{{#switch: {{lc:{{{1|}}}}}
  | 1 = <linkedimage>
+
  | 1 = [[File:Gta1.png|link={{{3|:Category:GTA 1}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 1}}]]
wikipage=Category:GTA_1
+
  | 2 = [[File:Gta2.png|link={{{3|:Category:GTA 2}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA 2}}]]
tooltip=GTA 1
+
  | 3 = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]]
img_src=Image:Gta1.png
+
| iii = [[File:Gta3.png|link={{{3|:Category:GTA 3}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA III}}]]
img_width=16px
+
  | vc = [[File:Vc.png|link={{{3|:Category:GTA VC}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City}}]]
img_height=16px
+
  | sa = [[File:Sa.png|link={{{3|:Category:GTA SA}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|San Andreas}}]]
img_alt=GTA 1
+
| 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]]
</linkedimage>
+
  | 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]]
  | 2 = <linkedimage>
+
  | lcs = [[File:Lcs.png|link={{{3|:Category:GTA LCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Liberty City Stories}}]]
wikipage=Category:GTA_2
+
| vcs = [[File:Vcs.png|link={{{3|:Category:GTA VCS}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|Vice City Stories}}]]
tooltip=GTA 2
+
  | iv = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]]
img_src=Image:Gta2.png
+
| 4 = [[File:GTAIV.png|link={{{3|:Category:GTA 4}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA IV}}]]
img_width=16px
+
| v = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]]
img_height=16px
+
  | 5 = [[File:GTAV.png|link={{{3|:Category:GTA 5}}}|{{{2|16}}}px|{{#if:{{{4|}}}|{{{4}}}|GTA V}}]]
img_alt=GTA 2
+
| gtanet = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
</linkedimage>
+
| net = [[File:Gtanet.png|{{{2|16}}}px|GTA Net]]
  | 3 = <linkedimage>
+
| uns = <span style="font-size:0.8em">unsupported</span>
wikipage=GTA 3
+
| [[File:Gta.png|{{{2|24}}}px|Grand Theft Auto series]]
tooltip=GTA III
+
}}{{#if:{{{2|}}}||</span>}}</includeonly><noinclude>
img_src=Image:Gta3.png
+
{|class="wikitable center-col-1"
img_width=16px
+
!style="width: 5em;" |Icon
img_height=16px
+
!Template syntax
img_alt=III
+
|-
</linkedimage>
+
|{{Icon|1}} || <nowiki>{{Icon|1}}</nowiki>
| iii = <linkedimage>
+
|-
wikipage=GTA 3
+
|{{Icon|2}} || <nowiki>{{Icon|2}}</nowiki>
tooltip=GTA III
+
|-
img_src=Image:Gta3.png
+
|{{Icon|3}} || <nowiki>{{Icon|3}} or {{Icon|III}}</nowiki>
img_width=16px
+
|-
img_height=16px
+
|{{Icon|VC}} || <nowiki>{{Icon|VC}}</nowiki>
img_alt=III
+
|-
</linkedimage>
+
|{{Icon|SA}} || <nowiki>{{Icon|SA}}</nowiki>
  | vc = <linkedimage>
+
|-
wikipage=GTA VC
+
|{{Icon|trilogy}} || <nowiki>{{Icon|trilogy}}</nowiki> or <nowiki>{{Icon|t}}</nowiki>
tooltip=GTA VC
+
|-
img_src=Image:Vc.png
+
|{{Icon|LCS}} || <nowiki>{{Icon|LCS}}</nowiki>
img_width=16px
+
|-
img_height=16px
+
|{{Icon|VCS}} || <nowiki>{{Icon|VCS}}</nowiki>
img_alt=VC
+
|-
</linkedimage>
+
|{{Icon|4}} || <nowiki>{{Icon|4}} or {{Icon|IV}}</nowiki>
  | sa = <linkedimage>
+
|-
wikipage=GTA SA
+
|{{Icon|5}} || <nowiki>{{Icon|5}} or {{Icon|V}}</nowiki>
tooltip=GTA SA
+
|-
img_src=Image:Sa.png
+
|{{Icon|GTANet}} || <nowiki>{{Icon|GTAnet}} or {{Icon|net}}</nowiki>
img_width=16px
+
|-
img_height=16px
+
|{{Icon}} || <nowiki>{{Icon}} (default)</nowiki>
img_alt=SA
+
|}
</linkedimage>
+
The second parameter is optional and its value is the icon size (16px, by default).
  | lcs = <linkedimage>
+
 
wikipage=Category:GTA_LCS
+
Examples:
tooltip=GTA LCS
+
{|class="wikitable"
img_src=Image:Lcs.png
+
|{{Icon|SA|32}} || <nowiki>{{Icon|SA|32}}</nowiki>
img_width=16px
+
|-
img_height=16px
+
|{{Icon|SA|32|Main Page|Mouseover text}} || <nowiki>{{Icon|SA|32|Main Page|Mouseover text}}</nowiki>
img_alt=LCS
+
|-
</linkedimage>
+
|{{Icon|SA|32||No link}} || <nowiki>{{Icon|SA|32||No link}}</nowiki>
  | vcs = <linkedimage>
+
|-
wikipage=Category:GTA_VCS
+
|{{Icon|SA}} {{Icon|SA|16}} || <nowiki>{{Icon|SA}} {{Icon|SA|16}}</nowiki>
tooltip=GTA VCS
+
|}
img_src=Image:Vcs.png
+
Parameters are not case sensitive.
img_width=16px
 
img_height=16px
 
img_alt=VCS
 
</linkedimage>
 
  | iv = <linkedimage>
 
wikipage=GTA 4
 
tooltip=GTA 4
 
img_src=Image:GTAIV.png
 
img_width=16px
 
img_height=16px
 
img_alt=IV
 
</linkedimage>
 
  | 4 = <linkedimage>
 
wikipage=GTA 4
 
tooltip=GTA 4
 
img_src=Image:GTAIV.png
 
img_width=16px
 
img_height=16px
 
img_alt=IV
 
</linkedimage>
 
}}</includeonly><noinclude>
 
{{Icon|1}} &ndash; <nowiki>{{Icon|1}}</nowiki>
 
{{Icon|2}} &ndash; <nowiki>{{Icon|2}}</nowiki>
 
{{Icon|3}} &ndash; <nowiki>{{Icon|3}} or {{Icon|III}}</nowiki>
 
{{Icon|VC}} &ndash; <nowiki>{{Icon|VC}}</nowiki>
 
{{Icon|SA}} &ndash; <nowiki>{{Icon|SA}}</nowiki>
 
{{Icon|LCS}} &ndash; <nowiki>{{Icon|LCS}}</nowiki>
 
{{Icon|VCS}} &ndash; <nowiki>{{Icon|VCS}}</nowiki>
 
{{Icon|4}} &ndash; <nowiki>{{Icon|4}} or {{Icon|IV}}</nowiki>  
 
 
</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.