微件:ExternalImage:修订间差异

无编辑摘要
(优化Widget,并添加字符转义限制)
标签2017年版源代码编辑
第1行: 第1行:
<noinclude>{{#widget:ExternalImage|url=https://blog.azurezeng.com/wp-content/uploads/2021/10/cropped-deepseagirl.png|width=200px|height=200px|alt=test}}</noinclude>
<noinclude>{{#widget:ExternalImage|url=https://blog.azurezeng.com/wp-content/uploads/2021/10/cropped-deepseagirl.png|width=200px|height=200px|alt=test}}</noinclude>
<includeonly><img src="<!--{$url}-->" width="<!--{$width}-->" height="<!--{$height}-->" alt="<!--{$alt}-->"/></includeonly>
<includeonly><img src="<!--{$url|escape:'htmlall'}-->"
<!--{if isset($width) and width!=''}-->width="<!--{$width|escape:'htmlall'}-->"<!--{/if}-->
<!--{if isset($height) and height!=''}-->height="<!--{$height|escape:'htmlall'}-->"<!--{/if}--> alt="<!--{$alt|escape:'htmlall'}-->"/></includeonly>

2022年4月6日 (三) 23:52的版本

test