Icon/doc – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add gamepad ↔ controller equivalent)
(Add Argo)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
One template to rule them all (icons). Icons {{Icon|localArgument|24}} should {{Icon|globalEffect|24}} appear {{Icon|serverExec|24}} inline.<br>
<div class="float-right" style="max-height: 95vh; overflow: auto; padding: 0 0.25em 0 1em">
It also adds the page to the [[:Category:Icon template usage error|Icon template usage error]] category on usage error.
 
== 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 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 {{hl|page address}} or {{hl|page address <nowiki>{{!}}</nowiki> hover text}}
 
'''Examples'''
'''Examples'''
<div style="display: inline-block; max-height: 60em; overflow: auto">
{| class="wikitable sortable align-center-col-1"
{| class="wikitable sortable"
! Preview
|-
! Additional Information
! Preview !! Additional Information
|-
|-
! colspan="2" style="background-color:#BDBDBD" | Errors
! colspan="2" style="background-color:#BDBDBD" | Errors
|-
|-
| {{Icon}}
| {{Icon}}
| <code><nowiki>{{Icon}}</nowiki> {{cc|empty}}</code>
| <syntaxhighlight lang="handlebars">{{Icon}}</syntaxhighlight>
|-
|-
| {{Icon|lol}}
| {{Icon|lol}}
| <code><nowiki>{{Icon|lol}}</nowiki> {{cc|wrong argument}}</code>
| <syntaxhighlight lang="html+handlebars">{{Icon|lol}} <!-- wrong argument --></syntaxhighlight>
|-
|-
! colspan="2" style="background-color:#BDBDBD" | Dimensions
! colspan="2" style="background-color:#BDBDBD" | Dimensions
|-
|-
| {{Icon|ofp}}
| {{Icon|ofp}}
| <code><nowiki>{{Icon|ofp}}</nowiki> {{cc|default is 48 (px)}}</code>
| <syntaxhighlight lang="html+handlebars">{{Icon|ofp}} <!-- default is 48 (px) --></syntaxhighlight>
|-
|-
| {{Icon|ofp|12}}
| {{Icon|ofp|12}}
| <code><nowiki>{{Icon|ofp|12}}</nowiki></code>
| <syntaxhighlight lang="handlebars">{{Icon|ofp|12}}</syntaxhighlight>
|-
|-
| {{Icon|ofp|24}}
| {{Icon|ofp|24}}
| <code><nowiki>{{Icon|ofp|24}}</nowiki></code>
| <syntaxhighlight lang="handlebars">{{Icon|ofp|24}}</syntaxhighlight>
|-
|-
| {{Icon|ofp|72}}
| {{Icon|ofp|72}}
| <code><nowiki>{{Icon|ofp|72}}</nowiki></code>
| <syntaxhighlight lang="handlebars">{{Icon|ofp|72}}</syntaxhighlight>
|-
|-
| {{Icon|ofp|100}}
| {{Icon|ofp|100}}
| <code><nowiki>{{Icon|ofp|100}}</nowiki></code>
| <syntaxhighlight lang="handlebars">{{Icon|ofp|100}}</syntaxhighlight>
|-
|-
! colspan="2" style="background-color: #BDBDBD" | {{Name|bi}}
! colspan="2" style="background-color: #BDBDBD" | {{Name|bi}}
Line 46: Line 34:
| {{Icon|bi}}
| {{Icon|bi}}
| bi, bohemiainteractive
| bi, bohemiainteractive
|-
| style="background-color: #555" | {{Icon|bi_alt}}
| bi_alt, bohemiainteractive_alt
|-
|-
! colspan="2" style="background-color:#BDBDBD" | {{ofp}}
! colspan="2" style="background-color:#BDBDBD" | {{ofp}}
Line 63: Line 54:
| arma1
| arma1
|-
|-
| {{Icon|arma1_alt}}
| style="background-color: #555" | {{Icon|arma1_alt}}
| arma1_alt
| arma1_alt
|-
|-
Line 88: Line 79:
| arma3, a3
| arma3, a3
|-
|-
| {{Icon|curator}}
| {{Icon|arma3zeus}}
| arma3zeus, curator, zeus
| arma3zeus, curator, zeus
|-
|-
| {{Icon|kart}}
| {{Icon|arma3karts}}
| arma3karts, kart, karts
| arma3karts, kart, karts
|-
|-
| {{Icon|heli}}
| {{Icon|arma3helicopters}}
| arma3helicopters, heli, helicopter, helicopters
| arma3helicopters, heli, helicopter, helicopters
|-
|-
| {{Icon|mark}}
| {{Icon|arma3marksmen}}
| arma3marksmen, mark, marks, marksmen
| arma3marksmen, mark, marks, marksmen
|-
|-
| style="background-color: #555" | {{Icon|mark_alt}}
| style="background-color: #555" | {{Icon|arma3marksmen_alt}}
| arma3marksmen_alt, mark_alt
| arma3marksmen_alt, mark_alt
|-
|-
Line 106: Line 97:
| arma3eden
| arma3eden
|-
|-
| {{Icon|expansion}}
| {{Icon|arma3apex}}
| arma3apex, expansion, apex
| arma3apex, expansion, apex
|-
|-
| {{Icon|jets}}
| {{Icon|arma3jets}}
| arma3jets, jets
| arma3jets, jets
|-
|-
| {{Icon|argo}}
| {{Icon|arma3malden}}
| arma3malden, argo, malden
| arma3malden, malden
|-
|-
| {{Icon|orange}}
| {{Icon|arma3lawsofwar}}
| arma3lawsofwar, orange, low, laws of war
| arma3lawsofwar, orange, low, laws of war
|-
|-
| {{Icon|tacop}}
| {{Icon|arma3tacops}}
| arma3tacops, tacop, tac-op, tac-ops
| arma3tacops, tacop, tac-op, tac-ops
|-
|-
| {{Icon|tank}}
| {{Icon|arma3tanks}}
| arma3tanks, tank, tanks
| arma3tanks, tank, tanks
|-
|-
| {{Icon|enoch}}
| {{Icon|arma3contact}}
| arma3contact, enoch, contact
| arma3contact, enoch, contact
|-
|-
| {{Icon|aow}}
| {{Icon|arma3artofwar}}
| arma3artofwar, aow, artofwar
| arma3artofwar, aow, artofwar
|-
|-
| {{Icon|oldman}}
| {{Icon|arma3oldman}}
| oldman, arma3oldman
| arma3oldman, oldman
|-
| style="background-color: #555" | {{Icon|arma3oldman_alt}}
| arma3oldman_alt, oldman_alt
|-
|-
| style="background-color: #555" | {{Icon|oldman_alt}}
! colspan="2" style="background-color:#BDBDBD" | {{Name|argo}}
| oldman_alt, arma3oldman_alt
|-
| {{Icon|argo}}
| argo
|-
|-
! colspan="2" style="background-color:#BDBDBD" | {{armaR}}
! colspan="2" style="background-color:#BDBDBD" | {{armaR}}
Line 141: Line 137:
| armar
| armar
|-
|-
| style="background-color: #555" | {{Icon|armar_alt}}
| style="background-color: #555" | {{Icon|armaR_alt}}
| armar_alt
| armaR_alt
|-
|-
! colspan="2" style="background-color:#BDBDBD" | {{arma4}}
! colspan="2" style="background-color:#BDBDBD" | {{arma4}}
Line 168: Line 164:
! colspan="2" style="background-color:#BDBDBD" | Other Games
! colspan="2" style="background-color:#BDBDBD" | Other Games
|-
|-
| {{Icon|cc}}
| {{Icon|carriercommand}}
| cc, carriercommand, carrier command
| carriercommand, carrier command, cc
|-
|-
| {{Icon|dayz}}
| {{Icon|dayz}}
| dayz
| dayz
|-
|-
| {{Icon|dayz_alt}}
| style="background-color: #000" | {{Icon|dayz_alt}}
| dayz_alt
| dayz_alt
|-
| {{Icon|silica}}
| rowspan="3" | silica
|-
| style="background-color: #555" | {{Icon|silica}}
|-
| style="background-color: #000" | {{Icon|silica}}
|-
| {{Icon|vigor}}
| rowspan="3" | vigor
|-
| style="background-color: #555" | {{Icon|vigor}}
|-
| style="background-color: #000" | {{Icon|vigor}}
|-
|-
| {{Icon|ylands}}
| {{Icon|ylands}}
Line 226: Line 236:
| {{Icon|mouseM}}
| {{Icon|mouseM}}
| mouseM
| mouseM
|-
| {{Icon|mouseSW}}
| mouseSW
|-
| {{Icon|mouseSWU}}
| mouseSWU
|-
| {{Icon|mouseSWD}}
| mouseSWD
|-
|-
| {{Icon|mouseN}}
| {{Icon|mouseN}}
Line 257: Line 276:
|-
|-
! colspan="2" style="background-color:#BDBDBD" | Misc
! colspan="2" style="background-color:#BDBDBD" | Misc
|-
| {{Icon|Steam}}
| steam
|-
|-
| {{Icon|xbox}}
| {{Icon|xbox}}
Line 268: Line 290:
|}
|}
</div>
</div>
One template to rule them all (icons). Icons {{Icon|localArgument|24}} should {{Icon|globalEffect|24}} appear {{Icon|serverExec|24}} inline.<br>
It also adds the page to the [[:Category:Icon template usage error|Icon template usage error]] category on usage error.
== 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 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 {{hl|page address}} or {{hl|page address <nowiki>{{!}}</nowiki> hover text}}


[[Category: Templates|{{uc:{{PAGENAME}}}}]]
[[Category: Templates|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:21, 7 December 2023

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