模板:Console version

出自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 Template:Icon-version/l10n for the localization of this template.
Template-info.svg 文檔 以下文檔來自Template:Common version/doc。(編輯 | 歷史

Displays a standardized version link with icon, shown above. To display multiple versions, use {{versions}}.

Whenever the term "Console version" is used in an article, it should be replaced with this template to ensure consistency.

Usage

All parameters are optional.

{{ console version | <display mode> | short = y | nl = y | t = <custom display text> | glue = <characters between icon and text> | small = y | size = <size in px> | width = <width in px> | height = <height in px> | scale = <scale ratio> }}

First unnamed parameter

Display mode; set it to one of the following values:

  • icon – Display the icon only (see {{icon/console}}).
  • text – Display the text only.
  • short – Display the icon and an abbreviated version name.
short

Display an abbreviation of the version name. Identical to setting the first unnamed parameter to short.

nl

Remove the link from the icon and/or text. They are linked by default.

t

Customize the displayed text. Overrides |short=y and has no effect when using icon as mode.

glue

Set the characters between the icon and the text. Defaults to &nbsp;.

small, size, width, height, scale

Customize the icon display, see {{icon/console}} for details.

Examples

Code Result Note
{{console version}} 主機版 主機版
{{console version|icon}} 主機版 Identical to {{icon/console}}.
{{console version|text}} 主機版
{{console version|short}} 主機版 主機版
{{console version|text|short=y}} 主機版
{{console version|t=sometext}} 主機版 sometext Custom display text.
{{console version|short=y}} 主機版 主機版 Identical to {{console version|short}}
{{console version|nl=y}} 主機版 主機版 No link.
{{console version|text|nl=y}} 主機版 No link.
{{console version|short|nl=y}} 主機版 主機版 No link.
{{console version|glue=-}} 主機版-主機版
{{console version|scale=2}} 主機版 主機版 See {{icon/console}}.
{{console version|icon|small=y}} 主機版 See {{icon/console}}.