查看“︁模板:Wide image”︁的源代码
←
模板:Wide image
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<includeonly><div class="thumb {{#switch:{{{5}}} |left= tleft" style=" |right= tright" style=" |none= tnone" style=" |#default=tnone" style="margin-left: auto; margin-right:auto; overflow:hidden; }} width:{{{4|auto}}}; max-width:{{#ifeq:{{{border|}}}|no|{{#expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px}};"> {{#ifeq:{{{border|}}}|no||<div class="thumbinner">}}<div class="noresize overflowbugx" style="overflow:auto;{{#ifeq:{{{dir|}}}|rtl|direction:rtl;}}">[[File:{{{1}}}|{{{2}}}|{{#invoke:Unstrip|unstrip|{{#switch:{{{3}}} |thumb |thumbnail |frame |border={{{1}}} |#default={{#if:{{{3|}}}|{{#ifeq:{{{dir|}}}|rtl|‪}}{{{3|}}}{{#ifeq:{{{dir|}}}|rtl|‬}}|}}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}>{{#ifeq:{{{border|}}}|no||<div class="magnify">[[:File:{{{1}}}| ]]</div>}}{{{3}}}</div>|}} {{#ifeq:{{{border|}}}|no||</div>}}</div></includeonly> <noinclude>本模板让编辑者可以轻松的在条目中加入书画、全景图像。如果图像本身的宽度过长,会自动加入滚动条。<!-- 在本行下編輯模板說明 --> == 使用方式 == :<code><nowiki>{{</nowiki>Wide image|圖像檔名|圖像展示寬度|圖像說明|模板寬度|模板位置<nowiki>}}</nowiki></code> *<code>图像文件名</code>为必填,不需前缀<code><nowiki>File:</nowiki></code>。 *<code>图像展示宽度</code>为必填,内定单位为px,可省略单位。 *<code>图像说明</code>参数为选填,若填入图像说明则会自动加入缩图外框。如果图像说明中需要使用「等于符号」(=),请将使用 <code>|图像说明</code>替换成<code>|3=图像说明</code>。 *<code>模板宽度</code>参数为选填,如果数值单位是像素,请在后方加入「px」;若数值是百分比,请在最后加入「%」。 *<code>模板位置</code>参数也是选填,但要使用此参数时需同时指定「模板宽度」参数。可指定模板在页面上对齐的方向,数值可填入<code>right</code>或<code>left</code>。 *<code>辅助说明文字</code>是让视觉障碍的读者能了解图片内容的文字说明。 <pre> {{wide image|IMAGES.jpg|5000px| |alt=本图描绘了清明时节北宋京城汴梁及汴河两岸的热闹景象和自然风光。}} </pre> <templatedata>{ "description": "让编辑者可以轻松的在条目中加入书画、全景图像。如果图像本身的宽度过长,会自动加入滚动条。", "params": { "1": { "label": "图片名称", "description": "需要显示的图片", "type": "string", "required": true }, "2": { "label": "展示宽度", "description": "设置图像在页面显示的宽度,单位为px", "type": "string", "required": true }, "3": { "label": "图片说明", "description": "在图像下方显示的说明", "type": "string", "required": false }, "4" : { "label": "模板宽度", "description": "限制边框在页面显示的宽度,如:400px或40%", "type": "string", "required": false }, "5": { "label": "模板位置", "description": "可指定模板在页面上对齐的方向,数值可填入right、left或center,需同时指定“模板宽度”参数", "default": "center", "type": "string", "required": false }, "border" : { "label": "是否显示外框", "description": "使用no使外框非使能", "default": "yes", "type": "string", "required": false }, "dir" : { "label": "图像对齐方式", "description": "使用rtl使图像从右向左滚动", "default": "ltr", "type": "string", "required": false } } }</templatedata> </noinclude>
返回
模板:Wide image
。
导航菜单
个人工具
登录
命名空间
模板
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
工具
链入页面
相关更改
特殊页面
页面信息