注意:1.4.5 的更新内容量较大,页面上很可能仍有内容尚未更新。
如中文 wiki 信息过时,可以参考英文 wiki 对应页面。
Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南

Template:Icon/xbox series

来自Terraria Wiki
跳转到导航 跳转到搜索
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Icon-version/l10n for the localization of this template.
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg 文档 以下文档来自Template:Icon/common/doc。(编辑 | 历史

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

Usage

All parameters are optional.

{{ icon/xbox series | 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/xbox series}} Xbox Series X|S ✔️
{{icon/xbox series|small=y}} Xbox Series X|S
{{icon/xbox series|scale=0.5}} Xbox Series X|S
{{icon/xbox series|size=40|scale=0.5}} Xbox Series X|S Equal to {{icon/xbox series|size=20}}
{{icon/xbox series|width=16|height=30}} Xbox Series X|S Image will fit within the rectangle and retain its aspect ratio.
{{icon/xbox series|nl=y}} Xbox Series X|S
{{icon/xbox series|nl=y|size=20}} Xbox Series X|S