Modèle:Icon/mobile

De Terraria Wiki
Aller à : navigation, rechercher

Version Mobile

Displays a linked mobile icon, which when clicked, takes the user to the Version Mobile page. The link can be removed with the parameter "nl" .

Usage

All parameters are optional.

{{icon/mobile
|nl=y/yes: un-links the icon; default is a linked icon
|size= ##; size in px. equal to width=## AND height=##, the image will be resized to fit within the given width and height in pixels. Default is currently 16(px) and can be found here: File:mobile only.png.
|width= ##; will override size=## in horizontal dimension. Default is currently 11(px) and can be found here: File:mobile only.png.
|height= ##; will override size=## in vertical dimension. Default is currently 16(px) and can be found here: File:mobile only.png.
|scale= scale ratio; default is 1. Size dimension will be multiplied by this ratio.
|small= y/yes; creates a smaller icon (of 12px by default), equal to scale=0.75. This will be overrided by scale=xx. (useful when space is an issue)
}}

Note that the image will always retain its aspect ratio.

Examples

code displays clickable note
{{icon/mobile}} Version Mobile
{{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 × not clickable.
{{icon/mobile | nl=y | size=20 }} Version Mobile