Difference between revisions of "Template:Portal dynamic image/doc"
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 | + | "description": "The width of the image", |
| − | "example": "width=50", | + | "example": "width=50%", |
"type": "number", | "type": "number", | ||
| − | |||
"suggested": true | "suggested": true | ||
}, | }, | ||
Revision as of 15:51, 9 August 2018
| 40px | This is a documentation subpage for Template:Portal dynamic image. It contains usage information, categories and other content that is not part of the original template page. |
Usage
The template resizes a image to a particular width (only for portals)
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The file to be used
| Page | required |
| Max-height | max-height | Sets the maximum height of the container | Unknown | suggested |
| Max-width | max-width | Sets the max-width of the parent container | Number | suggested |
| Width | width | The width of the image
| Number | suggested |
| Caption | caption | Caption of image
| String | suggested |