Template:ID Portrait Resize: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Adding trimming)
m (Adding section for templatedata for clarity)
Line 15: Line 15:
<pre>{{ID Portrait Resize|Noa T'Nessa Levinson|156}}</pre>
<pre>{{ID Portrait Resize|Noa T'Nessa Levinson|156}}</pre>
{{ID Portrait Resize|Noa T'Nessa Levinson|156}}
{{ID Portrait Resize|Noa T'Nessa Levinson|156}}
==Template Data==
<templatedata>
<templatedata>
{
{

Revision as of 22:50, 18 June 2023

Creates portrait as specified in a character's ID subpage, allowing for any width to be specified, defaulting to 100px when unspecified.

Usage

{{ID Portrait Resize|Noa T'Nessa Levinson}}
LtCmmdr Noa Levinson.png
{{ID Portrait Resize|Noa T'Nessa Levinson|83}}
LtCmmdr Noa Levinson.png
{{ID Portrait Resize|Noa T'Nessa Levinson|60}}
LtCmmdr Noa Levinson.png

You can even have non-standard sizes:

{{ID Portrait Resize|Noa T'Nessa Levinson|156}}
LtCmmdr Noa Levinson.png

Template Data

Displays the image from the specified character's ID subpage, with an optionally supplied size (defaults to 100 pixels with no size specified).

Template parameters

ParameterDescriptionTypeStatus
Character1

The character name whose portrait to display. Must have an ID subpage created.

Example
Noa T'Nessa Levinson
Linerequired
Image size2

The size to display the image at in pixels. Defaults to 100 when this is unspecified.

Example
83
Numberoptional