Modèle:Mobile version/doc

De Terraria Wiki
Aller à la navigation Aller à la recherche

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

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

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

Usage

{{Mobile 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. {{Mobile version|short=y}} has the same effect as {{Mobile 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
{{Mobile version}} Version Mobile Version Mobile
{{Mobile version|icon}} Version Mobile same as {{icon|mobile}}
{{Mobile version|text}} Version Mobile
{{Mobile version|short}} Version Mobile Mobile
{{Mobile version|text|short=y}} Mobile
{{Mobile version|short=y}} Version Mobile Mobile same as {{Mobile version|short}}
{{Mobile version|t=sometext}} Version Mobile sometext customize display text
{{Mobile version|nl=y}} Version Mobile Version Mobile No link.
{{Mobile version|text|nl=y}} Version Mobile No link.
{{Mobile version|short|nl=y}} Version Mobile Mobile No link.
{{Mobile version|glue=-}} Version Mobile-Version Mobile
{{Mobile version|scale=2}} Version Mobile Version Mobile see {{icon}}
{{Mobile version|icon|small=y}} Version Mobile see {{icon}}