微件:ExternalImage:修订间差异

(优化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>

2022年4月7日 (四) 00:11的最新版本

test