Terraria Wiki

  • Discussions are now available on the Terraria Wiki.
  • Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Icon-version/l10n for the localization of this template.
Template-info Documentation The documentation below is transcluded from Template:Icon/doc. (edit | history)

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.


ParameterDescriptionTypeStatus
Platform1
Name of the platform
Line
required
Platform 22
Name of an additional platform.
Line
optional
Platform 33
Name of an additional platform.
Line
optional
Platform 44
Name of an additional platform. Repeat this as many times as necessary.
Line
optional
Unlink iconsnl
nolink
Remove the link from the icons.
Auto value:
True (1/y/yes)
Boolean
optional
Reduce icon sizesmall
Reduces the icons' size to 75%.
Auto value:
True (1/y/yes)
Boolean
optional
Scale icon sizescale
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.

Value Icon
  • ​3ds
Nintendo 3DS version
  • ​amazon
  • ​amz
  • ​aws
Amazon Appstore
  • ​android
Android
  • ​celebrationmk10
Celebrationmk10
  • ​console
  • ​cns
Console version
  • ​drunk world
Drunk world
  • ​for the worthy
For the worthy
  • ​google play
  • ​google
  • ​googleplay
Google Play
  • ​ios
iOS & iPadOS
  • ​japanese console
  • ​japan
  • ​jas
  • ​jcs
  • ​jpc
Japanese Console version
  • ​linux
Linux
  • ​macos
  • ​mac
macOSmacOS
  • ​mobile
  • ​mbl
Mobile version
  • ​new chinese
  • ​nc
  • ​newchinese
New Chinese version
  • ​not the bees
Not the bees
  • ​old chinese
  • ​oc
  • ​oldchinese
Old Chinese version
  • ​old-gen console
  • ​old
  • ​old-gen
  • ​oldgen
Old-gen console version
  • ​pc
  • ​desktop
  • ​dsk
Desktop only
  • ​playstation
  • ​ps
PlayStation
  • ​playstation3
  • ​ps3
PlayStation 3
  • ​playstation4
  • ​ps4
PlayStation 4
  • ​playstation5
  • ​ps5
PlayStation 5
  • ​psvita
  • ​psv
  • ​vita
PlayStation Vita
  • ​stadia
Stadia
  • ​switch
  • ​swt
Nintendo Switch
  • ​the constant
The Constant
  • ​tmodloader
  • ​tml
tModLoader version
  • ​tmodloader 1.3
  • ​tml1.3
  • ​tmodloaderlegacy
tModLoader 1
  • ​wiiu
Wii U
  • ​windows
Windows
  • ​windows phone
  • ​windowsphone
  • ​winphone
  • ​wp
Windows Phone
  • ​xbox
Xbox
  • ​xbox 360
  • ​xb360
  • ​xbox360
Xbox 360
  • ​xbox one
  • ​xb1
  • ​xboxone
Xbox One
  • ​xbox series
  • ​xboxseries
Xbox Series X|S

Example

Code Result Expected result
{{icon| pc }} Desktop only Desktop only
{{icon| pc | console }} Desktop only Console version Desktop only Console version
{{icon| console | pc }} Console version Desktop only Console version Desktop only
{{icon| pc ||   | | console }}
(Blank parameters are irrelevant.)
Desktop only Console version Desktop only Console version
{{icon| dsk | 3ds | mbl | cns }} Desktop only Nintendo 3DS version Mobile version Console version Desktop only Nintendo 3DS version Mobile version Console version
{{icon| dsk | dsk | mbl }} Desktop only Desktop only Mobile version Desktop only Desktop only Mobile version
{{icon| oldgen | mobile | nl=y | small=y }} Old-gen console version Mobile version Old-gen console version Mobile version
{{icon| small=y | oldgen | nl=y | mobile }}
(Valid, but poor code readability, so not recommended.)
Old-gen console version Mobile version Old-gen console version Mobile version
All icons:
{{icon| pc | console | japan | oldgen | mobile | 3ds }} Desktop only Console version Japanese Console version Old-gen console version Mobile version Nintendo 3DS version Desktop only Console version Japanese Console version Old-gen console version Mobile version Nintendo 3DS version
{{icon| pc | console | japan | oldgen | mobile | 3ds | small=y }} Desktop only Console version Japanese Console version Old-gen console version Mobile version Nintendo 3DS version Desktop only Console version Japanese Console version Old-gen console version Mobile version Nintendo 3DS version

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:

  1. Create Template:Icon/ios2 (similar to {{icon/pc}}). Note: The template name must use lowercase (i.e. not Template:icon/iOS2, Template:Icon/IOS2 or Template:Icon/Ios2). Use {{icon|ios2}} to display your new iOS2 icon.
  2. If you want to add a new alias parameter for it, for example, to use {{icon|iphone}}, just create a redirect page Template:Icon/iphone, and set its redirect target to Template:Icon/ios2.

Icon templates

These are the icon templates, all subpages of Template:Icon:

There are also a number of redirects which can also be used:


Advertisement