模板:ExternalImage:修订间差异
来自【VOCAKEY.WIKI】VOCAKEY愿你唱出心中的歌
更多操作
MuratBeysss(留言 | 贡献) 创建页面,内容为“<includeonly><div class="thumb tright"> <div class="thumbinner" style="width: {{{width|220}}}px;"> <div style="width: {{{width|220}}}px; height: {{{height|auto}}}; overflow: auto; line-height: 0;"> {{{url}}} </div> <div class="thumbcaption" style="text-align: left;"> <div style="font-weight: bold;">{{{title|}}}</div> <div>{{{description|}}}</div> </div> </div> </div></includeonly><noinclude> <templatedata> { "params": { "url": { "required": true, "des…” |
MuratBeysss(留言 | 贡献) 长宽默认改为auto 即图片默认大小 只有为width和height赋值才会限制图片大小 |
||
| (未显示同一用户的3个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly><div class="thumb | <includeonly><div class="thumb" style="float: none; display: block; clear: both; margin-bottom: 10px;"> | ||
<div class="thumbinner" style="width: {{{width| | <div class="thumbinner" style="width: {{{width|auto}}}px;"> | ||
<div style="width: | <div style="width: 100%; height: {{{height|auto}}}px; overflow: auto; line-height: 0;"> | ||
{{{url}}} | {{{url}}} | ||
</div> | </div> | ||
</div> | </div> | ||
| 第18行: | 第14行: | ||
"description": "图片链接", | "description": "图片链接", | ||
"type": "url" | "type": "url" | ||
}, | }, | ||
"width": { | "width": { | ||
"description": "限制宽度", | "description": "限制宽度", | ||
"type": "number" | "type": "number", | ||
"default": "220" | |||
}, | }, | ||
"height": { | "height": { | ||
"description": "限制高度", | "description": "限制高度", | ||
"type": "number" | "type": "number", | ||
"default": "500" | |||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"url", | "url", | ||
"width", | "width", | ||
"height" | "height" | ||
], | ], | ||
"description": " | "description": "ExternalImage 模板 方便可视化编辑器添加图片", | ||
"format": "block" | "format": "block" | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
==Example== | |||
文本文本文本 | |||
{{ExternalImage | |||
| url = https://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Hatsune_miku_logo_v3.svg/960px-Hatsune_miku_logo_v3.svg.png | |||
| width = 500 | |||
| height = 250 | |||
| wrap = yes | |||
}} | |||
文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本 | |||
文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本 | |||
</noinclude> | |||
2025年12月23日 (二) 12:38的最新版本
ExternalImage 模板 方便可视化编辑器添加图片
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| url | url | 图片链接 | URL | 必需 |
| width | width | 限制宽度
| 数字 | 可选 |
| height | height | 限制高度
| 数字 | 可选 |
Example
文本文本文本
文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本 文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本