打开/关闭菜单
1680
2.2万
6524
11.7万
舰R百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

舰R百科是靠无数志愿编辑者持续地建设更新完善的。编辑非常简单,无需代码知识,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

微件:ImgTag:修订间差异

舰R百科,玩家自由编辑的战舰少女R百科
无编辑摘要
标签手工回退
无编辑摘要
第1行: 第1行:
<noinclude>
这个微件是<nowiki><img></nowiki>的微件实现,用来兼容百科上现存的外链图片。绝大部分情况下,不建议使用这个微件,而是把图片上传到百科然后使用wikitext引用图片。
使用:
<code><nowiki>
{{#widget:ImgTab|url=链接|width=宽度(默认auto)|height=高度(默认auto)}}
</nowiki></code>
所有可用参数:
* src
* alt
* width
* height
* style
* loading
* decoding
* fetchpriority
* sizes
* srcset
* crossorigin
* referrerpolicy
</noinclude>
<includeonly>
<includeonly>
<img
<img
第8行: 第31行:
     <!--{if !empty($width)}-->width="<!--{$width|escape:'html'}-->"<!--{/if}-->
     <!--{if !empty($width)}-->width="<!--{$width|escape:'html'}-->"<!--{/if}-->
     <!--{if !empty($height)}-->height="<!--{$height|escape:'html'}-->"<!--{/if}-->
     <!--{if !empty($height)}-->height="<!--{$height|escape:'html'}-->"<!--{/if}-->
    <!--{if !empty($style)}-->style="<!--{$style|escape:'html'}-->"<!--{/if}-->
      
      
     <!--{* Loading behavior *}-->
     <!--{* Loading behavior *}-->