Template:Infobox file display
![]() Example caption |
概要
编辑此模板用于为Module:Excerpt/portals等模块以{{Infobox}}系列模板相同的方式显示文件。
如果使用者没有提供图像描述,图像将在|thumb
的缩略图模式下显示以提醒使用者。否则,图像将以infobox格式显示,以便在图像描述中显示子弹列表等更多维基文本。
即使没有图像描述,你也可以使用|force=y
来强制图片以infobox格式显示。
你可以使用|left=y
使其靠左显示。
示例
编辑{{Infobox file display|Example.jpg}}
![](http://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg)
{{Infobox file display|Example.jpg|Example caption}}
![]() Example caption |
{{Infobox file display|Example.jpg{{!}}150px|force=y}}
![]() |
{{Infobox file display|Example.jpg|Example caption|left=y}}
![]() Example caption |
上述文档嵌入自Template:Infobox file display/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |