Modèle:Desktop version/doc

De Terraria Wiki
Aller à la navigation Aller à la recherche

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".

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 {{icon}} for detail.

example

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