Template:Double image stack

维基百科,自由的百科全书
跳到导航 跳到搜索

{{Double image stack|left/right/center|Top image|Bottom images|Size|Caption|[Bottom caption]|Top alt text|Bottom alt text}}

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

{{Double image stack}} creates a box with two images stacked on top of each other. It needs parameters like this:

{{Double image stack|left/right/center|Top image|Bottom images|Size|Caption|[Bottom caption]|Top alt text|Bottom alt text}}

See WP:ALT for advice about alt text.

Examples[编辑]

To the left, with one single caption:

{{Double image stack|left|PNG transparency demonstration 1.png|PNG transparency demonstration 2.png|200|A PNG image with an 8-bit transparency layer (top), overlaid onto a checkered background (bottom).||Three colored dice over a white background|Three colored dice over a checkered background}}

To the right. With two captions, one beneath each image:

{{Double image stack|right|PNG transparency demonstration 1.png|PNG transparency demonstration 2.png|200|A PNG image with an 8-bit transparency layer...|...here overlaid onto a checkered background.|Three colored dice over a white background|Three colored dice over a checkered background}}
Three colored dice over a white background
 
Three colored dice over a checkered background
A PNG image with an 8-bit transparency layer (top), overlaid onto a checkered background (bottom).
Three colored dice over a white background
A PNG image with an 8-bit transparency layer...
 
Three colored dice over a checkered background
...here overlaid onto a checkered background.

See also[编辑]