跳转到内容

微件:ExternalImage:修订间差异

添加2字节 、​ 2022年4月7日 (星期四)
修正变量调用
(优化Widget,并添加字符转义限制)
标签2017版源代码编辑
(修正变量调用)
标签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|escape:'htmlall'}-->"
<includeonly><img src="<!--{$url|escape:'htmlall'}-->"
<!--{if isset($width) and width!=''}-->width="<!--{$width|escape:'htmlall'}-->"<!--{/if}-->
<!--{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>
<!--{if isset($height) and $height!=''}-->height="<!--{$height|escape:'htmlall'}-->"<!--{/if}--> alt="<!--{$alt|escape:'htmlall'}-->"/></includeonly>