Difference between revisions of "Template:Icon"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add OFP:E -logo-, not /icon/)
(Add BI normal & alt symbol)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{#replace:{{lc:{{{1|}}}}}|<nowiki> </nowiki>|_}}
 
<includeonly>{{#switch: {{#replace:{{lc:{{{1|}}}}}|<nowiki> </nowiki>|_}}
 
<!-- BOHEMIA INTERACTIVE -->
 
<!-- BOHEMIA INTERACTIVE -->
| bi | bohemiainteractive = [[File:bohemia_interactive_logo_black.png|{{{2|48}}}px|link={{{link|{{Name|bi}}}}}]]
+
| bi | bohemiainteractive = [[File:bi symbol black.png|{{{2|48}}}px|link={{{link|{{Name|bi}}}}}]]
 +
| bi_alt | bohemiainteractive_alt = [[File:bi symbol white.png|{{{2|48}}}px|link={{{link|{{Name|bi}}}}}]]
 
<!-- OPERATION FLASHPOINT -->
 
<!-- OPERATION FLASHPOINT -->
 
| ofp | cwa | arma0 = [[File:Logo_A0.png|{{{2|48}}}px|link={{{link|Category:{{Name|ofp|cat}} {{!}} {{ofp}}}}}]]
 
| ofp | cwa | arma0 = [[File:Logo_A0.png|{{{2|48}}}px|link={{{link|Category:{{Name|ofp|cat}} {{!}} {{ofp}}}}}]]
Line 37: Line 38:
 
| armar = [[File:armareforger-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
 
| armar = [[File:armareforger-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
 
| armar_alt = [[File:armareforger-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
 
| armar_alt = [[File:armareforger-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|armaR|cat}} {{!}} {{armaR}}}}}]]
<!-- ARMA 4-->
+
<!-- ARMA 4 -->
 
| arma4 = [[File:arma4-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
 
| arma4 = [[File:arma4-symbol_black.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
 
| arma4_alt = [[File:arma4-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
 
| arma4_alt = [[File:arma4-symbol_white.png|{{{2|48}}}px|link={{{link|Category:{{Name|arma4|cat}} {{!}} {{arma4}}}}}]]
 
<!-- TAKE ON -->
 
<!-- TAKE ON -->
| tkoh = [[File:tkoh_logo_small.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkoh|cat}} {{!}} {{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:{{Name|tkoh|cat}} {{!}} {{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:{{Name|tkom|cat}} {{!}} {{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:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
 
| tkom_alt = [[File:tkom_logo.png|{{{2|48}}}px|link={{{link|Category:{{Name|tkom|cat}} {{!}} {{tkom}}}}}]]
 
<!-- OTHER GAMES -->
 
<!-- OTHER GAMES -->
Line 62: Line 63:
 
<!-- OTHERS -->
 
<!-- OTHERS -->
 
| afm = [[File:BIS_Helicopter_DLC_Icon_v2.png|{{{2|48}}}px|link={{{link|Arma 3: Advanced Helicopter Flight Model {{!}} Advanced Helicopter Flight Model}}}]]
 
| afm = [[File:BIS_Helicopter_DLC_Icon_v2.png|{{{2|48}}}px|link={{{link|Arma 3: Advanced Helicopter Flight Model {{!}} Advanced Helicopter Flight Model}}}]]
<!-- MOUSE -->
+
<!-- CONTROLS -->
 
| mousel  = [[File:mouse-button-left.png|{{{2|32}}}px|link=|Left Mouse Button]]
 
| 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]]
 
| mousel2 = [[File:mouse-button-left-double.png|{{{2|32}}}px|link=|Double Left Mouse Button]]
Line 69: Line 70:
 
| mousen  = [[File:mouse-button-none.png|{{{2|32}}}px|link=|Mouse]]
 
| mousen  = [[File:mouse-button-none.png|{{{2|32}}}px|link=|Mouse]]
 
| mouser  = [[File:mouse-button-right.png|{{{2|32}}}px|link=|Right Mouse Button]]
 
| mouser  = [[File:mouse-button-right.png|{{{2|32}}}px|link=|Right Mouse Button]]
 +
| gamepad
 +
| controller = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px">␼</span>
 +
| keyboard = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px">␽</span>
 +
| kbm = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px">␿</span>
 
<!-- WIKI -->
 
<!-- WIKI -->
 
| disamb = [[File:Disambig.png|{{{2|24}}}px|link={{{link|}}}|Disambiguation]]
 
| disamb = [[File:Disambig.png|{{{2|24}}}px|link={{{link|}}}|Disambiguation]]
Line 75: Line 80:
 
| warning = [[File:Ico_warning.png|{{{2|24}}}px|link={{{link|}}}|Warning]]
 
| warning = [[File:Ico_warning.png|{{{2|24}}}px|link={{{link|}}}|Warning]]
 
| unknown = ❓
 
| unknown = ❓
 +
<!-- MISC -->
 +
| 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>
 +
| switch = <span class="promptfont" style="font-size: {{#expr:{{{2|48}}}*.75}}px"></span>
 
<!-- DEFAULT -->
 
<!-- DEFAULT -->
 
| = -no [[Template:Icon|parameter]] defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
 
| = -no [[Template:Icon|parameter]] defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
 
| #default = -wrong [[Template:Icon|parameter]] ("{{{1}}}") defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
 
| #default = -wrong [[Template:Icon|parameter]] ("{{{1}}}") defined!-{{TemplateCase||[[Category:Icon template usage error]]}}
 
}}</includeonly><noinclude>{{Icon/doc}}</noinclude>
 
}}</includeonly><noinclude>{{Icon/doc}}</noinclude>

Latest revision as of 12:40, 25 August 2022

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

Examples

Preview Additional Information
Errors
-no parameter defined!- {{Icon}} // empty
-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, argo, 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 oldman, arma3oldman
arma3apex oldman logo simplyfied white.png oldman_alt, arma3oldman_alt
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 cc, carriercommand, carrier command
DayZ dayz
DayZ dayz_alt
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 mouse, mouseN
gamepad, controller
keyboard
kbm
Wiki
Disambiguation disamb
Unchecked unchecked
Checked checked
Warning warning
unknown
Misc
xbox
playstation
switch