Difference between revisions of "Template:Portal dynamic image"

From blackwiki
Jump to navigation Jump to search
test>Frietjes
test>FR30799386
(More customisation)
Line 1: Line 1:
<includeonly><templatestyles src="Portal dynamic image/styles.css"/><div class="dynamic-image-portal" style="width:{{{width|}}};{{#if:{{{center|}}}|margin:0 auto;|}}{{#if:{{{max-height|}}}|max-height:{{{max-height}}};|}}{{#if:{{{max-width|}}}|max-width:{{{max-width}}};|}}">
+
<includeonly><templatestyles src="Portal dynamic image/styles.css"/><div class="dynamic-image-portal" style="width:{{{width|}}};{{#if:{{{center|}}}|margin:0 auto;|}}{{#if:{{{max-height|}}}|max-height:{{{max-height}}};|}}{{#if:{{{max-width|}}}|max-width:{{{max-width}}};|}}{{#if:{{{float|}}}|float:{{{float}}};|}}">
 
[[{{{1| }}}|{{{caption| }}}]]
 
[[{{{1| }}}|{{{caption| }}}]]
 
</div></includeonly>
 
</div></includeonly>
 
<noinclude>{{Documentation}}
 
<noinclude>{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 05:51, 26 August 2018

Template documentation[view] [edit] [history] [purge]

Script error: No such module "Uses TemplateStyles". Template:Template rating

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

Usage

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

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
Pagerequired
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