• 首页
  • 随机
  • 最近更改
  • 特殊页面
  • 社群首页
  • 设置
  • 关于戏曲百科
  • 免责声明
戏曲百科
  • 登录

模板:Multiple image

  • 监视
  • 查看源代码
    • 链入页面
    • 固定链接
    • 页面信息
模板文档[查看] [编辑] [历史] [清除缓存]

模板:Redirect-distinguish 模板:Template shortcut

Warning此Template被引用於約5,900個頁面。
為了避免造成大規模的影響,所有對此Template的編輯應先於沙盒、測試樣例或您的-{zh-hant:使用者頁面;zh-hans:用户页}-上測試。
測試後無誤的版本可以一次性地加入此Template中,但是修改前請務必於討論頁發起討論。
模板引用數量會自動更新。
🪧此模板使用Lua语言:
  • Module:Multiple image

模板:模板样式

本模板可生成一个垂直或水平排列多张图片的框。

目录

  • 1 語法
  • 2 範例
    • 2.1 使用background color
    • 2.2 使用連結 (link[n])
    • 2.3 多行
  • 3 参见

語法

{{multiple image
<!-- Essential parameters -->
 | align             = <!-- left, center, right (default), none --> 
 | direction         = <!-- horizontal (default), vertical -->
 | background color  = <!-- box background -->

<!-- Header -->
 | header_background = 
 | header_align      = <!-- left, center (default), right -->
 | header            = 

<!-- Images -->
 | width             = <!-- image width in pixels (an integer, omit "px" suffix); overrides "width[n]"s below -->
 | caption_align     = <!-- left (default), center, right -->
<!--image 1-->
 | image1            = <!-- filename only, i.e. without "File:" or "Image:" prefix -->
 | width1            = 
 | alt1              = 
 | link1             = 
 | caption1          = 
<!--image 2-->
 | image2            = <!-- filename only, i.e. without "File:" or "Image:" prefix -->
 | width2            = 
 | alt2              = 
 | link2             = 
 | caption2          = 
<!-- and so on, to a maximum of 10 images (image10) -->

<!-- Footer -->
 | footer_background = 
 | footer_align      = <!-- left (default), center, right -->
 | footer            = 
}}

範例

黃色橢圓形邊緣
紅色橢圓形邊緣
Players are cautioned with a yellow card and sent off with a red card.
{{multiple image
 | width = 60
 | image1 = Yellow card.svg
 | alt1 = 黃色橢圓形邊緣
 | image2 = Red card.svg
 | alt2 = 紅色橢圓形邊緣
 | footer = Players are cautioned with a yellow card and sent off with a red card.
}}
PNG 透明度示範
彩色骰子加白色背景
具有8位透明度圖層的PNG圖像...
彩色骰子加方格背景
...這裡覆蓋一個方格的背景。
{{multiple image
 | align = left
 | direction = vertical
 | width = 200
 | header = [[Portable Network Graphics|PNG]] 透明度示範
 | image1 = PNG transparency demonstration 1.png
 | alt1 = 彩色骰子加白色背景
 | caption1 = 具有8位透明度圖層的PNG圖像...
 | image2 = PNG transparency demonstration 2.png
 | alt2 = 彩色骰子加方格背景
 | caption2 = ...這裡覆蓋一個方格的背景。
}}

使用background color

綠草與一些小的黃白色花
在綠色葉子背景前的三朵小白色和黃色的花
一棵植物的葉,每組有三個,每個有三塊葉
Adoxa(五福花)

<syntaxhighlight lang="moin" style="overflow:auto;">

綠草與一些小黃白色的花
在綠色葉子背景前的三朵小白色和黃色的花
一棵植物的葉,每組有三個,每個有三塊葉
Adoxa(五福花)

</syntaxhighlight>

使用連結 (link[n])

A mule
A mule
(骡子 luózi)
A donkey
A donkey
(驴子 lǘzi)
A trout
A fish
(鱼 yú)
The image of the mule links to Mule; the image of the donkey does not link anywhere; the image of the trout links to a standard image description page.

模板:Clear left <syntaxhighlight lang="moin" style="overflow:auto;">

A mule
A mule
(骡子 luózi)
A donkey
A donkey
(驴子 lǘzi)
A trout
A fish
(鱼 yú)
The image of the mule links to Mule; the image of the donkey does not link anywhere; the image of the trout links to a standard image description page.
</syntaxhighlight>

多行

To create an array of images, with multiple rows, use |perrow=. The value passed to |perrow= may be a single number, or a list of numbers delimited by /. This feature may also be combined with |total_width= for multiple rows of images with the same total width.

文件:Kern Theodolit DKM2-A.jpg
文件:Total-Robotic-Station.jpg
文件:DumpyLevel.jpg
文件:GPS Survey Equipment at Weir Dyke Bridge - geograph.org.uk - 336908.jpg
Surveying Equipment. Clockwise from upper left: Optical Theodolite, Robotic total station, Optical level, RTK GPS Base station.
{{multiple image|perrow = 2|total_width=300
| image1 = Kern_Theodolit_DKM2-A.jpg  |width1=319|height1=425
| image2 = Total-Robotic-Station.jpg  |width2=1728|height2=3072
| image3 = DumpyLevel.jpg  |width3=1600|height3=1200
| image4 = GPS_Survey_Equipment_at_Weir_Dyke_Bridge_-_geograph.org.uk_-_336908.jpg|width4=427|height4=640
| footer = Surveying Equipment. Clockwise from upper left: Optical Theodolite, Robotic total station, Optical level, [[Real-time kinematic | RTK]] GPS Base station.
}}

参见

  • {{Gallery}}
  • {{Image array}}
  • {{Image frame}}
  • {{Photomontage}}
上述文档嵌入自模板:Multiple image/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。
检索自“https://wiki66.com/index.php?title=模板:Multiple_image&oldid=47034”
分类:​
  • 含有受损文件链接的页面
  • 放置于模板的noteTA
  • Lua模板
  • 使用多个图像且手动缩放的页面
  • 圖像維護模板
最后编辑于2021年6月18日 (星期五) 16:24

语言

    此页面在其他语言不可用。

    戏曲百科
    • 本页面最后编辑于2021年6月18日 (星期五) 16:24。
    • 错误反馈
    • 关于戏曲百科
    • 免责声明
    • 豫ICP备13003402号-1
    • 桌面版