- 欢迎来到THBWiki!如果您是第一次来到这里,请点击右上角注册一个帐户
- 有任何意见、建议、求助、反馈都可以在 讨论板 提出
- THBWiki以专业性和准确性为目标,如果你发现了任何确定的错误或疏漏,可在登录后直接进行改正
模板:并列图像/doc
< 模板:并列图像
跳到导航
跳到搜索
本模板用于将二至六张图片并列(横向或纵向)显示在一个框内。您可替所有图片输入一个说明,或为每张图片输入独立说明。
{{并列图像}}
用法
- 参数解说
- align:图片框的对齐方式(left/right/center),默认值为「置中对齐」(center)
- direction:图片的排列方式(horizontal/vertical),默认值为「横向」(horizontal)
- header_align:图片框标题的对齐方式(left/right/center),默认值为「置中对齐」(center)
- footer_align:图片框框底的对齐方式(left/right/center),默认值为「靠左对齐」(left)
- image1、image2等:显示的图片名称(不需输入File:或Image:)
- width1、width2等:图片宽度,以像素(px)为单位
- alt1、alt2等:图片不能显示时的替换文字
- caption1、caption2等:图片的独立说明
- width:所有图片的宽度,使用后将自动取代width1、width2等值。如欲为每张图片设定不同的宽度,请不要使用此参数。
- header(标题)、footer(框底)及各图片的caption均是选填参数。
引用本模板时,请复制以下空白模板:
{{并列图像 | align = left/right/center | direction = horizontal/vertical | header = | header_align = left/right/center | header_background = | footer = | footer_align = left/right/center | footer_background = | width = | image1 = | width1 = | alt1 = | caption1 = | image2 = | width2 = | alt2 = | caption2 = | image3 = | width3 = | alt3 = | caption3 = | image4 = | width4 = | alt4 = | caption4 = | image5 = | width5 = | alt5 = | caption5 = | image6 = | width6 = | alt6 = | caption6 = | image7 = | width7 = | alt7 = | caption7 = | image8 = | width8 = | alt8 = | caption8 = | image9 = | width9 = | alt9 = | caption9 = | image10 = | width10 = | alt10 = | caption10 = }}
范例
{{并列图像 | footer = Players are cautioned with a yellow card and sent off with a red card. | width = 60 | image1 = Yellow card.svg | alt1 = Yellow cartouche | image2 = Red card.svg | alt2 = Red cartouche }}
{{并列图像 | align = left | direction = vertical | header = [[PNG]] transparency demonstration | width = 200 | image1 = PNG transparency demonstration 1.png | alt1 = Colored dice with white background | caption1 = A PNG image with an 8-bit transparency layer... | image2 = PNG transparency demonstration 2.png | alt2 = Colored dice with checkered background | caption2 = ...here overlaid onto a checkered background. }}
{{并列图像 | footer = When a user has many of one type of [[WP:BARN|barnstar]], they can represent them with [[WP:RIBBON|ribbons]] and these numerals to indicate the count. | width = 60 | image1 = Ribbon numeral 2.png | alt1 = 2 | image2 = Ribbon numeral 3.png | alt2 = 3 | image3 = Ribbon numeral 4.png | alt3 = 4 }}
繁简转换
- 示例:
-{{{并列图像 | align = center | direction = horizontal | image1 = 二里头一号宫殿平面图 zh hans.png | width1 = 100 | caption1 = 示意图(简体)}}}-
参见
- {{纵列图像}}
[创建] 模板文档