Icon – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix ArmA link)
(Fix category link, split Icon & doc, add arma3marksmen_alt)
Line 1: Line 1:
<includeonly>{{#switch: {{#replace:{{lc:{{{1|}}}}}|<nowiki> </nowiki>|_}}
<includeonly>{{#switch: {{#replace:{{lc:{{{1|}}}}}|<nowiki> </nowiki>|_}}
<!-- OPERATION FLASHPOINT -->
<!-- OPERATION FLASHPOINT -->
| ofp | cwa | arma0 = [[File:Logo_A0.png|{{{2|48}}}px|link={{{link|Category:{{ofp}} {{!}} {{ofp}}}}}]]
| ofp | cwa | arma0 = [[File:Logo_A0.png|{{{2|48}}}px|link={{{link|Category:{{Name|ofp|cat}} {{!}} {{ofp}}}}}]]
| ofpr = [[File:ofpr version.gif|{{{2|48}}}px|link={{{link|{{Name|ofpr}}}}}]]
| ofpr = [[File:ofpr version.gif|{{{2|48}}}px|link={{{link|{{Name|ofpr}}}}}]]
| ofpe = [[File:ofpe version.gif|{{{2|48}}}px|link={{{link|Category:{{ofpe}} {{!}} {{Name|ofpe}}}}}]]
| ofpe = [[File:ofpe version.gif|{{{2|48}}}px|link={{{link|Category:{{Name|ofpe|cat}} {{!}} {{Name|ofpe}}}}}]]
<!-- ARMED ASSAULT -->
<!-- ARMED ASSAULT -->
| arma1 = [[File:Logo A1 black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
| arma1 = [[File:Logo A1 black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
| arma1_alt = [[File:Logo_A1.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
| arma1_alt = [[File:Logo_A1.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma1|cat}} {{!}} {{arma1}}}}}]]
<!-- ARMA2 & OA -->
<!-- ARMA2 & OA -->
| arma2 | a2 = [[File:Logo_A2.png|{{{2|48}}}px|link={{{link|Category:{{arma2}} {{!}} {{arma2}}}}}]]
| arma2 | a2 = [[File:Logo_A2.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma2|cat}} {{!}} {{arma2}}}}}]]
| arma2oa | oa | arrowhead | operation_arrowhead = [[File:A2 OA Logo.png|{{{2|48}}}px|link={{{link|Category:{{arma2oa}} {{!}} {{arma2oa}}}}}]]
| arma2oa | oa | arrowhead | operation_arrowhead = [[File:A2 OA Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma2oa|cat}} {{!}} {{arma2oa}}}}}]]
| arma2acr | acr = [[File:Logo_A2ACR.png|{{{2|48}}}px|link={{{link|Army of the Czech Republic {{!}} {{Name|arma2acr}}}}}]]
| arma2acr | acr = [[File:Logo_A2ACR.png|{{{2|48}}}px|link={{{link|Army of the Czech Republic {{!}} {{Name|arma2acr}}}}}]]
| arma2baf | baf = [[File:Logo_A2BAF.png|{{{2|48}}}px|link={{{link|Arma 2: British Armed Forces {{!}} {{Name|arma2baf}}}}}]]
| arma2baf | baf = [[File:Logo_A2BAF.png|{{{2|48}}}px|link={{{link|Arma 2: British Armed Forces {{!}} {{Name|arma2baf}}}}}]]
Line 15: Line 15:
<!-- ARMA3 -->
<!-- ARMA3 -->
| a3
| a3
| arma3 = [[File:Arma 3 logo black.png|{{{2|48}}}px|link={{{link|Category:{{arma3}} {{!}} {{arma3}}}}}]]
| arma3 = [[File:Arma 3 logo black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma3|cat}} {{!}} {{arma3}}}}}]]
| arma3zeus | curator | zeus = [[File:arma3_curator_eye.png|{{{2|48}}}px|link={{{link|Arma 3 Zeus}}}]]
| arma3zeus | curator | zeus = [[File:arma3_curator_eye.png|{{{2|48}}}px|link={{{link|Arma 3 Zeus}}}]]
| arma3karts | kart | karts = [[File:karts_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Karts}}}]]
| arma3karts | kart | karts = [[File:karts_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Karts}}}]]
| arma3helicopters | heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Helicopters}}}]]
| arma3helicopters | heli | helicopter | helicopters = [[File:heli_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Helicopters}}}]]
| arma3marksmen | mark | marks | marksmen = [[File:mark_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Marksmen}}}]]
| 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}}}]]
| arma3eden = [[File:edenEditor logo.png|{{{2|48}}}px|link={{{link|Category:Eden Editor {{!}} Eden Editor}}}]]
| arma3eden = [[File:edenEditor logo.png|{{{2|48}}}px|link={{{link|Category:Eden Editor {{!}} Eden Editor}}}]]
| arma3apex | expansion | apex = [[File:apex_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Apex}}}]]
| arma3apex | expansion | apex = [[File:apex_icon_ca.png|{{{2|48}}}px|link={{{link|Arma 3 Apex}}}]]
Line 32: Line 33:
| oldman_alt | arma3oldman_alt = [[File:arma3apex oldman logo simplyfied white.png|{{{2|48}}}px|link={{{link|Arma 3 Apex: Old Man}}}]]
| oldman_alt | arma3oldman_alt = [[File:arma3apex oldman logo simplyfied white.png|{{{2|48}}}px|link={{{link|Arma 3 Apex: Old Man}}}]]
<!-- TAKE ON -->
<!-- TAKE ON -->
  | tkoh = [[File:tkoh_logo_small.png|{{{2|48}}}px|link={{{link|Category:{{tkoh}} {{!}} {{tkoh}}}}}]]
  | tkoh = [[File:tkoh_logo_small.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkoh|cat}} {{!}} {{tkoh}}}}}]]
| tkoh_alt = [[File:Logo TakOH_full.png|{{{2|48}}}px|link={{{link|Category:{{tkoh}} {{!}} {{tkoh}}}}}]]
| 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:{{tkom}} {{!}} {{tkom}}}}}]]
  | tkom = [[File:tkom_logo_small_v2.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
| tkom_alt = [[File:tkom_logo.png|{{{2|48}}}px|link={{{link|Category:{{tkom}} {{!}} {{tkom}}}}}]]
| tkom_alt = [[File:tkom_logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
<!-- OTHER GAMES -->
<!-- OTHER GAMES -->
| cc | carriercommand | carrier_command = [[File:CC_Logo.png|{{{2|48}}}px|link={{{link|Category:Carrier Command: Gaea Mission {{!}} Carrier Command: Gaea Mission}}}]]
| 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:{{dayz}} {{!}} {{dayz}}}}}]]
| 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:{{dayz}} {{!}} {{dayz}}}}}]]
| dayz_alt = [[File:dayz_logo_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|dayz|cat}} {{!}} {{dayz}}}}}]]
| ylands = [[File:Ylands_3D_Logo.png|{{{2|48}}}px|link={{{link|Category:{{ylands}} {{!}} {{ylands}}}}}]]
| ylands = [[File:Ylands_3D_Logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|ylands|cat}} {{!}} {{ylands}}}}}]]
<!-- TIMELINE (TODO: remove divs) -->
<!-- TIMELINE (TODO: remove divs) -->
| aan = [[File:Logo_TVAAN.png|{{{2|48}}}px|link={{{link|http://aan.moricky.com {{!}} AAN}}}]]
| aan = [[File:Logo_TVAAN.png|{{{2|48}}}px|link={{{link|http://aan.moricky.com {{!}} AAN}}}]]
Line 62: Line 63:
| = -no [[Template:Icon|parameter]] defined!-
| = -no [[Template:Icon|parameter]] defined!-
| #default = -wrong [[Template:Icon|parameter]] defined!-
| #default = -wrong [[Template:Icon|parameter]] defined!-
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{Icon/doc}}</noinclude>
One template to rule them all (icons).
== Usage ==
{{<nowiki/>Icon|'''''iconName'''''|'''''size'''''|'''''link='''''}}
* iconName: (case-insensitive) - see table below
* size: (Optional, default 48 but for exceptions below) size in pixel
** 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 <tt>page address</tt> or <tt>page address <nowiki>{{!}}</nowiki> hover text</tt>
 
'''Icons:'''
<div style="display: inline-block; max-height: 60em; overflow: auto">
{| class="wikitable sortable"
|-
! Preview !! IconNames
|-
! colspan="2" style="background-color:#BDBDBD" | Errors
|-
| {{Icon}}
| empty
|-
| {{Icon|lol}}
| wrong argument
|-
! colspan="2" style="background-color:#BDBDBD" | {{ofp}}
|-
| {{Icon|ofp}}
| ofp, cwa, arma0
|-
| {{Icon|ofpr}}
| ofpr
|-
| {{Icon|ofpe}}
| ofpe
|-
! colspan="2" style="background-color:#BDBDBD" | {{arma}}
|-
| {{Icon|arma1}}
| arma1
|-
| {{Icon|arma1_alt}}
| arma1_alt
|-
! colspan="2" style="background-color:#BDBDBD" | {{arma2}}
|-
| {{Icon|arma2}}
| arma2, a2
|-
| {{Icon|arma2oa}}
| 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}}
| arma3zeus, curator, zeus
|-
| {{Icon|kart}}
| arma3karts, kart, karts
|-
| {{Icon|heli}}
| arma3helicopters, heli, helicopter, helicopters
|-
| {{Icon|mark}}
| arma3marksmen, mark, marks, marksmen
|-
| {{Icon|arma3eden}}
| arma3eden
|-
| {{Icon|expansion}}
| arma3apex, expansion, apex
|-
| {{Icon|jets}}
| arma3jets, jets
|-
| {{Icon|argo}}
| arma3malden, argo, malden
|-
| {{Icon|orange}}
| arma3lawsofwar, orange, low, laws of war
|-
| {{Icon|tacop}}
| arma3tacops, tacop, tac-op, tac-ops
|-
| {{Icon|tank}}
| arma3tanks, tank, tanks
|-
| {{Icon|enoch}}
| arma3contact, enoch, contact
|-
| {{Icon|aow}}
| arma3artofwar, aow, artofwar
|-
| {{Icon|oldman}}
| oldman, arma3oldman
|-
| style="background-color: #555" | {{Icon|oldman_alt}}
| oldman_alt, arma3oldman_alt
|-
! colspan="2" style="background-color:#BDBDBD" | Take On
|-
| {{Icon|tkoh}}
| tkoh
|-
| {{Icon|tkoh_alt}}
| tkoh_alt
|-
| {{Icon|tkom}}
| tkom
|-
| {{Icon|tkom_alt}}
| tkom_alt
|-
! colspan="2" style="background-color:#BDBDBD" | Other Games
|-
| {{Icon|cc}}
| cc, carriercommand, carrier command
|-
| {{Icon|dayz}}
| dayz
|-
| {{Icon|dayz_alt}}
| dayz_alt
|-
| {{Icon|ylands}}
| ylands
|-
! colspan="2" style="background-color:#BDBDBD" | Multiplayer Definitions
|-
| {{Icon|globalArgument}}
| globalArgument
|-
| {{Icon|localArgument}}
| localArgument
|-
| {{Icon|globalEffect}}
| globalEffect
|-
| {{Icon|localEffect}}
| localEffect
|-
| {{Icon|serverExec}}
| serverExec
|-
! colspan="2" style="background-color:#BDBDBD" | Timeline
|-
| {{Icon|aan}}
| aan
|-
| {{Icon|person}}
| person
|-
| {{Icon|real}}
| real
|-
! colspan="2" style="background-color: #BDBDBD" | Others
|-
| style="background-color: #555" | {{Icon|afm}}
| afm
|-
! colspan="2" style="background-color:#BDBDBD" | Wiki
|-
| {{Icon|disamb}}
| disamb
|-
| {{Icon|unchecked}}
| unchecked
|-
| {{Icon|checked}}
| checked
|-
| {{Icon|warning}}
| warning
|-
| {{Icon|unknown}}
| unknown
|}
</div>
 
[[Category: Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 02:59, 20 July 2021

Examples

Preview Additional Information
Errors
-no parameter defined!-
{{Icon}}
-wrong parameter 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
-wrong parameter defined!- bi, bohemiainteractive
-wrong parameter 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
-wrong parameter defined!- armar
-wrong parameter defined!- armaR_alt
Arma 4
-wrong parameter defined!- arma4
-wrong parameter defined!- 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 defined!- silica
-wrong parameter defined!-
-wrong parameter defined!-
-wrong parameter defined!- vigor
-wrong parameter defined!-
-wrong parameter 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
-wrong parameter defined!- mouseL
-wrong parameter defined!- mouseL2
-wrong parameter defined!- mouseR
-wrong parameter defined!- mouseM
-wrong parameter defined!- mouseSW
-wrong parameter defined!- mouseSWU
-wrong parameter defined!- mouseSWD
-wrong parameter defined!- mouse, mouseN
-wrong parameter defined!- gamepad, controller
-wrong parameter defined!- keyboard
-wrong parameter defined!- kbm
Wiki
Disambig.png disamb
Ico none.png unchecked
Ico ok.png checked
Ico warning.png warning
unknown
Misc
-wrong parameter defined!- steam
-wrong parameter defined!- xbox
-wrong parameter defined!- playstation
-wrong parameter 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