模板:Desktop icon

出自Terraria Wiki
前往: 導覽搜尋

電腦版

Template-info.svg 文檔 以下文檔內容來自模板:Desktop icon/doc。 (edit | history)

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 }} 電腦版