Toggle menu
14
236
69
27.2K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Portal dynamic image/doc: Difference between revisions

Template page
Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{Uses TemplateStyles|Template:Portal dynamic image/styles.css}} {{Template rating|alpha}} The template resizes a image to a particular width (only for portals) == Usage == <syntaxhighlight lang="wikitext">{{Portal dynamic image |1= |description= |max-width= |width= |caption= |center=yes}}</syntaxhighlight> <!-- n..."
 
No edit summary
 
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Uses TemplateStyles|Template:Portal dynamic image/styles.css}}
{{Uses TemplateStyles|Template:Portal dynamic image/styles.css}}
{{Template rating|alpha}}


The template resizes a image to a particular width (only for portals)
The template resizes a image to a particular width (only for portals)

Latest revision as of 02:01, 16 March 2025

The template resizes a image to a particular width (only for portals)

Usage

{{Portal dynamic image |1= |description= |max-width= |width= |caption= |center=yes}}

Parameters

|1=
Filename of the picture, without the prefix "File:".
|center=true
Specify any value for parameter "center" if the picture should be centered.

See also

TemplateData

The template resizes a image to a particular width (only for portals)

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

The file to be used

Example
File:Example.png
Page namerequired
max-heightmax-height

Sets the maximum height of the container

Unknownsuggested
max-widthmax-width

Sets the max-width of the parent container

Numbersuggested
widthwidth

The width of the image

Example
width=50%
Numbersuggested
captioncaption

Caption of image

Example
caption=Example
Stringsuggested