Template:Multiple image

维基百科,自由的百科全书
(重定向自Template:并列图像
跳转至: 导航搜索
Documentation icon 模板文档[查看] [编辑] [页面历史] [清除]

本模板使用之后能生成横排图像矩形阵列或者竖排图像矩形阵列。

说明

这是一个用于新版可视化编辑器模板数据文档。

Multiple image

  • 本模板主要“代码”都容易理解,“left”是“左”(显示居左),“right”是“右”(显示居右);“center”是“中间”(显示居中)。“horizontal”表示图像矩形阵列“横向显示”;“vertical”表示图像矩形阵列“垂直显示”。

详细使用方法请参加下面的“示例”。


{{multiple image
<!-- Essential parameters -->
| align     = <!-- left/right/center/none --> 
| direction = <!-- horizontal/vertical -->
| width     = <!-- integer width in pixels; no "px" suffix -->

<!-- Image 1 -->
| image1    = <!-- file name only; no "File:" or "Image:" prefix -->
| width1    = 
| alt1      = 
| caption1  = 

<!-- Image 2 -->
| image2    = <!-- file name only; no "File:" or "Image:" prefix -->
| width2    = 
| alt2      = 
| caption2  = 

<!-- Image 3 -->
| image3    = <!-- file name only; no "File:" or "Image:" prefix -->
| width3    = 
| alt3      = 
| caption3  =

<!-- up to |image10 is accepted -->

<!-- Extra parameters -->
| header            = 
| header_align      = <!-- left/right/center -->
| header_background = 
| footer            = 
| footer_align      = <!-- left/right/center -->
| footer_background = 
| background color  = 
}}

示例

黄色椭圆形轮廓
红色椭圆形轮廓
Players are cautioned with a yellow card and sent off with a red card.
{{multiple image
| footer    = Players are cautioned with a yellow card and sent off with a red card.
| width     = 60

| image1    = Yellow card.svg
| alt1      = 黄色椭圆形轮廓

| image2    = Red card.svg
| alt2      = 红色椭圆形轮廓
}}
PNG透明度示范
彩色骰子加白色背景
具有8位透明的PNG图像层
彩色骰子加方格背景
这里覆盖到的背景。
{{multiple image
| align     = left
| direction = vertical
| header    = [[PNG]]透明度示范
| width     = 200

| image1    = PNG transparency demonstration 1.png
| alt1      = 彩色骰子加白色背景
| caption1  = 具有8位透明的PNG图像层

| image2    = PNG transparency demonstration 2.png
| alt2      = 彩色骰子加方格背景
| caption2  = 这里覆盖到的背景。
}}

使用背景色的示例

{{multiple image
| image1=Adoxa_moschatellina_210406.jpg
| alt1=绿草和一些微小的黄白色花

| image2=Adoxa_moschatellina_210406a.jpg
| alt2=三个绿色背景之前白色和黄色的花

| image3=adoxa_moschatellina_blatt.jpeg
| alt3= 叶子植物。三张图像一组。

| footer=[[五福花]]
| footer_background=#BBDD99
| background color=#BBDD99
| footer_align=center
| width=160
}}

具有链接的示例

A mule
A mule
骡子, luózi
A donkey
A donkey
驴子, lǘzi
A trout
A fish
,
The mule links to Mule, the donkey does not link anywhere, and the trout links to its image description page as usual.
{{multiple image
| footer    = The mule links to ''[[Mule]]'', the donkey does not link anywhere, and the trout links to its image description page as usual.
| align     = left

| image1    = Frecklesmule.jpg
| width1    = 143
| alt1      = A mule
| caption1  = <center>A mule<br />骡子, ''luózi''</center>
| link1     = Mule

| image2    = Donkey 1 arp 750px.jpg
| width2    = 150
| alt2      = A donkey
| caption2  = <center>A donkey<br />驴子, lǘzi</center>
| link2     =

| image3    = Rainbow_trout.png
| width3    = 91
| alt3      = A trout
| caption3  = <center>A fish<br />
{{lang|zh|2=鱼}}, ''yú''</center>
}}

竖排和横排图像分别展示的示例

{{multiple image
| align     = left
| direction = vertical
| header    = vertical
| width     = 150
| image1    = 洛阳牡丹.jpg
| image2    = Fleur de lotus.jpg
| image3    = Plum flower 1.JPG
}}
{{multiple image
| align     = right
| direction = horizontal
| header    = horizontal
| width     = 150
| image1    = 洛阳牡丹.jpg
| image2    = Fleur de lotus.jpg
| image3    = Plum flower 1.JPG
}}
vertical
horizontal

参见