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

From blackwiki
Jump to navigation Jump to search
test>FR30799386
(created documentation)
 
test>FR30799386
(Upated doc)
Line 11: Line 11:
 
"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
 
},
 
},

Revision as of 15:51, 9 August 2018

Template:Template rating

Usage

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