Icon – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (epoch to enoch, changed arma 3 icon)
m (Fix timeline icons)
 
(71 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}
<includeonly>{{#switch: {{#replace:{{lc:{{{1|}}}}}|<nowiki> </nowiki>|_}}
| ofp | cwa | arma0 = [[File:ofp version.gif|{{{3|48}}}px]]
<!-- BOHEMIA INTERACTIVE -->
| ofpr = [[File:ofpr version.gif|{{{3|48}}}px]]
| bi | bohemiainteractive = [[File:bi symbol black.png|{{{2|48}}}px|link={{{link|{{Name|bi}}}}}]]
| arma | arma1 = [[File:arma version.gif|{{{3|48}}}px]]
| bi_alt | bohemiainteractive_alt = [[File:bi symbol white.png|{{{2|48}}}px|link={{{link|{{Name|bi}}}}}]]
| arma2 = {{#switch: {{lc:{{{2}}}}}
<!-- OPERATION FLASHPOINT -->
| oa
| ofp | cwa | arma0 = [[File:Logo_A0.png|{{{2|48}}}px|link={{{link|Category:{{Name|ofp|cat}} {{!}} {{ofp}}}}}]]
| arrowhead
| ofpr = [[File:ofpr version.gif|{{{2|48}}}px|link={{{link|{{Name|ofpr}}}}}]]
| operation arrowhead = [[File:arma2oa version.gif|{{{3|48}}}px]]
| ofpe = [[File:ofpe logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|ofpe|cat}} {{!}} {{Name|ofpe}}}}}]]
| #default = [[File:arma2 version.gif|{{{3|48}}}px]]
<!-- ARMED ASSAULT -->
}}
| arma1 = [[File:Logo A1 black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
| arma3 =
| arma1_alt = [[File:Logo_A1.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
{{#switch: {{lc:{{{2|}}}}}
<!-- ARMA2 & OA -->
| curator | zeus = [[File:arma3_curator_eye.png|{{{3|48}}}px]]
| arma2 | a2 = [[File:Logo_A2.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma2|cat}} {{!}} {{arma2}}}}}]]
| kart | karts = [[File:karts_icon_ca.png|{{{3|48}}}px]]
| arma2oa | oa | arrowhead | operation_arrowhead = [[File:A2 OA Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma2oa|cat}} {{!}} {{arma2oa}}}}}]]
| heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{3|48}}}px]]
| arma2acr | acr = [[File:Logo_A2ACR.png|{{{2|48}}}px|link={{{link|Army of the Czech Republic {{!}} {{Name|arma2acr}}}}}]]
| mark | marks | marksmen = [[File:mark_icon_ca.png|{{{3|48}}}px]]
| arma2baf | baf = [[File:Logo_A2BAF.png|{{{2|48}}}px|link={{{link|Arma 2: British Armed Forces {{!}} {{Name|arma2baf}}}}}]]
| expansion | apex = [[File:apex_icon_ca.png|{{{3|48}}}px]]
| arma2pmc | pmc = [[File:Logo_A2PMC.png|{{{2|48}}}px|link={{{link|Arma 2: Private Military Company {{!}} {{Name|arma2pmc}}}}}]]
| jets = [[File:jets_icon_ca.png|{{{3|48}}}px]]
<!-- ARMA3 - TODO: remove non-arma3prefixed shortcuts (and search & replace usages through the wiki) -->
| argo | malden = [[File:malden_icon_ca.png|{{{3|48}}}px]]
| a3
| orange | low | laws of war = [[File:orange_icon_ca.png|{{{3|48}}}px]]
| arma3 = [[File:Arma 3 logo black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma3|cat}} {{!}} {{arma3}}}}}]]
| tacop | tacops | tac-op | tac-ops = [[File:tacops_icon_ca.png|{{{3|48}}}px]]
| arma3zeus | curator | zeus = [[File:arma3_curator_eye.png|{{{2|48}}}px|link={{{link|Arma 3 Zeus}}}]]
| tank | tanks = [[File:tank_icon_ca.png|{{{3|48}}}px]]
| arma3karts | kart | karts = [[File:karts_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Karts}}}]]
| enoch| contact = [[File:enoch_icon_ca.png|{{{3|48}}}px]]
| arma3helicopters | heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Helicopters}}}]]
| #default = [[File:Arma 3 logo black.png|{{{3|48}}}px]]
| arma3marksmen | mark | marks | marksmen = [[File:mark_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Marksmen}}}]]
}}
| arma3marksmen_alt | mark_alt = [[File:arma3 mark logoOver ca.png|{{{2|48}}}px|link={{{link|Arma 3 Marksmen}}}]]
| tkoh = [[File:TKOH version.gif|{{{3|48}}}px]]
| arma3eden = [[File:edenEditor logo.png|{{{2|48}}}px|link={{{link|Category:Eden Editor {{!}} Eden Editor}}}]]
| #default = -no game defined!-
| arma3apex | expansion | apex = [[File:apex_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Apex}}}]]
}}</includeonly><noinclude>
| arma3jets | jets = [[File:jets_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Jets}}}]]
 
| arma3malden | malden = [[File:malden_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Malden}}}]]
== Usage ==
| arma3lawsofwar | arma3low | orange | low | laws_of_war = [[File:orange_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Laws of War}}}]]
{{<nowiki/>Icon|'''''game'''''|'''''dlc'''''|'''''size'''''}}
| arma3tacops | tacop | tacops | tac-op | tac-ops = [[File:tacops_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Tac-Ops Mission Pack}}}]]
* game: the concerned game. Can be <tt>ofp / cwa / arma0</tt>, <tt>ofpr</tt>, <tt>arma / arma1</tt>, <tt>arma2</tt>, <tt>arma3</tt> or <tt>tkoh</tt>
| arma3tanks | tank | tanks = [[File:tank_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Tanks}}}]]
* dlc: (Optional, default "") DLC. Can be empty, or:
| arma3contact | enoch | contact | arma3contact = [[File:enoch_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Contact}}}]]
** arma2: <tt>oa / arrowhead / operation arrowhead</tt>
| arma3artofwar | aow | artofwar = [[File:aow_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Art of War}}}]]
** arma3:
| oldman | arma3oldman = [[File:arma3apex oldman logo.png|{{{2|48}}}px|link={{{link|Arma 3 Apex: Old Man}}}]]
*** <tt>curator / zeus</tt>
| oldman_alt | arma3oldman_alt = [[File:arma3apex oldman logo simplyfied white.png|{{{2|48}}}px|link={{{link|Arma 3 Apex: Old Man}}}]]
*** <tt>kart / karts</tt>
<!-- ARGO -->
*** <tt>heli / helicopter / helicopters</tt>
| argo = [[File:argo-logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|argo|cat}} {{!}} {{Name|argo}}}}}]]
*** <tt>mark / marks / marksmen</tt>
<!-- ARMA REFORGER -->
*** <tt>expansion / apex</tt>
| armar = [[File:armareforger-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
*** <tt>jets</tt>
| armar_alt = [[File:armareforger-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
*** <tt>argo / malden</tt>
<!-- ARMA 4 -->
*** <tt>orange / low / laws of war</tt>
| arma4 = [[File:arma4-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
*** <tt>tacop / tacops / tac-op / tac-ops</tt>
| arma4_alt = [[File:arma4-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
*** <tt>tank / tanks</tt>
<!-- TAKE ON -->
*** <tt>enoch / contact</tt>
| tkoh = [[File:tkoh_logo_small.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkoh|cat}} {{!}} {{tkoh}}}}}]]
* size: (Optional, default 48) in pixels
| tkoh_alt = [[File:Logo TakOH_full.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkoh|cat}} {{!}} {{tkoh}}}}}]]
 
| tkom = [[File:tkom_logo_small_v2.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
{|class="wikitable"
| tkom_alt = [[File:tkom_logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
|+ Examples
<!-- OTHER GAMES -->
! Code
| cc | carriercommand | carrier_command = [[File:CC_Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|carriercommand|cat}} {{!}} Carrier Command: Gaea Mission}}}]]
! Result
| dayz = [[File:dayzlogoinv.png|{{{2|48}}}px|link={{{link|Category:{{Name|dayz|cat}} {{!}} {{dayz}}}}}]]
|-
| dayz_alt = [[File:dayz_logo_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|dayz|cat}} {{!}} {{dayz}}}}}]]
| <nowiki>{{Icon}}</nowiki>
| silica= [[File:silica_logo_blue_800x200.png|{{{2|48}}}px|link={{{link|Category:{{Name|silica|cat}} {{!}} {{silica}}}}}]]
| {{Icon}}
| vigor = [[File:vigor_logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|vigor|cat}} {{!}} {{vigor}}}}}]]
|-
| ylands = [[File:Ylands_3D_Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|ylands|cat}} {{!}} {{ylands}}}}}]]
| <nowiki>{{Icon|ofp}}</nowiki>
<!-- TIMELINE -->
| {{Icon|ofp}}
| aan = [[File:Logo_TVAAN.png|{{{2|48}}}px|link={{{link|http://aan.moricky.com {{!}} AAN}}}]]
|-
| person = [[File:Icon_Person.png|{{{2|48}}}px | Person]]
| <nowiki>{{Icon|ofpr}}</nowiki>
| real = [[File:Icon_History.png|{{{2|48}}}px | Historical event]]
| {{Icon|ofpr}}
<!-- MULTIPLAYER DEFINITIONS -->
|-
| globalargument = {{Icon2|global|argument|darkorange; background: linear-gradient(to top, #D00, #DD0); -webkit-background-clip: text; background-clip: text; color: transparent|link={{#if:{{{link|}}}|{{{link}}}|Multiplayer Scripting#Locality}}|size={{#expr:{{{2|48}}}/32}}}}
| <nowiki>{{Icon|arma}}</nowiki>
| localargument = {{Icon2|local|argument|blue; background: linear-gradient(to top, #00D, #0DD); -webkit-background-clip: text; background-clip: text; color: transparent|link={{#if:{{{link|}}}|{{{link}}}|Multiplayer Scripting#Locality}}|size={{#expr:{{{2|48}}}/32}}}}
| {{Icon|arma}}
| globaleffect = {{Icon2|global|effect|darkorange; background: linear-gradient(to top, #D00, #DD0); -webkit-background-clip: text; background-clip: text; color: transparent|link={{#if:{{{link|}}}|{{{link}}}|Multiplayer Scripting#Locality}}|size={{#expr:{{{2|48}}}/32}}}}
|-
| localeffect = {{Icon2|local|effect|blue; background: linear-gradient(to top, #00D, #0DD); -webkit-background-clip: text; background-clip: text; color: transparent|link={{#if:{{{link|}}}|{{{link}}}|Multiplayer Scripting#Locality}}|size={{#expr:{{{2|48}}}/32}}}}
| <nowiki>{{Icon|arma2}}</nowiki>
| serverexec = {{Icon2|server|execution|green; background: linear-gradient(to top, #080 25%, #8F8); -webkit-background-clip: text; background-clip: text; color: transparent|link={{#if:{{{link|}}}|{{{link}}}|Multiplayer_Scripting#Locality}}|size={{#expr:{{{2|48}}}/32}}}}
| {{Icon|arma2}}
<!-- OTHERS -->
|-
| afm = [[File:BIS_Helicopter_DLC_Icon_v2.png|{{{2|48}}}px|link={{{link|Arma 3: Advanced Helicopter Flight Model {{!}} Advanced Helicopter Flight Model}}}]]
| <nowiki>{{Icon|arma2|oa}}</nowiki>
<!-- CONTROLS -->
| {{Icon|arma2|oa}}
| mousel  = [[File:mouse-button-left.png|{{{2|32}}}px|link=|Left Mouse Button]]
|-
| mousel2 = [[File:mouse-button-left-double.png|{{{2|32}}}px|link=|Double Left Mouse Button]]
| <nowiki>{{Icon|arma3}}</nowiki>
| mousem  = [[File:mouse-button-middle.png|{{{2|32}}}px|link=|Middle Mouse Button]]
| {{Icon|arma3}}
| mousesw = [[File:mouse-button-scrollwheel.png|{{{2|32}}}px|link=|Mouse Scrollwheel]]
|-
| mouseswu = [[File:mouse-button-scrollwheel-up.png|{{{2|32}}}px|link=|Mouse Scrollwheel Up]]
| <nowiki>{{Icon|tkoh}}</nowiki>
| mouseswd = [[File:mouse-button-scrollwheel-down.png|{{{2|32}}}px|link=|Mouse Scrollwheel Down]]
| {{Icon|tkoh}}
| mouse
|-
| mousen  = [[File:mouse-button-none.png|{{{2|32}}}px|link=|Mouse]]
| <nowiki>{{Icon|arma3|karts}}</nowiki>
| mouser  = [[File:mouse-button-right.png|{{{2|32}}}px|link=|Right Mouse Button]]
| {{Icon|arma3|karts}}
| gamepad
|-
| controller = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px">␼</span>
| <nowiki>{{Icon|arma3|heli}}</nowiki>
| keyboard = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px">␽</span>
| {{Icon|arma3|heli}}
| kbm = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px">␿</span>
|-
<!-- WIKI -->
| <nowiki>{{Icon|arma3|marksmen}}</nowiki>
| disamb = [[File:Disambig.png|{{{2|24}}}px|link={{{link|}}}|Disambiguation]]
| {{Icon|arma3|marksmen}}
| unchecked = [[File:Ico_none.png|{{{2|24}}}px|link={{{link|}}}|Unchecked]]
|-
| checked = [[File:Ico_ok.png|{{{2|24}}}px|link={{{link|}}}|Checked]]
| <nowiki>{{Icon|arma3|apex}}</nowiki>
| warning = [[File:Ico_warning.png|{{{2|24}}}px|link={{{link|}}}|Warning]]
| {{Icon|arma3|apex}}
| unknown = [[File:Ico_unknown.png|{{{2|24}}}px|link={{{link|}}}|Unknown]]
|-
<!-- MISC -->
| <nowiki>{{Icon|arma3|tacops}}</nowiki>
| steam = [[File:Steam icon logo.png|{{{2|32}}}px|link=Steam]]
| {{Icon|arma3|tacops}}
| xbox = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px"></span>
|-
| playstation = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px"></span>
| <nowiki>{{Icon|arma3|malden}}</nowiki>
| switch = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px"></span>
| {{Icon|arma3|malden}}
<!-- DEFAULT -->
|-
| = -no [[Template:Icon|parameter]] defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
| <nowiki>{{Icon|arma3|low}}</nowiki>
| #default = -wrong [[Template:Icon|parameter]] ("{{{1}}}") defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
| {{Icon|arma3|low}}
}}</includeonly><noinclude>{{Icon/doc}}</noinclude>
|-
| <nowiki>{{Icon|arma3|tacops}}</nowiki>
| {{Icon|arma3|tacops}}
|-
| <nowiki>{{Icon|arma3|tanks}}</nowiki>
| {{Icon|arma3|tanks}}
|-
| <nowiki>{{Icon|arma3|epoch}}</nowiki>
| {{Icon|arma3|enoch}}
|-
| <nowiki>{{Icon|arma3|contact}}</nowiki>
| {{Icon|arma3|contact}}
|}
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Latest revision as of 10:50, 16 February 2024

Examples

Preview Additional Information
Errors
-no parameter defined!-
{{Icon}}
-wrong parameter ("lol") defined!-
{{Icon|lol}} <!-- wrong argument -->
Dimensions
Operation Flashpoint
{{Icon|ofp}} <!-- default is 48 (px) -->
Operation Flashpoint
{{Icon|ofp|12}}
Operation Flashpoint
{{Icon|ofp|24}}
Operation Flashpoint
{{Icon|ofp|72}}
Operation Flashpoint
{{Icon|ofp|100}}
Bohemia Interactive
bi symbol black.png bi, bohemiainteractive
bi symbol white.png bi_alt, bohemiainteractive_alt
Operation Flashpoint
Operation Flashpoint ofp, cwa, arma0
ofpr version.gif ofpr
Operation Flashpoint: Elite ofpe
Arma
Armed Assault arma1
Armed Assault arma1_alt
Arma 2
Arma 2 arma2, a2
Arma 2: Operation Arrowhead arma2oa, oa, arrowhead, operation arrowhead
Arma 2: Army of the Czech Republic arma2acr, acr
Arma 2: British Armed Forces arma2baf, baf
Arma 2: Private Military Company arma2pmc, pmc
Arma 3
Arma 3 arma3, a3
arma3 curator eye.png arma3zeus, curator, zeus
karts icon ca.png arma3karts, kart, karts
heli icon ca.png arma3helicopters, heli, helicopter, helicopters
mark icon ca.png arma3marksmen, mark, marks, marksmen
arma3 mark logoOver ca.png arma3marksmen_alt, mark_alt
Eden Editor arma3eden
apex icon ca.png arma3apex, expansion, apex
jets icon ca.png arma3jets, jets
malden icon ca.png arma3malden, malden
orange icon ca.png arma3lawsofwar, orange, low, laws of war
tacops icon ca.png arma3tacops, tacop, tac-op, tac-ops
tank icon ca.png arma3tanks, tank, tanks
enoch icon ca.png arma3contact, enoch, contact
aow icon ca.png arma3artofwar, aow, artofwar
arma3apex oldman logo.png arma3oldman, oldman
arma3apex oldman logo simplyfied white.png arma3oldman_alt, oldman_alt
Argo
Argo argo
Arma Reforger
Arma Reforger armar
Arma Reforger armaR_alt
Arma 4
Arma 4 arma4
Arma 4 arma4_alt
Take On
Take On Helicopters tkoh
Take On Helicopters tkoh_alt
Take On Mars tkom
Take On Mars tkom_alt
Other Games
Carrier Command: Gaea Mission carriercommand, carrier command, cc
DayZ dayz
DayZ dayz_alt
Silica silica
Silica
Silica
Vigor vigor
Vigor
Vigor
Ylands ylands
Multiplayer Definitions
GAGlobal globalArgument
LALocal localArgument
GEGlobal globalEffect
LELocal localEffect
SEServer serverExec
Timeline
AAN aan
Person person
Historical event real
Others
Advanced Helicopter Flight Model afm
Controls
Left Mouse Button mouseL
Double Left Mouse Button mouseL2
Right Mouse Button mouseR
Middle Mouse Button mouseM
Mouse Scrollwheel mouseSW
Mouse Scrollwheel Up mouseSWU
Mouse Scrollwheel Down mouseSWD
Mouse mouse, mouseN
gamepad, controller
keyboard
kbm
Wiki
Disambiguation disamb
Unchecked unchecked
Checked checked
Warning warning
Unknown unknown
Misc
Steam icon logo.png steam
xbox
playstation
switch

One template to rule them all (icons). Icons LALocal should GEGlobal appear SEServer inline.
It also adds the page to the Icon template usage error category on usage error.

Usage

{{Icon|iconName|size|link=}}

  • iconName: (case-insensitive) - see table below
  • size: (Optional, default 48 but for exceptions below) size in pixel
    • Default value is 32 for mouseL, mouseL2, mouseM, mouse/mouseN, mouseR
    • Default value is 24 for checked, unchecked
    • unknown is not (yet?) an image
  • link: (Optional, default game category, image link or nothing) link accessed on click, format page address or page address {{!}} hover text