Template:Stacked image
Tools
Actions
General
Print/export
In other projects
This template provides a way to stack two images. This is useful for adding SVG labels to a PNG or JPG bitmap background. This template does not include right/left/center positioning parameters—it's meant to be used in conjunction with{{plain image}} nested under itsimage override= parameter. The size of both images must be the same.
This template can be either with named parameters, as in
{{Stacked image|bottom image=Example.png|top image=Example.svg|width=300px|caption=Example text|top=5px|left=5px|link color=#fff}}or in its shorthand form:
{{Stacked image|Example.png|Example.svg|300px|Example text|5px|5px|#fff}}| Parameter | Default | Acceptable values |
| bottom image | mandatory | any image filename ("File:" or"Image:" is optional) |
| top image | mandatory | any image filename ("File:" or"Image:" is optional) |
| width | 300px | any pixel width ("px" suffix optional) |
| caption | (Sets the alt text) | |
| top | 5px | any pixel value ("px" suffix optional). It sets the absolute position for theimage ·labels link set. |
| left | 5px | any pixel value ("px" suffix optional). It sets the absolute position for theimage ·labels link set. |
| link color | Default link color | any css color. It sets the color of theimage ·labels link set. |