Template:Desktop version

来自Terraria Wiki
跳转至: 导航搜索

电脑版 电脑版

Template-info.svg 文档 以下文档内容来自模板:Desktop version/doc。 (edit | history)

An all-in-one template for display Desktop version link/text.

When a simple icon isn't enough, used to mark content as 'Desktop Only' within a sentence or paragraph. (see Template:Exclusive to mark Desktop exclusive pages or sections)

The "short" parameter value can be used to display "Desktop" rather than "Desktop version".



{{Desktop version|MODE|nl/nolink=y|short=y|glue= |t=display text}}

unnamed parameter 1

Output mode, can be icon/text/short:

  • icon: output icon only.
  • text: output text only.
  • short: output icon and short text.

Only output icon and/or text, don't make them be links.


Output short text. {{Desktop version|short=y}} has the same effect as {{Desktop version|short}}

t=display text

Customize text. Will override short=y, have no effect when mode=icon.


Customize the glue text between icon and text. default is  

size, width, height, scale, small

Customize icon display, see {{Desktop icon}} for detail.


code output note
{{Desktop version}} 电脑版 电脑版
{{Desktop version|icon}} 电脑版 same as {{Desktop icon}}
{{Desktop version|text}} 电脑版
{{Desktop version|short}} 电脑版 电脑版
{{Desktop version|text|short=y}} 电脑版
{{vversion|t=sometext}} 电脑版 sometext customize display text
{{Desktop version|short=y}} 电脑版 电脑版 same as {{Desktop version|short}}
{{Desktop version|nl=y}} 电脑版 电脑版 No link.
{{Desktop version|text|nl=y}} 电脑版 No link.
{{Desktop version|short|nl=y}} 电脑版 电脑版 No link.
{{Desktop version|glue=-}} 电脑版-电脑版
{{Desktop version|scale=2}} 电脑版 电脑版 see {{Desktop icon}}
{{Desktop version|icon|small=y}} 电脑版 see {{Desktop icon}}