模板:Infobox image/doc
外观
| 此页面是Template:Infobox image的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
模板介绍
[编辑源代码]这个模板使用和Template:Infobox相类似的外观来显示图片。当图片需要和信息框对齐时使用这一模板,包括{{Infobox}}、{{Infobox software}}、{{Infobox Windows component}}和{{Infobox website}}。
使用方法
[编辑源代码]- 语法
{{Infobox image
|name = <Image name>
|size = <Width>
|has border = <yes|no>
|caption = <Image caption>
}}
| 参数 | 说明 |
|---|---|
| name | 必填:图片的文件名(包括扩展名),不需要填写"File:"前缀或"Image:"前缀。 |
| size | 强烈建议: 图片宽度,以像素表示。 |
| has border | 可选:表示是否在图片周围使用亮边框,可以使用"yes"或"no"。默认为"no"。如果图片为透明背景则不要使用此参数。不要将此参数与信息框的黑边框相混淆。 |
| caption | 可选:写在图片下方的文字。 |
范例
[编辑源代码]参见
[编辑源代码]{{Infobox aviation}}– Very similar to this template{{Image}}{{File title}}{{Linked}}{{px}}