Template:Portal dynamic image: Difference between revisions
Template page
More actions
Created page with "<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}}};|}}"><!-- -->[[File:{{{1}}}|{{{caption| }}}]]<!-- --></div><noinclude>{{Documentation}} </noinclude>" |
No edit summary |
||
Line 1: | Line 1: | ||
<templatestyles src="Portal dynamic image/styles.css"/><!-- | <templatestyles src="Template: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}}};|}}"><!-- | --><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}}};|}}"><!-- | ||
-->[[File:{{{1}}}|{{{caption| }}}]]<!-- | -->[[File:{{{1}}}|{{{caption| }}}]]<!-- | ||
--></div><noinclude>{{Documentation}} | --></div><noinclude>{{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 02:01, 16 March 2025
[[File:{{{1}}}| ]]
This template uses TemplateStyles: |
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)
|