Icon – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix OFP:E link)
(template overhaul)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}
<includeonly>
| ofp | cwa | arma0 = [[File:Logo_A0.png|{{{3|48}}}px|link=:Category:Operation Flashpoint]]
{{#switch: {{lc:{{{1|}}}}}
| ofpr = [[File:ofpr version.gif|{{{3|48}}}px|link=Operation Flashpoint: Resistance]]
  <!---OPERATION FLASHPOINT --->
| ofpe = [[File:ofpe version.gif|{{{3|48}}}px|link=:Category:Operation Flashpoint: Elite]]
  | ofp | cwa | arma0 = [[File:Logo_A0.png|{{{3|48}}}px|link=:Category:Operation Flashpoint]]
| arma | arma1 = [[File:Logo A1 black.png|{{{3|48}}}px|link=ArmA: The Game]]
  | ofpr = [[File:ofpr version.gif|{{{3|48}}}px|link=Operation Flashpoint: Resistance]]
| arma2 = {{#switch: {{lc:{{{2}}}}}
  | ofpe = [[File:ofpe version.gif|{{{3|48}}}px|link=:Category:Operation Flashpoint: Elite]]
| oa
  <!---ARMED ASSAULT --->
| arrowhead
  | arma | arma1 = [[File:Logo A1 black.png|{{{3|48}}}px|link=ArmA: The Game]]
| operation arrowhead = [[File:A2 OA Logo.png|{{{3|48}}}px|link=:Category:Arma 2: Operation Arrowhead]]
  | arma_alt | arma1_alt = [[File:Logo_A1.png|{{{3|48}}}px|link=http://armedassault.com]]
| #default = [[File:Logo A2.png|{{{3|48}}}px|link={{arma2}}]]
  <!---ARMA2 & OA --->
}}
  | arma2 | a2 = [[File:Logo_A2.png|{{{3|48}}}px|link=:Category:Arma 2]]
| arma3 =
  | arma2oa | oa | arrowhead | operation arrowhead = [[File:A2 OA Logo.png|{{{3|48}}}px|link=:Category:Arma 2: Operation Arrowhead]]
{{#switch: {{lc:{{{2|}}}}}
  | arma2acr | acr = [[File:Logo_A2ACR.png|{{{3|48}}}px|link=http://arma2.com/acr]]
| curator | zeus = [[File:arma3_curator_eye.png|{{{3|48}}}px|link=Arma 3 Zeus]]
  | arma2baf | baf = [[File:Logo_A2BAF.png|{{{3|48}}}px|link=http://arma2.com/baf]]
| kart | karts = [[File:karts_icon_ca.png|{{{3|48}}}px|link=Arma 3 Karts]]
  | arma2pmc | pmc = [[File:Logo_A2PMC.png|{{{3|48}}}px|link=http://arma2.com/pmc]]
| heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{3|48}}}px|link=Arma 3 Helicopters]]
  <!---ARMA3 --->
| mark | marks | marksmen = [[File:mark_icon_ca.png|{{{3|48}}}px|link=Arma 3 Marksmen]]
  | arma3 | a3 = [[File:Arma 3 logo black.png|{{{3|48}}}px|link={{arma3}}]]
| expansion | apex = [[File:apex_icon_ca.png|{{{3|48}}}px|link=Arma 3 Apex]]
  | curator | zeus = [[File:arma3_curator_eye.png|{{{3|48}}}px|link=Arma 3 Zeus]]
| jets = [[File:jets_icon_ca.png|{{{3|48}}}px|link=Arma 3 Jets]]
  | kart | karts = [[File:karts_icon_ca.png|{{{3|48}}}px|link=Arma 3 Karts]]
| argo | malden = [[File:malden_icon_ca.png|{{{3|48}}}px|link=Arma 3 Malden]]
  | heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{3|48}}}px|link=Arma 3 Helicopters]]
| orange | low | laws of war = [[File:orange_icon_ca.png|{{{3|48}}}px|link=Arma 3 Laws of War]]
  | mark | marks | marksmen = [[File:mark_icon_ca.png|{{{3|48}}}px|link=Arma 3 Marksmen]]
| tacop | tacops | tac-op | tac-ops = [[File:tacops_icon_ca.png|{{{3|48}}}px|link=Arma 3 Tac-Ops Mission Pack]]
  | expansion | apex = [[File:apex_icon_ca.png|{{{3|48}}}px|link=Arma 3 Apex]]
| tank | tanks = [[File:tank_icon_ca.png|{{{3|48}}}px|link=Arma 3 Tanks]]
  | jets = [[File:jets_icon_ca.png|{{{3|48}}}px|link=Arma 3 Jets]]
| enoch | contact = [[File:enoch_icon_ca.png|{{{3|48}}}px|link=Arma 3 Contact]]
  | argo | malden = [[File:malden_icon_ca.png|{{{3|48}}}px|link=Arma 3 Malden]]
| #default = [[File:Arma 3 logo black.png|{{{3|48}}}px|link={{arma3}}]]
  | orange | low | laws of war = [[File:orange_icon_ca.png|{{{3|48}}}px|link=Arma 3 Laws of War]]
}}
  | tacop | tacops | tac-op | tac-ops = [[File:tacops_icon_ca.png|{{{3|48}}}px|link=Arma 3 Tac-Ops Mission Pack]]
| cc | carrier command = [[Image:CC Logo.png|{{{3|48}}}px|link=:Carrier Command: Gaea Mission]]
  | tank | tanks = [[File:tank_icon_ca.png|{{{3|48}}}px|link=Arma 3 Tanks]]
| tkoh = [[File:Logo TakOH full.png|{{{3|48}}}px|link=Take On Helicopters]]
  | enoch | contact = [[File:enoch_icon_ca.png|{{{3|48}}}px|link=Arma 3 Contact]]
| tkom = [[File:tkom logo.png|{{{3|48}}}px|link=Take On Mars]]
  <!---TAKE ON --->
| dayz = [[File:dayzlogoinv.png|{{{3|48}}}px|link=DayZ]]
  | tkoh = [[File:Logo TakOH full.png|{{{3|48}}}px|link=Take On Helicopters]]
| ylands = [[File:Ylands 3D Logo.png|{{{3|48}}}px|link=Ylands]]
  | tkoh_alt = [[File:Logo_TakOH.png|{{{3|48}}}px|link=http://takeonthegame.com]]
| #default = -no [[Template:Icon|game]] defined!-
  | tkom = [[File:tkom logo.png|{{{3|48}}}px|link=Take On Mars]]
  <!---OTHER GAMES --->
  | cc | carrier command = [[File:CC Logo.png|{{{3|48}}}px|link=:Carrier Command: Gaea Mission]]
  | dayz = [[File:dayzlogoinv.png|{{{3|48}}}px|link=DayZ]]
  | ylands = [[File:Ylands 3D Logo.png|{{{3|48}}}px|link=Ylands]]
  <!---TIMELINE & GENERIC--->
  | aan= [[File:Logo_TVAAN.png|48px|link=http://aan.moricky.com]]
  | person = <div style="width:50px;text-align:center;">[[File:Icon_Person.png|{{{3|48}}}px]]</div>
  | real = <div style="width:50px;text-align:center;">[[File:Icon_History.png|{{{3|48}}}px]]</div>
  <!---DEFAULT--->
  | #default = -no [[Template:Icon|game]] defined!-
}}</includeonly><noinclude>
}}</includeonly><noinclude>
One template to rule them all (icons).


== Usage ==
'''Usage:'''<br>
{{<nowiki/>Icon|'''''game'''''|'''''dlc'''''|'''''size'''''}}
<tt><noWiki>{{Icon|<icon> (default: no icon)|<size> (default: 48 px)}}</noWiki></tt>
* game: the concerned game. Can be <tt>ofp / cwa / arma0</tt>, <tt>ofpr</tt>, <tt>arma / arma1</tt>, <tt>arma2</tt>, <tt>arma3</tt>, <tt>cc / carrier command</tt>, <tt>tkoh</tt>, <tt>dayz</tt> or <tt>ylands</tt>
* dlc: (Optional, default "") DLC. Can be empty, or:
** arma2: <tt>oa / arrowhead / operation arrowhead</tt>
** arma3:
*** <tt>curator / zeus</tt>
*** <tt>kart / karts</tt>
*** <tt>heli / helicopter / helicopters</tt>
*** <tt>mark / marks / marksmen</tt>
*** <tt>expansion / apex</tt>
*** <tt>jets</tt>
*** <tt>argo / malden</tt>
*** <tt>orange / low / laws of war</tt>
*** <tt>tacop / tacops / tac-op / tac-ops</tt>
*** <tt>tank / tanks</tt>
*** <tt>enoch / contact</tt>
* size: (Optional, default 48) in pixels


{|class="wikitable"
'''Icons:'''
|+ Examples
{| class="wikitable sortable"
! Code
! Result
|-
|-
| <nowiki>{{Icon}}</nowiki>
! Preview !! IconNames
| {{Icon}}
|-
! colspan="2" style="background-color:#BDBDBD;" | {{ofp}}
|-
|-
| <nowiki>{{Icon|ofp}}</nowiki>
| {{Icon|ofp}}
| {{Icon|ofp}}
| ofp, cwa, arma0
|-
|-
| <nowiki>{{Icon|ofpr}}</nowiki>
| {{Icon|ofpr}}
| {{Icon|ofpr}}
| ofpr
|-
|-
| <nowiki>{{Icon|ofpe}}</nowiki>
| {{Icon|ofpe}}
| {{Icon|ofpe}}
| ofpe
|-
! colspan="2" style="background-color:#BDBDBD;" | {{arma}}
|-
|-
| <nowiki>{{Icon|arma}}</nowiki>
| {{Icon|arma}}
| {{Icon|arma}}
| arma, arma1
|-
| {{Icon|arma_alt}}
| arma_alt, arma1_alt
|-
! colspan="2" style="background-color:#BDBDBD;" | {{arma2}}
|-
|-
| <nowiki>{{Icon|arma2}}</nowiki>
| {{Icon|arma2}}
| {{Icon|arma2}}
| a2
|-
| {{Icon|arma2oa}}
| arma2oa, oa, arrowhead, operation arrowhead
|-
| {{Icon|arma2acr}}
| arma2acr, acr
|-
| {{Icon|arma2baf}}
| arma2baf, baf
|-
| {{Icon|arma2pmc}}
| arma2pmc, pmc
|-
|-
| <nowiki>{{Icon|arma2|oa}}</nowiki>
! colspan="2" style="background-color:#BDBDBD;" | {{arma3}}
| {{Icon|arma2|oa}}
|-
|-
| <nowiki>{{Icon|arma3}}</nowiki>
| {{Icon|arma3}}
| {{Icon|arma3}}
| arma3, a3
|-
| {{Icon|curator}}
| curator, zeus
|-
| {{Icon|kart}}
| kart, karts
|-
|-
| <nowiki>{{Icon|cc}}</nowiki>
| {{Icon|heli}}
| {{Icon|cc}}
| heli, helicopter, helicopters
|-
| {{Icon|mark}}
| mark, marks, marksmen
|-
| {{Icon|expansion}}
| expansion, apex
|-
| {{Icon|jets}}
| jets
|-
| {{Icon|argo}}
| argo, malden
|-
| {{Icon|orange}}
| orange, low, laws of war
|-
| {{Icon|tacop}}
| tacop, tac-op, tac-ops
|-
|-
| <nowiki>{{Icon|tkoh}}</nowiki>
| {{Icon|tank}}
| {{Icon|tkoh}}
| tank, tanks
|-
|-
| <nowiki>{{Icon|tkom}}</nowiki>
| {{Icon|enoch}}
| {{Icon|tkom}}
| enoch, contact
|-
|-
| <nowiki>{{Icon|dayz}}</nowiki>
! colspan="2" style="background-color:#BDBDBD;" | Take On
| {{Icon|dayz}}
|-
|-
| <nowiki>{{Icon|ylands}}</nowiki>
| {{Icon|tkoh}}
| {{Icon|ylands}}
| tkoh
|-
|-
| <nowiki>{{Icon|arma3|zeus}}</nowiki>
| {{Icon|tkoh_alt}}
| {{Icon|arma3|zeus}}
| tkoh_alt
|-
|-
| <nowiki>{{Icon|arma3|karts}}</nowiki>
| {{Icon|tkom}}
| {{Icon|arma3|karts}}
| tkom
|-
|-
| <nowiki>{{Icon|arma3|heli}}</nowiki>
! colspan="2" style="background-color:#BDBDBD;" | Misc.
| {{Icon|arma3|heli}}
|-
|-
| <nowiki>{{Icon|arma3|marksmen}}</nowiki>
| {{Icon|cc}}
| {{Icon|arma3|marksmen}}
| cc, carrier command
|-
|-
| <nowiki>{{Icon|arma3|apex}}</nowiki>
| {{Icon|dayz}}
| {{Icon|arma3|apex}}
| dayz
|-
|-
| <nowiki>{{Icon|arma3|tacops}}</nowiki>
| {{Icon|ylands}}
| {{Icon|arma3|tacops}}
| ylands
|-
|-
| <nowiki>{{Icon|arma3|malden}}</nowiki>
! colspan="2" style="background-color:#BDBDBD;" | Timeline
| {{Icon|arma3|malden}}
|-
|-
| <nowiki>{{Icon|arma3|low}}</nowiki>
| {{Icon|aan}}
| {{Icon|arma3|low}}
| aan
|-
|-
| <nowiki>{{Icon|arma3|tacops}}</nowiki>
| {{Icon|person}}
| {{Icon|arma3|tacops}}
| person
|-
|-
| <nowiki>{{Icon|arma3|tanks}}</nowiki>
| {{Icon|real}}
| {{Icon|arma3|tanks}}
| real
|-
|-
| <nowiki>{{Icon|arma3|contact}}</nowiki>
| {{Icon|arma3|contact}}
|}
|}
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 16:16, 26 December 2020

One template to rule them all (icons).

Usage:
{{Icon|<icon> (default: no icon)|<size> (default: 48 px)}}

Icons:

Preview IconNames
Operation Flashpoint

Logo A0.png

ofp, cwa, arma0

ofpr version.gif

ofpr

ofpe version.gif

ofpe
Arma

Logo A1 black.png

arma, arma1

Logo A1.png

arma_alt, arma1_alt
Arma 2

Logo A2.png

a2

A2 OA Logo.png

arma2oa, oa, arrowhead, operation arrowhead

Logo A2ACR.png

arma2acr, acr

Logo A2BAF.png

arma2baf, baf

Logo A2PMC.png

arma2pmc, pmc
Arma 3

Arma 3 logo black.png

arma3, a3

arma3 curator eye.png

curator, zeus

karts icon ca.png

kart, karts

heli icon ca.png

heli, helicopter, helicopters

mark icon ca.png

mark, marks, marksmen

apex icon ca.png

expansion, apex

jets icon ca.png

jets

malden icon ca.png

argo, malden

orange icon ca.png

orange, low, laws of war

tacops icon ca.png

tacop, tac-op, tac-ops

tank icon ca.png

tank, tanks

enoch icon ca.png

enoch, contact
Take On

Logo TakOH full.png

tkoh

Logo TakOH.png

tkoh_alt

tkom logo.png

tkom
Misc.

CC Logo.png

cc, carrier command

dayzlogoinv.png

dayz

Ylands 3D Logo.png

ylands
Timeline

Logo TVAAN.png

aan
Icon Person.png
person
Icon History.png
real