Modèle:Icon/mobile

De Terraria Wiki
< Modèle:Icon(Redirigé depuis Modèle:Mobile icon)
Aller à : navigation, rechercher

Version Mobile

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.
Template-info.svg Documentation La documentation ci-dessous est transcluse de Modèle:Icon/common/doc. (modifier | historique)

Displays the linked icon shown above. To display multiple icons, use {{icon}}.

Usage[modifier le wikicode]

All parameters are optional.

{{ icon/mobile | small = y | nl = y | size = <size in px> | width = <width in px> | height = <height in px> | scale = <scale ratio> }}

small

Reduces the size of the icon to 75%; evaluated after $width, $height, and $size. Equal to |scale=0.75; overridden by $scale.

nl

Removes the link from the icon. It is linked by default.

size

Size in px; sets $width and $height to the passed value. The image will be resized to fit within the given size. Note that it will always retain its aspect ratio.

width / height

Overrides $size in the horizontal/vertical dimension.

scale

Scale ratio; width and height of the image will be multiplied with this value. Default is 1.

Examples[modifier le wikicode]

Code Result Linked Note
{{icon/mobile}} Version Mobile Oui
{{icon/mobile|small=y}} Version Mobile
{{icon/mobile|scale=0.5}} Version Mobile
{{icon/mobile|size=40|scale=0.5}} Version Mobile Equal to {{icon/mobile|size=20}}
{{icon/mobile|width=16|height=30}} Version Mobile Image will fit within the rectangle and retain its aspect ratio.
{{icon/mobile|nl=y}} Version Mobile Non
{{icon/mobile|nl=y|size=20}} Version Mobile