Template:Temtem portrait

From Official Temtem Wiki
Jump to navigation Jump to search
Template-info.png Documentation

This template takes an image, presumably a temtem's main image, and trims it, applies a border, and optionally applies a background. This display is similar to how Temtems are displayed in in-game menus, and makes the trimmed edges of the main temtem images less abrupt.

The outputted image is treated as an inline element.

Usage[edit]

{{Temtem portrait|name|size|image=|background=}}

Parameters[edit]

Parameter Data type Optional Default Description
name String Unnamed parameter. The Temtem's name. The image used by default will be File:name.png and will link to a page named name.
size String Yes 24x24px Unnamed parameter. The size of the image, in px. It is recommended this not exceed 240x240px, as this is the native size of the border and background images.
image String Yes {{{1|}}}.png The image to be used, without the file prefix. For example, to use File:Crystle.png, the input would be Crystle.png. This is largely unnecessary as long as Temtem main images are named according to the Tem's name, but the functionality allows use of this template in situations where other names, such as their numbers, are used instead.
background Boolean Yes 0 Whether to apply a background. Any non-zero value will be treated as a yes.

Examples[edit]

{{Temtem portrait|Crystle}}
produces: Crystle.png




{{Temtem portrait|Crystle|background=1}}
produces: Crystle.png




{{Temtem portrait|Crystle|128px|background=1}}
produces: Crystle.png




{{Temtem portrait|Crystle|image=Crystle.png}}
produces: Crystle.png