Template:Desktop icon/doc

来自Terraria Wiki
跳转至: 导航搜索

Displays a linked desktop icon, which when clicked, takes the user to the Desktop Version history page. The link can be removed with the parameter value "nl" or "nolink".

Usage[编辑源代码]

All parameters are optional.

{{desktop icon
|nl/nolink: un-links the icon; default is a linked icon
|size= ##px; equal to width=##px AND height=##px, the image will be resized to fit within the given width and height in pixels. Default is currently 16px and can be found here: File:Desktop only.png.
|width= ##px; will override size=##px in horizontal dimension. Default is currently 16px and can be found here: File:Desktop only.png.
|height= ##px; will override size=##px in vertical dimension. Default is currently 12px and can be found here: File:Desktop 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
{{desktop icon}} 电脑版 是
{{desktop icon | small=y }} 电脑版
{{desktop icon | scale=0.5 }} 电脑版
{{desktop icon | size=40px | scale=0.5 }} 电脑版 equal to {{desktop icon | size=20px}}
{{desktop icon | width=16px | height=30px}} 电脑版 image will fit within the rectangle and retain its aspect ratio.
{{desktop icon | nl }} 电脑版 否 not clickable.
{{desktop icon | nolink }}
{{desktop icon | nl | size=20px }} 电脑版