Sablon:Image

Innen: Terraria Wiki
Ugrás a navigációhoz Ugrás a kereséshez

This template defines the table "Imageinfo". View table.If the filename is passed without its extension, will determine if a gif is available (defaults to png); returns the image; if file exists as neither gif nor png, returns a null value.

If the filename includes an extension, will return the image as normal. But you can prefixed it with a "?" character to check if the file exists, returning null if it doesn't.

Usage

{{image|options|caption}} The syntax is same as [[File:]].

Parameters

All [[File:]] syntax are valid.

In addition:

size=

Same as unamed size option, for convenience. Will be overrided by size option. e.g. |20px|size=40px will parse as |20px

scale=

Scale image based on its size. e.g. scale=0.5.

maxsize=

Using same syntax as [[File:]]'s size option: Wpx, Hpx, or WxHpx. Note: this is applied AFTER scale.