:Icon

Terraria Wiki
둘러보기로 이동 검색으로 이동
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 틀:Icon-version/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from 틀:Icon/doc. (edit | history)

This template can be used to display one or more platform icons.

Note: If you only want to display a single platform icon, say, desktop, you can use {{icon|desktop}}, of course; but if in a performance-sensitive context (such as used in other templates), you should use {{icon/desktop}} (see here for all individual icon templates) directly. In addition, this also allows you to have full control over the icon size.

Usage

{{ icon | <platform 1> | <platform 2> | ... | <platform n> | nl = y (optional) | small = y (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.

small

Reduces the icons' size to 75%.

틀:Templatedata

All valid icons

Values are listed in lowercase here, but are functionally case-insensitive.

Value Icon
틀:Dotlist/start틀:Dotlist/item틀:Dotlist/item틀:Dotlist/end Desktop version
틀:Dotlist/start틀:Dotlist/item틀:Dotlist/item틀:Dotlist/end Mobile version

Example

Code Result 틀:Note
{{icon| desktop }} Desktop version Desktop version
{{icon| desktop | console }} Desktop version 틀:Icon/console Desktop version 틀:Icon/console
{{icon| console | desktop }} 틀:Icon/console Desktop version 틀:Icon/console Desktop version
{{icon| desktop ||   | | console }}
틀:Note
Desktop version 틀:Icon/console Desktop version 틀:Icon/console
{{icon| dsk | 3ds | mbl | cns }} Desktop version 틀:Icon/3ds Mobile version
  1. REDIRECT Template:Icon/console
Desktop version 틀:Icon/3ds Mobile version 틀:Icon/console
{{icon| dsk | dsk | mbl }} Desktop versionDesktop versionMobile version Desktop versionDesktop versionMobile version
{{icon| oldgen | mobile | nl=y | small=y }}
  1. REDIRECT Template:Icon/old-gen console Mobile version
  1. REDIRECT Template:Icon/old-gen console Mobile version
{{icon| small=y | oldgen | nl=y | mobile }}
틀:Note
  1. REDIRECT Template:Icon/old-gen console Mobile version
  1. REDIRECT Template:Icon/old-gen console Mobile version
All icons:
{{icon| desktop | console | japan | oldgen | mobile | 3ds }} Desktop version 틀:Icon/console 
  1. REDIRECT Template:Icon/japanese console 
  2. REDIRECT Template:Icon/old-gen console Mobile version 틀:Icon/3ds
Desktop version 틀:Icon/console 
  1. REDIRECT Template:Icon/japanese console 
  2. REDIRECT Template:Icon/old-gen console Mobile version 틀:Icon/3ds
{{icon| desktop | console | japan | oldgen | mobile | 3ds | small=y }} Desktop version 틀:Icon/console 
  1. REDIRECT Template:Icon/japanese console 
  2. REDIRECT Template:Icon/old-gen console Mobile version 틀:Icon/3ds
Desktop version 틀:Icon/console 
  1. REDIRECT Template:Icon/japanese console 
  2. REDIRECT Template:Icon/old-gen console Mobile version 틀:Icon/3ds

How to add new icon types

Only need to create a corresponding Template:Icon/<icon name> (its content can refer to {{icon/desktop}}). If you need to allow multiple valid parameters for it, use redirection.

For example, say, want to add a new iOS icon type:

  1. Create Template:Icon/ios (similar to {{icon/desktop}}). Note: The template name must use lowercase (i.e. not Template:icon/ios, Template:Icon/IOS or Template:Icon/Ios). That's all. Now we can use {{icon|ios}} to display an iOS icon.
  2. If you want to add a new alias parameter for it, for example, you want to allow display a iOS icon by using {{icon|iphone}}, just create a redirect page Template:Icon/iphone, and set its redirect target to Template:Icon/ios.