Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Stacked image

From Wikipedia, the free encyclopedia
Caption goes here.
Caption goes here.
Caption goes here.
Caption goes here.
image ·labels
Template documentation[view] [edit] [history] [purge]

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}}
  • When using the shorthand version, keep in mind that the order of parameters is important
ParameterDefaultAcceptable values
bottom imagemandatoryany image filename ("File:" or"Image:" is optional)
top imagemandatoryany image filename ("File:" or"Image:" is optional)
width300pxany pixel width ("px" suffix optional)
caption(Sets the alt text)
top5pxany pixel value ("px" suffix optional). It sets the absolute position for theimage ·labels link set.
left5pxany pixel value ("px" suffix optional). It sets the absolute position for theimage ·labels link set.
link colorDefault link colorany css color. It sets the color of theimage ·labels link set.

See also

[edit]
The abovedocumentation istranscluded fromTemplate:Stacked image/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Stacked_image&oldid=1090104705"
Category:

[8]ページ先頭

©2009-2026 Movatter.jp