模板: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".

注意:中文版中「short」參數無實際效果。

Usage[編輯原始碼]

{{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.
nl/nolink=y/yes

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

short=y/yes

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.

glue=

Customize the glue text between icon and text. default is  

size, width, height, scale, small

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

example[編輯原始碼]

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}}