Icon/doc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add Vigor) |
Lou Montana (talk | contribs) (Add Steam icon) |
||
Line 12: | Line 12: | ||
'''Examples''' | '''Examples''' | ||
<div style="display: inline-block; max-height: | <div style="display: inline-block; border: 1px solid #CCC; max-height: 95vh; overflow: auto; padding: 0 0.25em 0 1em"> | ||
{| class="wikitable sortable" | {| class="wikitable sortable align-center-col-1" | ||
! Preview | |||
! Preview | ! Additional Information | ||
|- | |- | ||
! colspan="2" style="background-color:#BDBDBD" | Errors | ! colspan="2" style="background-color:#BDBDBD" | Errors | ||
|- | |- | ||
| {{Icon}} | | {{Icon}} | ||
| < | | <syntaxhighlight lang="html+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="html+handlebars">{{Icon|ofp|12}}</syntaxhighlight> | ||
|- | |- | ||
| {{Icon|ofp|24}} | | {{Icon|ofp|24}} | ||
| < | | <syntaxhighlight lang="html+handlebars">{{Icon|ofp|24}}</syntaxhighlight> | ||
|- | |- | ||
| {{Icon|ofp|72}} | | {{Icon|ofp|72}} | ||
| < | | <syntaxhighlight lang="html+handlebars">{{Icon|ofp|72}}</syntaxhighlight> | ||
|- | |- | ||
| {{Icon|ofp|100}} | | {{Icon|ofp|100}} | ||
| < | | <syntaxhighlight lang="html+handlebars">{{Icon|ofp|100}}</syntaxhighlight> | ||
|- | |- | ||
! colspan="2" style="background-color: #BDBDBD" | {{Name|bi}} | ! colspan="2" style="background-color: #BDBDBD" | {{Name|bi}} | ||
Line 276: | Line 276: | ||
|- | |- | ||
! colspan="2" style="background-color:#BDBDBD" | Misc | ! colspan="2" style="background-color:#BDBDBD" | Misc | ||
|- | |||
| {{Icon|Steam}} | |||
| steam | |||
|- | |- | ||
| {{Icon|xbox}} | | {{Icon|xbox}} | ||
Line 287: | Line 290: | ||
|} | |} | ||
</div> | </div> | ||
[[Category: Templates|{{uc:{{PAGENAME}}}}]] | [[Category: Templates|{{uc:{{PAGENAME}}}}]] |
Revision as of 15:34, 10 April 2023
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!- | |
-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, argo, malden | |
arma3lawsofwar, orange, low, laws of war | |
arma3tacops, tacop, tac-op, tac-ops | |
arma3tanks, tank, tanks | |
arma3contact, enoch, contact | |
arma3artofwar, aow, artofwar | |
oldman, arma3oldman | |
oldman_alt, arma3oldman_alt | |
Arma Reforger | |
armar | |
armar_alt | |
Arma 4 | |
arma4 | |
arma4_alt | |
Take On | |
tkoh | |
tkoh_alt | |
tkom | |
tkom_alt | |
Other Games | |
cc, carriercommand, carrier command | |
dayz | |
dayz_alt | |
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 |