Terraria Wiki
Terraria Wiki
1 577
páginas
m (Common icon template documentation.)
Rye Greenwood (discussão | contribs)
m (1 edição importada)
 

Edição atual desde as 21h50min de 12 de maio de 2020

Versão para Celular

Essa predefinição é pronta para i18n, o que significa que ela é simples de localizar para línguas diferentes. Veja I18n & l10n para Predefinições para entender melhor.
Template-info Documentação A documentação que segue é transcluída de Predefinição:Icon/common/doc. (editar | histórico)

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

Usage

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

Code Result Linked Note
{{icon/mobile}} Versão para Celular ✔️
{{icon/mobile|small=y}} Versão para Celular
{{icon/mobile|scale=0.5}} Versão para Celular
{{icon/mobile|size=40|scale=0.5}} Versão para Celular Equal to {{icon/mobile|size=20}}
{{icon/mobile|width=16|height=30}} Versão para Celular Image will fit within the rectangle and retain its aspect ratio.
{{icon/mobile|nl=y}} Versão para Celular
{{icon/mobile|nl=y|size=20}} Versão para Celular