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

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

微件:SideBarPic:修订间差异

舰R百科,玩家自由编辑的战舰少女R百科
无编辑摘要
无编辑摘要
 
(未显示同一用户的19个中间版本)
第1行: 第1行:
<noinclude>用法</noinclude><includeonly><script>!function(url, width, height){
<noinclude>用来替换侧边栏底图,用法:<code><nowiki>{{#widget:SideBarPic|url=链接|width=宽度(默认auto)|height=高度(默认auto)}}</nowiki></code>
   console.log(url, width, height);//$('#mw-navigation').append($._$.toAppend);
 
}("<!--{$url|escape:'html'}-->", "<!--{$width|escape:'html'}-->", "<!--{$height|escape:'html'}-->")</script></includeonly>
作者: [[User:Imfrankliu]]
 
协议: 双重。CC BY-NC-SA 与 CC BY-ND</noinclude>
<includeonly>
<script>
window.RLQ = window.RLQ || [];
window.RLQ.push(function(){
   url = "<!--{$url|escape:'html'}-->";
  width = "<!--{$width|escape:'html'|default:auto}-->";
  height = "<!--{$height|escape:'html'|default:auto}-->";
  toAppend = '<img src="' + url + '" style="z-index: -1; position: fixed; bottom: 0; left: 0; width: ' + width + 'px; height: ' + height + 'px;" />';
  $('#mw-navigation').append(toAppend);
});
</script>
</includeonly>