Icon/doc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix comment) |
Lou Montana (talk | contribs) (Add Argo) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="float-right" style="max-height: 95vh; overflow: auto; padding: 0 0.25em 0 1em"> | |||
'''Examples''' | '''Examples''' | ||
{| class="wikitable sortable align-center-col-1" | |||
{| class="wikitable sortable" | ! Preview | ||
! Additional Information | |||
! Preview | |||
|- | |- | ||
! colspan="2" style="background-color:#BDBDBD" | Errors | ! colspan="2" style="background-color:#BDBDBD" | Errors | ||
|- | |- | ||
| {{Icon}} | | {{Icon}} | ||
| < | | <syntaxhighlight lang="handlebars">{{Icon}}</syntaxhighlight> | ||
|- | |- | ||
| {{Icon|lol}} | | {{Icon|lol}} | ||
| < | | <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}} | ||
| < | | <syntaxhighlight lang="html+handlebars">{{Icon|ofp}} <!-- default is 48 (px) --></syntaxhighlight> | ||
|- | |- | ||
| {{Icon|ofp|12}} | | {{Icon|ofp|12}} | ||
| < | | <syntaxhighlight lang="handlebars">{{Icon|ofp|12}}</syntaxhighlight> | ||
|- | |- | ||
| {{Icon|ofp|24}} | | {{Icon|ofp|24}} | ||
| < | | <syntaxhighlight lang="handlebars">{{Icon|ofp|24}}</syntaxhighlight> | ||
|- | |- | ||
| {{Icon|ofp|72}} | | {{Icon|ofp|72}} | ||
| < | | <syntaxhighlight lang="handlebars">{{Icon|ofp|72}}</syntaxhighlight> | ||
|- | |- | ||
| {{Icon|ofp|100}} | | {{Icon|ofp|100}} | ||
| < | | <syntaxhighlight lang="handlebars">{{Icon|ofp|100}}</syntaxhighlight> | ||
|- | |- | ||
! colspan="2" style="background-color: #BDBDBD" | {{Name|bi}} | ! colspan="2" style="background-color: #BDBDBD" | {{Name|bi}} | ||
Line 44: | 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 61: | Line 54: | ||
| arma1 | | arma1 | ||
|- | |- | ||
| {{Icon|arma1_alt}} | | style="background-color: #555" | {{Icon|arma1_alt}} | ||
| arma1_alt | | arma1_alt | ||
|- | |- | ||
Line 86: | Line 79: | ||
| arma3, a3 | | arma3, a3 | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3zeus}} | ||
| arma3zeus, curator, zeus | | arma3zeus, curator, zeus | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3karts}} | ||
| arma3karts, kart, karts | | arma3karts, kart, karts | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3helicopters}} | ||
| arma3helicopters, heli, helicopter, helicopters | | arma3helicopters, heli, helicopter, helicopters | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3marksmen}} | ||
| arma3marksmen, mark, marks, marksmen | | arma3marksmen, mark, marks, marksmen | ||
|- | |- | ||
| style="background-color: #555" | {{Icon| | | style="background-color: #555" | {{Icon|arma3marksmen_alt}} | ||
| arma3marksmen_alt, mark_alt | | arma3marksmen_alt, mark_alt | ||
|- | |- | ||
Line 104: | Line 97: | ||
| arma3eden | | arma3eden | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3apex}} | ||
| arma3apex, expansion, apex | | arma3apex, expansion, apex | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3jets}} | ||
| arma3jets, jets | | arma3jets, jets | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3malden}} | ||
| arma3malden | | arma3malden, malden | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3lawsofwar}} | ||
| arma3lawsofwar, orange, low, laws of war | | arma3lawsofwar, orange, low, laws of war | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3tacops}} | ||
| arma3tacops, tacop, tac-op, tac-ops | | arma3tacops, tacop, tac-op, tac-ops | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3tanks}} | ||
| arma3tanks, tank, tanks | | arma3tanks, tank, tanks | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3contact}} | ||
| arma3contact, enoch, contact | | arma3contact, enoch, contact | ||
|- | |- | ||
| {{Icon| | | {{Icon|arma3artofwar}} | ||
| arma3artofwar, aow, artofwar | | arma3artofwar, aow, artofwar | ||
|- | |- | ||
| {{Icon|oldman}} | | {{Icon|arma3oldman}} | ||
| | | arma3oldman, oldman | ||
|- | |||
| style="background-color: #555" | {{Icon|arma3oldman_alt}} | |||
| arma3oldman_alt, oldman_alt | |||
|- | |||
! colspan="2" style="background-color:#BDBDBD" | {{Name|argo}} | |||
|- | |||
| {{Icon|argo}} | |||
| argo | |||
|- | |||
! colspan="2" style="background-color:#BDBDBD" | {{armaR}} | |||
|- | |- | ||
| style="background-color: #555" | {{Icon| | | {{Icon|armaR}} | ||
| | | armar | ||
|- | |||
| style="background-color: #555" | {{Icon|armaR_alt}} | |||
| armaR_alt | |||
|- | |||
! colspan="2" style="background-color:#BDBDBD" | {{arma4}} | |||
|- | |||
| {{Icon|arma4}} | |||
| arma4 | |||
|- | |||
| style="background-color: #555" | {{Icon|arma4_alt}} | |||
| arma4_alt | |||
|- | |- | ||
! colspan="2" style="background-color:#BDBDBD" | Take On | ! colspan="2" style="background-color:#BDBDBD" | Take On | ||
Line 150: | Line 164: | ||
! colspan="2" style="background-color:#BDBDBD" | Other Games | ! colspan="2" style="background-color:#BDBDBD" | Other Games | ||
|- | |- | ||
| {{Icon| | | {{Icon|carriercommand}} | ||
| | | 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 194: | Line 222: | ||
| style="background-color: #555" | {{Icon|afm}} | | style="background-color: #555" | {{Icon|afm}} | ||
| afm | | afm | ||
|- | |||
! colspan="2" style="background-color: #BDBDBD" | Controls | |||
|- | |||
| {{Icon|mouseL}} | |||
| mouseL | |||
|- | |||
| {{Icon|mouseL2}} | |||
| mouseL2 | |||
|- | |||
| {{Icon|mouseR}} | |||
| mouseR | |||
|- | |||
| {{Icon|mouseM}} | |||
| mouseM | |||
|- | |||
| {{Icon|mouseSW}} | |||
| mouseSW | |||
|- | |||
| {{Icon|mouseSWU}} | |||
| mouseSWU | |||
|- | |||
| {{Icon|mouseSWD}} | |||
| mouseSWD | |||
|- | |||
| {{Icon|mouseN}} | |||
| mouse, mouseN | |||
|- | |||
| {{Icon|controller}} | |||
| gamepad, controller | |||
|- | |||
| {{Icon|keyboard}} | |||
| keyboard | |||
|- | |||
| {{Icon|kbm}} | |||
| kbm | |||
|- | |- | ||
! colspan="2" style="background-color:#BDBDBD" | Wiki | ! colspan="2" style="background-color:#BDBDBD" | Wiki | ||
Line 211: | Line 274: | ||
| {{Icon|unknown}} | | {{Icon|unknown}} | ||
| unknown | | unknown | ||
|- | |||
! colspan="2" style="background-color:#BDBDBD" | Misc | |||
|- | |||
| {{Icon|Steam}} | |||
| steam | |||
|- | |||
| {{Icon|xbox}} | |||
| xbox | |||
|- | |||
| {{Icon|playstation}} | |||
| playstation | |||
|- | |||
| {{Icon|switch}} | |||
| switch | |||
|} | |} | ||
</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!- | |
-wrong parameter ("lol") defined!- | |
Dimensions | |
Bohemia Interactive | |
bi, bohemiainteractive | |
bi_alt, bohemiainteractive_alt | |
Operation Flashpoint | |
ofp, cwa, arma0 | |
ofpr | |
ofpe | |
Arma | |
arma1 | |
arma1_alt | |
Arma 2 | |
arma2, a2 | |
arma2oa, oa, arrowhead, operation arrowhead | |
arma2acr, acr | |
arma2baf, baf | |
arma2pmc, pmc | |
Arma 3 | |
arma3, a3 | |
arma3zeus, curator, zeus | |
arma3karts, kart, karts | |
arma3helicopters, heli, helicopter, helicopters | |
arma3marksmen, mark, marks, marksmen | |
arma3marksmen_alt, mark_alt | |
arma3eden | |
arma3apex, expansion, apex | |
arma3jets, jets | |
arma3malden, malden | |
arma3lawsofwar, orange, low, laws of war | |
arma3tacops, tacop, tac-op, tac-ops | |
arma3tanks, tank, tanks | |
arma3contact, enoch, contact | |
arma3artofwar, aow, artofwar | |
arma3oldman, oldman | |
arma3oldman_alt, oldman_alt | |
Argo | |
argo | |
Arma Reforger | |
armar | |
armaR_alt | |
Arma 4 | |
arma4 | |
arma4_alt | |
Take On | |
tkoh | |
tkoh_alt | |
tkom | |
tkom_alt | |
Other Games | |
carriercommand, carrier command, cc | |
dayz | |
dayz_alt | |
silica | |
vigor | |
ylands | |
Multiplayer Definitions | |
GAGlobal | globalArgument |
LALocal | localArgument |
GEGlobal | globalEffect |
LELocal | localEffect |
SEServer | serverExec |
Timeline | |
aan | |
person | |
real | |
Others | |
afm | |
Controls | |
mouseL | |
mouseL2 | |
mouseR | |
mouseM | |
mouseSW | |
mouseSWU | |
mouseSWD | |
mouse, mouseN | |
| gamepad, controller |
| keyboard |
| kbm |
Wiki | |
disamb | |
unchecked | |
checked | |
warning | |
unknown | |
Misc | |
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