Template:Desktop version

From Terraria Wiki
Jump to: navigation, search

Desktop version Desktop version

This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for Templates to learn more.
Template-info.svg Documentation The documentation below is transcluded from Template: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".

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}} Desktop version Desktop version
{{Desktop version|icon}} Desktop version same as {{icon|desktop}}
{{Desktop version|text}} Desktop version
{{Desktop version|short}} Desktop version Desktop
{{Desktop version|text|short=y}} Desktop
{{Desktop version|t=sometext}} Desktop version sometext customize display text
{{Desktop version|short=y}} Desktop version Desktop same as {{Desktop version|short}}
{{Desktop version|nl=y}} Desktop version Desktop version No link.
{{Desktop version|text|nl=y}} Desktop version No link.
{{Desktop version|short|nl=y}} Desktop version Desktop No link.
{{Desktop version|glue=-}} Desktop version-Desktop version
{{Desktop version|scale=2}} Desktop version Desktop version see {{icon}}
{{Desktop version|icon|small=y}} Desktop version see {{icon}}