For faster navigation, this Iframe is preloading the Wikiwand page for
模板:Scalable image/doc .
概要
本模板让编者可以的在条目中加入大型图像。如果图像本身的宽度过长,会自动缩小。
使用方式
((Scalable image|图像档名|图像展示宽度|图像说明|模板宽度|模板位置|alt=辅助说明文字|frame=是否需要外框))
圖像檔名
为必填,不需前缀File:
。
圖像展示寬度
为必填,内定单位为px,可省略单位。
圖像說明
参数为选填,若填入图像说明则会自动加入缩图外框。如果图像说明中需要使用“等于符号”(=),请将使用 |圖像說明
替换成|3=圖像說明
。
模板寬度
参数为选填,如果数值单位是像素,请在后方加入“px”;若数值是百分比,请在最后加入“%”。
模板位置
参数也是选填,但要使用此参数时需同时指定“模板宽度”参数。可指定模板在页面上对齐的方向,数值可填入right
或left
。
輔助說明文字
是让视觉障碍的读者能了解图片内容的文字说明,请参考维基百科:图像的替代文字 。
是否需要外框
决定图像是否加上缩图外框,如果你不想加,可填入no
。
示例
无图像说明
((scalable image|Dew on grass Luc Viatour.jpg|2500px|
|alt=草上的露珠))
较小版本
((scalable image|Dew on grass Luc Viatour.jpg|500px|
|alt=草上的露珠))
有图像说明
((scalable image|Dew on grass Luc Viatour.jpg|2500px|草上的露珠
|alt=草上的露珠))
模板数据
模板参数
参数 描述 类型 状态 图像档名 1
需要显示的图片
字符串 必需 图像展示宽度 2
设置图像在页面显示的宽度,单位为px
字符串 必需 图像说明 3
在图像下方显示的说明
字符串 可选 模板宽度 4
限制边框在页面显示的宽度,如:400px或40%
字符串 可选 模板位置 5
align
可指定模板在页面上对齐的方向,数值可填入right、left、center或none
默认值 center 字符串 可选 辅助说明文字 alt
让视觉障碍的读者能了解图片内容的文字说明,详见WP:ALT
字符串 可选 是否显示外框 frame
使用no使外框不显示
默认值 yes 字符串 可选 是否显示提示 tooltip
使用no使图像提示不显示
默认值 yes 字符串 可选
{{bottomLinkPreText}}
{{bottomLinkText}}
This page is based on a Wikipedia article written by
contributors (read /edit ).
Text is available under the
CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.
{{current.index+1}} of {{items.length}}
Thanks for reporting this video!
This browser is not supported by Wikiwand :( Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience. Please download and use one of the following browsers:
An extension you use may be preventing Wikiwand articles from loading properly.
If you're using HTTPS Everywhere or you're unable to access any article on Wikiwand, please consider switching to HTTPS (https ://www.wikiwand.com).
An extension you use may be preventing Wikiwand articles from loading properly.
If you are using an Ad-Blocker , it might have mistakenly blocked our content.
You will need to temporarily disable your Ad-blocker to view this page.
✕
This article was just edited, click to reload
Please click Add in the dialog above
Please click Allow in the top-left corner, then click Install Now in the dialog
Please click Open in the download dialog, then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list, then click Install
{{::$root.activation.text}}
Follow Us
Don't forget to rate us
Oh no, there's been an error
Please help us solve this error by emailing us at
support@wikiwand.com
Let us know what you've done that caused this error, what browser you're using, and whether you have any special extensions/add-ons installed.
Thank you!