Difference between revisions of "Template:Portal dynamic image/doc"

From blackwiki
Jump to navigation Jump to search
test>FR30799386
(created documentation)
 
m (4 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- 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}}
 
{{Template rating|alpha}}
 
{{Template rating|alpha}}
 +
 +
The template resizes a image to a particular width (only for portals)
 +
 
== Usage ==
 
== Usage ==
 +
<pre>{{Portal dynamic image |1= |description= |max-width= |width= |caption= }}</pre>
 +
<!-- need to fill this out -->
 +
 +
==See also==
 +
{{portal templates navbox}}
 +
 +
{{collapse|2=TemplateData|1=
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 11: Line 22:
 
"type": "wiki-page-name",
 
"type": "wiki-page-name",
 
"required": true
 
"required": true
 +
},
 +
                "max-height": {
 +
"description": "Sets the maximum height of the container",
 +
"suggested": true
 +
},
 +
"max-width": {
 +
"description": "Sets the max-width of the parent container",
 +
"type": "number",
 +
"suggested": true
 
},
 
},
 
"width": {
 
"width": {
"description": "The width of the image in percent",
+
"description": "The width of the image",
"example": "width=50",
+
"example": "width=50%",
 
"type": "number",
 
"type": "number",
"default": "50",
 
 
"suggested": true
 
"suggested": true
 
},
 
},
Line 30: Line 49:
 
}
 
}
 
</templatedata>
 
</templatedata>
 
+
}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Latest revision as of 16:38, 8 September 2020

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