Template:Image frame/doc

本页使用了标题或全文手工转换
维基百科,自由的百科全书

概要[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

Image frame模板数据

本模板可以给图像加上一个外框,可以给多个图像套上一个框,也可以用来包装 {{superimpose}} 等模板。
{{Image frame|width=|content=|caption=|link=|align=|pos=|mode=|max-width=|dir=}}

页面Template:TOC nonum/styles.css没有内容。

模板参数

对齐方式align
left 和 right 决定图像在哪一侧,center 使图像居中,none 不做任何设置。
默认值
right
宽度width
外框宽度,只须输入数字,单位 px
默认值
自动
标题的位置pos
决定在哪放置标题,可输入:top、bottom
默认值
bottom
框中样式innerstyle
输入 CSS 样式,如 text-align: center;background: #ccc;
内容content
置于文中的内容,一般为图像
边框border
用于内容(一般为图像)的边框
默认值
yes
链接替换linkoverride
输入另一种形式的链接
标题caption
模式mode
内容的显现模式,输入 scrollable 将会生成滚动条。
最大宽度max-width
内容的最大宽度,只须输入数字,单位 px,只在滚动模式下有效。
默认值
100%
方向dir
内容的滚动方向,输入 rtl 将会从右向左滚动。

範例[编辑]

{{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:White Stars 3.svg|100px]]
|caption=範例|link=Hello world|align=center}}
範例
{{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:White Stars 3.svg|100px]]
|caption=範例|link=Hello world|align=center|pos=top}}
範例

參見[编辑]