Icon – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (changed link of dayz)
(Add OFP:E -logo-, not /icon/)
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#switch: {{#replace:{{lc:{{{1|}}}}}|<nowiki> </nowiki>|_}}
{{#switch: {{lc:{{{1|}}}}}
<!-- BOHEMIA INTERACTIVE -->
  <!---OPERATION FLASHPOINT --->
| bi | bohemiainteractive = [[File:bohemia_interactive_logo_black.png|{{{2|48}}}px|link={{{link|{{Name|bi}}}}}]]
  | ofp | cwa | arma0 = [[File:Logo_A0.png|{{{3|48}}}px|link=:Category:Operation Flashpoint]]
<!-- OPERATION FLASHPOINT -->
  | ofpr = [[File:ofpr version.gif|{{{3|48}}}px|link=Operation Flashpoint: Resistance]]
| ofp | cwa | arma0 = [[File:Logo_A0.png|{{{2|48}}}px|link={{{link|Category:{{Name|ofp|cat}} {{!}} {{ofp}}}}}]]
  | ofpe = [[File:ofpe version.gif|{{{3|48}}}px|link=:Category:Operation Flashpoint: Elite]]
| ofpr = [[File:ofpr version.gif|{{{2|48}}}px|link={{{link|{{Name|ofpr}}}}}]]
  <!---ARMED ASSAULT --->
| ofpe = [[File:ofpe logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|ofpe|cat}} {{!}} {{Name|ofpe}}}}}]]
  | arma | arma1 = [[File:Logo A1 black.png|{{{3|48}}}px|link=ArmA: The Game]]
<!-- ARMED ASSAULT -->
  | arma_alt | arma1_alt = [[File:Logo_A1.png|{{{3|48}}}px|link=ArmA: The Game]]
| arma1 = [[File:Logo A1 black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
  <!---ARMA2 & OA --->
| arma1_alt = [[File:Logo_A1.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
  | arma2 | a2 = [[File:Logo_A2.png|{{{3|48}}}px|link=:Category:Arma 2]]
<!-- ARMA2 & OA -->
  | arma2oa | oa | arrowhead | operation arrowhead = [[File:A2 OA Logo.png|{{{3|48}}}px|link=:Category:Arma 2: Operation Arrowhead]]
| arma2 | a2 = [[File:Logo_A2.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma2|cat}} {{!}} {{arma2}}}}}]]
  | arma2acr | acr = [[File:Logo_A2ACR.png|{{{3|48}}}px|link=Army of the Czech Republic]]
| arma2oa | oa | arrowhead | operation_arrowhead = [[File:A2 OA Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma2oa|cat}} {{!}} {{arma2oa}}}}}]]
  | arma2baf | baf = [[File:Logo_A2BAF.png|{{{3|48}}}px|link=Arma 2: British Armed Forces]]
| arma2acr | acr = [[File:Logo_A2ACR.png|{{{2|48}}}px|link={{{link|Army of the Czech Republic {{!}} {{Name|arma2acr}}}}}]]
  | arma2pmc | pmc = [[File:Logo_A2PMC.png|{{{3|48}}}px|link=Arma 2: Private Military Company]]
| arma2baf | baf = [[File:Logo_A2BAF.png|{{{2|48}}}px|link={{{link|Arma 2: British Armed Forces {{!}} {{Name|arma2baf}}}}}]]
  <!---ARMA3 --->
| arma2pmc | pmc = [[File:Logo_A2PMC.png|{{{2|48}}}px|link={{{link|Arma 2: Private Military Company {{!}} {{Name|arma2pmc}}}}}]]
  | arma3 | a3 = [[File:Arma 3 logo black.png|{{{3|48}}}px|link={{arma3}}]]
<!-- ARMA3 -->
  | curator | zeus = [[File:arma3_curator_eye.png|{{{3|48}}}px|link=Arma 3 Zeus]]
| a3
  | kart | karts = [[File:karts_icon_ca.png|{{{3|48}}}px|link=Arma 3 Karts]]
| arma3 = [[File:Arma 3 logo black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma3|cat}} {{!}} {{arma3}}}}}]]
  | heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{3|48}}}px|link=Arma 3 Helicopters]]
| arma3zeus | curator | zeus = [[File:arma3_curator_eye.png|{{{2|48}}}px|link={{{link|Arma 3 Zeus}}}]]
  | mark | marks | marksmen = [[File:mark_icon_ca.png|{{{3|48}}}px|link=Arma 3 Marksmen]]
| arma3karts | kart | karts = [[File:karts_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Karts}}}]]
  | expansion | apex = [[File:apex_icon_ca.png|{{{3|48}}}px|link=Arma 3 Apex]]
| arma3helicopters | heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Helicopters}}}]]
  | jets = [[File:jets_icon_ca.png|{{{3|48}}}px|link=Arma 3 Jets]]
| arma3marksmen | mark | marks | marksmen = [[File:mark_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Marksmen}}}]]
  | argo | malden = [[File:malden_icon_ca.png|{{{3|48}}}px|link=Arma 3 Malden]]
| arma3marksmen_alt | mark_alt = [[File:arma3 mark logoOver ca.png|{{{2|48}}}px|link={{{link|Arma 3 Marksmen}}}]]
  | orange | low | laws of war = [[File:orange_icon_ca.png|{{{3|48}}}px|link=Arma 3 Laws of War]]
| arma3eden = [[File:edenEditor logo.png|{{{2|48}}}px|link={{{link|Category:Eden Editor {{!}} Eden Editor}}}]]
  | tacop | tacops | tac-op | tac-ops = [[File:tacops_icon_ca.png|{{{3|48}}}px|link=Arma 3 Tac-Ops Mission Pack]]
| arma3apex | expansion | apex = [[File:apex_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Apex}}}]]
  | tank | tanks = [[File:tank_icon_ca.png|{{{3|48}}}px|link=Arma 3 Tanks]]
| arma3jets | jets = [[File:jets_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Jets}}}]]
  | enoch | contact = [[File:enoch_icon_ca.png|{{{3|48}}}px|link=Arma 3 Contact]]
| arma3malden | argo | malden = [[File:malden_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Malden}}}]]
  <!---TAKE ON --->
| arma3lawsofwar | arma3low | orange | low | laws_of_war = [[File:orange_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Laws of War}}}]]
  | tkoh = [[File:Logo TakOH full.png|{{{3|48}}}px|link=Take On Helicopters]]
| arma3tacops | tacop | tacops | tac-op | tac-ops = [[File:tacops_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Tac-Ops Mission Pack}}}]]
  | tkoh_alt = [[File:Logo_TakOH.png|{{{3|48}}}px|link=Take On Helicopters]]
| arma3tanks | tank | tanks = [[File:tank_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Tanks}}}]]
  | tkom = [[File:tkom logo.png|{{{3|48}}}px|link=Take On Mars]]
| arma3contact | enoch | contact | arma3contact = [[File:enoch_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Contact}}}]]
  <!---OTHER GAMES --->
| arma3artofwar | aow | artofwar = [[File:aow_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Art of War}}}]]
  | cc | carrier command = [[File:CC Logo.png|{{{3|48}}}px|link=:Carrier Command: Gaea Mission]]
| oldman | arma3oldman = [[File:arma3apex oldman logo.png|{{{2|48}}}px|link={{{link|Arma 3 Apex: Old Man}}}]]
  | dayz = [[File:dayzlogoinv.png|{{{3|48}}}px|link=Category:DayZ]]
| oldman_alt | arma3oldman_alt = [[File:arma3apex oldman logo simplyfied white.png|{{{2|48}}}px|link={{{link|Arma 3 Apex: Old Man}}}]]
  | ylands = [[File:Ylands 3D Logo.png|{{{3|48}}}px|link=Ylands]]
<!-- ARMA REFORGER -->
  <!---TIMELINE & GENERIC--->
| armar = [[File:armareforger-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
  | aan= [[File:Logo_TVAAN.png|48px|link=http://aan.moricky.com]]
| armar_alt = [[File:armareforger-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
  | person = <div style="width:50px;text-align:center;">[[File:Icon_Person.png|{{{3|48}}}px]]</div>
<!-- ARMA 4-->
  | real = <div style="width:50px;text-align:center;">[[File:Icon_History.png|{{{3|48}}}px]]</div>
| arma4 = [[File:arma4-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
  <!---DEFAULT--->
| arma4_alt = [[File:arma4-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
  | #default = -no [[Template:Icon|game]] defined!-
<!-- TAKE ON -->
}}</includeonly><noinclude>
| tkoh = [[File:tkoh_logo_small.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkoh|cat}} {{!}} {{tkoh}}}}}]]
One template to rule them all (icons).
| tkoh_alt = [[File:Logo TakOH_full.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkoh|cat}} {{!}} {{tkoh}}}}}]]
== Usage ==
| tkom = [[File:tkom_logo_small_v2.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
{{<nowiki/>Icon|'''''IconName'''''|'''''sizePx'''''}}
| tkom_alt = [[File:tkom_logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
* IconName: (case-insensitive) - See table below
<!-- OTHER GAMES -->
* sizePX: (Optional, default 48) Size in pixel
| cc | carriercommand | carrier_command = [[File:CC_Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|carriercommand|cat}} {{!}} Carrier Command: Gaea Mission}}}]]
 
| dayz = [[File:dayzlogoinv.png|{{{2|48}}}px|link={{{link|Category:{{Name|dayz|cat}} {{!}} {{dayz}}}}}]]
'''Icons:'''
| dayz_alt = [[File:dayz_logo_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|dayz|cat}} {{!}} {{dayz}}}}}]]
<div style="display: inline-block; max-height: 40em; overflow: auto">
| ylands = [[File:Ylands_3D_Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|ylands|cat}} {{!}} {{ylands}}}}}]]
{| class="wikitable sortable"
<!-- TIMELINE (TODO: remove divs) -->
|-
| aan = [[File:Logo_TVAAN.png|{{{2|48}}}px|link={{{link|http://aan.moricky.com {{!}} AAN}}}]]
! Preview !! IconNames
| person = <div style="width: 50px; text-align: center">[[File:Icon_Person.png|{{{2|48}}}px | Person]]</div>
|-
| real = <div style="width: 50px; text-align: center">[[File:Icon_History.png|{{{2|48}}}px | Historical event]]</div>
! colspan="2" style="background-color:#BDBDBD;" | {{ofp}}
<!-- 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}}}}
| {{Icon|ofp}}
| 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}}}}
| ofp, cwa, arma0
| 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}}}}
| {{Icon|ofpr}}
| 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}}}}
| ofpr
<!-- OTHERS -->
|-
| afm = [[File:BIS_Helicopter_DLC_Icon_v2.png|{{{2|48}}}px|link={{{link|Arma 3: Advanced Helicopter Flight Model {{!}} Advanced Helicopter Flight Model}}}]]
| {{Icon|ofpe}}
<!-- MOUSE -->
| ofpe
| 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]]
! colspan="2" style="background-color:#BDBDBD;" | {{arma}}
| mousem  = [[File:mouse-button-middle.png|{{{2|32}}}px|link=|Middle Mouse Button]]
|-
| mouse
| {{Icon|arma}}
| mousen  = [[File:mouse-button-none.png|{{{2|32}}}px|link=|Mouse]]
| arma, arma1
| mouser  = [[File:mouse-button-right.png|{{{2|32}}}px|link=|Right Mouse Button]]
|-
<!-- WIKI -->
| {{Icon|arma_alt}}
| disamb = [[File:Disambig.png|{{{2|24}}}px|link={{{link|}}}|Disambiguation]]
| arma_alt, arma1_alt
| unchecked = [[File:Ico_none.png|{{{2|24}}}px|link={{{link|}}}|Unchecked]]
|-
| checked = [[File:Ico_ok.png|{{{2|24}}}px|link={{{link|}}}|Checked]]
! colspan="2" style="background-color:#BDBDBD;" | {{arma2}}
| warning = [[File:Ico_warning.png|{{{2|24}}}px|link={{{link|}}}|Warning]]
|-
| unknown = ❓
| {{Icon|arma2}}
<!-- DEFAULT -->
| a2
| = -no [[Template:Icon|parameter]] defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
|-
| #default = -wrong [[Template:Icon|parameter]] ("{{{1}}}") defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
| {{Icon|arma2oa}}
}}</includeonly><noinclude>{{Icon/doc}}</noinclude>
| arma2oa, oa, arrowhead, operation arrowhead
|-
| {{Icon|arma2acr}}
| arma2acr, acr
|-
| {{Icon|arma2baf}}
| arma2baf, baf
|-
| {{Icon|arma2pmc}}
| arma2pmc, pmc
|-
! colspan="2" style="background-color:#BDBDBD;" | {{arma3}}
|-
| {{Icon|arma3}}
| arma3, a3
|-
| {{Icon|curator}}
| curator, zeus
|-
| {{Icon|kart}}
| kart, karts
|-
| {{Icon|heli}}
| 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
|-
| {{Icon|tank}}
| tank, tanks
|-
| {{Icon|enoch}}
| enoch, contact
|-
! colspan="2" style="background-color:#BDBDBD;" | Take On
|-
| {{Icon|tkoh}}
| tkoh
|-
| {{Icon|tkoh_alt}}
| tkoh_alt
|-
| {{Icon|tkom}}
| tkom
|-
! colspan="2" style="background-color:#BDBDBD;" | Misc.
|-
| {{Icon|cc}}
| cc, carrier command
|-
| {{Icon|dayz}}
| dayz
|-
| {{Icon|ylands}}
| ylands
|-
! colspan="2" style="background-color:#BDBDBD;" | Timeline
|-
| {{Icon|aan}}
| aan
|-
| {{Icon|person}}
| person
|-
| {{Icon|real}}
| real
|-
|}
</div>
[[Category: Templates]]

Revision as of 16:52, 24 June 2022

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
bohemia interactive logo black.png bi, bohemiainteractive
-wrong parameter ("bi_alt") defined!- 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
malden icon ca.png 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
-wrong parameter ("silica") defined!- silica
-wrong parameter ("silica") defined!-
-wrong parameter ("silica") defined!-
-wrong parameter ("vigor") defined!- vigor
-wrong parameter ("vigor") defined!-
-wrong parameter ("vigor") defined!-
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
-wrong parameter ("mouseSW") defined!- mouseSW
-wrong parameter ("mouseSWU") defined!- mouseSWU
-wrong parameter ("mouseSWD") defined!- mouseSWD
Mouse mouse, mouseN
-wrong parameter ("controller") defined!- gamepad, controller
-wrong parameter ("keyboard") defined!- keyboard
-wrong parameter ("kbm") defined!- kbm
Wiki
Disambiguation disamb
Unchecked unchecked
Checked checked
Warning warning
unknown
Misc
-wrong parameter ("Steam") defined!- steam
-wrong parameter ("xbox") defined!- xbox
-wrong parameter ("playstation") defined!- playstation
-wrong parameter ("switch") defined!- 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