模板:Multiple image
模板頁面
更多語言
更多操作
| 此模板使用Lua語言: |
本模板能生成一個包含垂直或水平排列多個圖片的畫框。
語法
{{multiple image|caption_align=center
<!-- 基本参数 -->
| align = <!-- 画框浮动位置:right (默认), left, center, none -->
| direction = <!-- 图片排列方向:horizontal (左右横向排列,默认), vertical (上下纵向排列) -->
| background color = <!-- 画框背景颜色 -->
<!-- 顶部标题 -->
| header_background =
| header_align = <!-- 文字浮动位置:center (默认), left, right -->
| header = <!-- 标题文字内容 -->
<!-- 图像相关 -->
| width = <!-- 图片统一宽度 (填数字即可,省略后缀" px "),这将会覆盖下方出现的"width[n]"参数 -->
<!-- image 1 -->
| image1 = <!-- 直接填文件名,省略前缀" File "或" image " -->
| width1 =
| alt1 =
| link1 =
| caption1 = <!-- 图片下方说明 -->
<!-- image 2 -->
| image2 = <!-- 填文件名即可,同上 -->
| width2 =
| alt =
| link2 =
| caption2 =
<!-- 以此类推,最多添加10个项目 (image10) -->
<!-- 底部文字 -->
| footer_background =
| footer_align = <!-- 文字浮动位置:left (默认), center, right -->
| footer = <!-- 底部文字内容 -->
}}
示例
{{multiple image
| align = center
| image1 = Aoiakaneai.png
| caption1 = A.I.VOICE 琴叶 茜・葵
| image2 = Kotonoha_AIV_English.png
| caption2 = A.I.VOICE Kotonoha Akane&Aoi English
| image3 = Kotonoha_KotonohaTalk_Chinese.png
| caption3 = Kotonoha Talk 中文琴叶 茜·葵
| heights = 300
}}
畫框靠左,圖片縱向排列
{{multiple image
| align = left
| direction = vertical
| image1 = ineko.jpg
| width = 90
| image2 = ineko2.jpg
| footer_align = center
| footer = ineko萌捏<br>{{ps|左图Illustrated by {{lj|薬屋}}}}
}}
使用background color
{{multiple image
| background color = #f5ebfa
| width = 160
| image1 = z03_yukari_jun_v4-724x1024.jpg
| caption1 = 纯
| image2 = z04_yukari_onn_v4-724x1024.jpg
| caption2 = 稳
| image3 = z05_yukari_lin_v4-734x1024.jpg
| caption3 = 凛
}}
使用連結 (link[n])
三張圖片的連結演示,第一張連結到紲星燈,第二張無連結,第三張連結到圖片預覽。
{{multiple image
| align = center
| width = 180
| image1 = Z17_akari_avi.jpg
| caption1 = A.I.VOICE绁星灯
| link1 = 绁星灯
| image2 = Z18_akari_tsubomi_aiv.jpg
| caption2 = A.I.VOICE绁星灯 蕾
| link2 =
| image3 = Z21_akari_sv.jpg
| caption3 = Seiren Voice绁星灯
| footer = 三张图片的链接演示,第一张链接到[[绁星灯]],第二张无链接,第三张链接到图片预览。
}}
多行
如要將圖片分置於多行,你可以使用perrow參數。
- 若填入一個數值,將會統一定義所有行內圖片的數量;
- 若使用
/隔開的多個數值,將會分別定義每一行的圖片數量。
統一定義所有圖片的高度,請使用total_width參數,並填入數字。
賽車未來
{{multiple image|perrow = 2|total_width=300
| image1 = Rmiku2025 02.jpg
| image2 = Rmiku2025 Rd.2.jpg
| image3 = Rmiku2025 04.jpg
| image4 = Rmiku2025 Rd.0.jpg
| footer = 赛车未来
}}
重新導向頁
參見
- {{Gallery}}
- {{Image frame}}
| ||||||||||||||||||||||||||||