Template:Image frame
Jump to navigation
Jump to search
Template data
Render an image cropped into a frame of arbitrary shape.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | 1 image | The image file to display. | File | required |
Height | height | The height of the image in pixels (does not include any additional height from the border size).
| Number | suggested |
Width | width | The width of the image in pixels (does not include any additional width from the border size).
| Number | optional |
Border shape | border-shape | The shape of the border frame. It can be an arbitrary CSS clip path or use one of the predefined values.
| String | suggested |
Border color | border-color | The color of the border frame. This can be any CSS color descriptor.
| String | optional |
Border width | border-width | The thickness of the border frame in pixels.
| Number | optional |
Examples
Markup | Renders as |
---|---|
{{User:NtCarlson/Template:Foo | image = Portrait Lae'zel.png | width = 120 | border-shape = diamond | border-width = 4 }} | |
{{User:NtCarlson/Template:Foo | image = Portrait Lae'zel.png | height = 120 | border-shape = rounded | border-width = 2 | border-color = red }} | |
{{User:NtCarlson/Template:Foo | image = Portrait Lae'zel.png | height = 120 | border-shape = polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); | border-width = 2 | border-color = #3d3d3d }} |