Template:Mobile version

From Terraria Wiki
Jump to navigation Jump to search

Mobile version Mobile version

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 Documentation The documentation below is transcluded from Template:Common version/doc. (edit | history)

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

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

Usage

All parameters are optional.

{{ mobile 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/mobile}}).
  • 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/mobile}} for details.

Examples

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