注意:游戏新版本刚刚发布,本 wiki 内容进度严重滞后,页面上的内容几乎肯定存在遗漏、错误,请谨慎采信。
Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南

Template:Mobile 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.
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
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 "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|icon}} 移动版 Identical to {{icon/mobile}}.
{{mobile version|text}} 移动版
{{mobile version|short}} 移动版 移动版
{{mobile version|text|short=y}} 移动版
{{mobile version|t=sometext}} 移动版 sometext Custom display text.
{{mobile version|short=y}} 移动版 移动版 Identical to {{mobile version|short}}
{{mobile version|nl=y}} 移动版 移动版 No link.
{{mobile version|text|nl=y}} 移动版 No link.
{{mobile version|short|nl=y}} 移动版 移动版 No link.
{{mobile version|glue=-}} 移动版-移动版
{{mobile version|scale=2}} 移动版 移动版 See {{icon/mobile}}.
{{mobile version|icon|small=y}} 移动版 See {{icon/mobile}}.