Modèle:Desktop version/doc

De Terraria Wiki
Aller à : navigation, rechercher

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


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