Terraria Wiki
Advertisement
Terraria Wiki
3,710
个页面

电脑版

This template is i18n-ready, which means it is easy to localize for different languages. Please see i18n & l10n for templates to learn more.
Template-info.svg 文档 以下文档内容来自模板:icon/common/doc。 (edit | history)

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

Usage

All parameters are optional.

{{ icon/desktop | 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/desktop}} 电脑版 ✔️
{{icon/desktop|small=y}} 电脑版
{{icon/desktop|scale=0.5}} 电脑版
{{icon/desktop|size=40|scale=0.5}} 电脑版 Equal to {{icon/desktop|size=20}}
{{icon/desktop|width=16|height=30}} 电脑版 Image will fit within the rectangle and retain its aspect ratio.
{{icon/desktop|nl=y}} 电脑版
{{icon/desktop|nl=y|size=20}} 电脑版
Advertisement