This template can be used to display one or more platform icons.
Note: If performance is an issue (such as when used in other templates), you should use {{icon/pc}}
directly (see below for all individual icon templates). In addition, this also allows you to have full control over the icon size.
Options can be set for a group of icons prior to displaying them. The available options include , and can be found/edited here. To set options for {{icon}}
, use {{options/set|icon}}
. To reset the options after usage, use {{options/reset|icon}}
.
Usage
{{ icon | <platform 1> | <platform 2> | ... | <platform n> | nl = y (optional) | small = y (optional) | scale = <scale factor> (optional) }}
- Unnamed parameters
See below for the list of possible values. The possible number of unnamed parameters is nearly infinite; their order is irrelevant.
- nl or nolink
Removes the link from the icons. They are linked by default. nolink can be set by options.
- small
Reduces the icons' size to 75%. small can be set by options.
- scale
Icon(s) will be scaled by multiplying the size with the scale factor (e.g. a 32x32px icon with a scale of 0.5 will be displayed at 16x16px). scale can be set by options.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Platform | 1 | Name of the platform | Line | required |
Platform 2 | 2 | Name of an additional platform. | Line | optional |
Platform 3 | 3 | Name of an additional platform. | Line | optional |
Platform 4 | 4 | Name of an additional platform. Repeat this as many times as necessary. | Line | optional |
Unlink icons | nl nolink | Remove the link from the icons.
| Boolean | optional |
Reduce icon size | small | Reduces the icons' size to 75%.
| Boolean | optional |
Scale icon size | scale | Scales the icons' size by a multiplier. 1/2 size is specified by 0.5. | Line | optional |
This template prefers inline formatting of parameters.
All valid icons
Values are listed in lowercase here, but are functionally case-insensitive.
Example
How to add new icons
Create a corresponding Template:Icon/<icon name>
(see the contents of {{icon/pc}} for an example). If you need to allow multiple valid aliases for it, use redirects.
For example, to add a new iOS2 icon:
- Create
Template:Icon/ios2
(similar to {{icon/pc}}). Note: The template name must use lowercase (i.e. notTemplate:icon/iOS2
,Template:Icon/IOS2
orTemplate:Icon/Ios2
). Use{{icon|ios2}}
to display your new iOS2 icon. - If you want to add a new alias parameter for it, for example, to use
{{icon|iphone}}
, just create a redirect pageTemplate:Icon/iphone
, and set its redirect target toTemplate:Icon/ios2
.
Icon templates
These are the icon templates, all subpages of Template:Icon
:
- Template:Icon/3ds
- Template:Icon/amazon
- Template:Icon/android
- Template:Icon/celebrationmk10
- Template:Icon/console
- Template:Icon/drunk world
- Template:Icon/for the worthy
- Template:Icon/google play
- Template:Icon/ios
- Template:Icon/japanese console
- Template:Icon/linux
- Template:Icon/macos
- Template:Icon/mobile
- Template:Icon/new chinese
- Template:Icon/not the bees
- Template:Icon/old chinese
- Template:Icon/old-gen console
- Template:Icon/pc
- Template:Icon/playstation
- Template:Icon/playstation3
- Template:Icon/playstation4
- Template:Icon/playstation5
- Template:Icon/psvita
- Template:Icon/stadia
- Template:Icon/switch
- Template:Icon/the constant
- Template:Icon/tmodloader
- Template:Icon/tmodloader 1.3
- Template:Icon/wiiu
- Template:Icon/windows
- Template:Icon/windows phone
- Template:Icon/xbox
- Template:Icon/xbox 360
- Template:Icon/xbox one
- Template:Icon/xbox series
There are also a number of redirects which can also be used:
- Template:Icon/3DS
- Template:Icon/New Chinese
- Template:Icon/New chinese
- Template:Icon/Old Chinese
- Template:Icon/Old chinese
- Template:Icon/Tmodloader
- Template:Icon/Windows Phone
- Template:Icon/amz
- Template:Icon/aws
- Template:Icon/cns
- Template:Icon/desktop
- Template:Icon/dsk
- Template:Icon/google
- Template:Icon/googleplay
- Template:Icon/japan
- Template:Icon/jas
- Template:Icon/jcs
- Template:Icon/jpc
- Template:Icon/mac
- Template:Icon/mbl
- Template:Icon/nc
- Template:Icon/new Chinese
- Template:Icon/newchinese
- Template:Icon/oc
- Template:Icon/old
- Template:Icon/old Chinese
- Template:Icon/old-gen
- Template:Icon/oldchinese
- Template:Icon/oldgen
- Template:Icon/ps
- Template:Icon/ps3
- Template:Icon/ps4
- Template:Icon/ps5
- Template:Icon/psv
- Template:Icon/swt
- Template:Icon/tml
- Template:Icon/tml1.3
- Template:Icon/tmodloaderlegacy
- Template:Icon/vita
- Template:Icon/windowsphone
- Template:Icon/winphone
- Template:Icon/wp
- Template:Icon/xb1
- Template:Icon/xb360
- Template:Icon/xbox360
- Template:Icon/xboxone
- Template:Icon/xboxseries