Modèle:Desktop version

De Terraria Wiki
Aller à la navigation Aller à la recherche

Version Bureau Version Bureau

Ce modèle est considéré comme prêt pour i18n, signifiant qu'il est facile à régionaliser pour les différentes langues. Veuillez regarder i18n & l10n pour les modèles (en) pour en apprendre plus.
Voir Modèle:Icon-version/l10n pour la localisation de ce modèle.
Template-info.svg Documentation La documentation ci-dessous est transcluse de Modèle:Common version/doc. (modifier | historique)

Displays a standardized version link with icon, shown above. To display multiple versions, use {{versions}}.

Whenever the term "Desktop version" is used in an article, it should be replaced with this template to ensure consistency.

Usage

All parameters are optional.

{{ desktop version | <display mode> | short = y | nl = y | t = <custom display text> | glue = <characters between icon and text> | small = y | size = <size in px> | width = <width in px> | height = <height in px> | scale = <scale ratio> }}

First unnamed parameter

Display mode; set it to one of the following values:

  • icon – Display the icon only (see {{icon/desktop}}).
  • text – Display the text only.
  • short – Display the icon and an abbreviated version name.
short

Display an abbreviation of the version name. Identical to setting the first unnamed parameter to short.

nl

Remove the link from the icon and/or text. They are linked by default.

t

Customize the displayed text. Overrides |short=y and has no effect when using icon as mode.

glue

Set the characters between the icon and the text. Defaults to &nbsp;.

small, size, width, height, scale

Customize the icon display, see {{icon/desktop}} for details.

Examples

Code Result Note
{{desktop version}} Version Bureau Version Bureau
{{desktop version|icon}} Version Bureau Identical to {{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 Custom display text.
{{desktop version|short=y}} Version Bureau Bureau Identical to {{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}}.
{{desktop version|icon|small=y}} Version Bureau See {{icon/desktop}}.