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