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

微件:SideBarPic:修订间差异

舰R百科,玩家自由编辑的战舰少女R百科
跳转到导航 跳转到搜索
Adpex留言 | 贡献
创建页面,内容为“<noinclude>用来给{{tl|替换侧边栏底图}}更好的体验效果的,作者User:AnnAngela,详细地址:https://zh.moegirl.org/Widget:SideBarPic</noincl...”
 
无编辑摘要
 
(未显示2个用户的22个中间版本)
第1行: 第1行:
<noinclude>用来给{{tl|替换侧边栏底图}}更好的体验效果的,作者[[User:AnnAngela]],详细地址:https://zh.moegirl.org/Widget:SideBarPic</noinclude><includeonly><!--{if !isset($wgSideBarPic) || !$wgSideBarPic}--><!--{assign var="wgSideBarPic" value=true scope="global"}--><script>
<noinclude>用来替换侧边栏底图,用法:<code><nowiki>{{#widget:SideBarPic|url=链接|width=宽度(默认auto)|height=高度(默认auto)}}</nowiki></code>
window.RLQ = window.RLQ || [];
window.RLQ.push(function() {
    mw.loader.implement('widgetSideBarPic', function () {
        $("body").addClass("sideBarPic");
        $(window).bind('load', function(){
            $("#sidebar-character").appendTo("#mw-navigation").fadeIn().css('user-select', 'none');
        });
    });
});</script><style>.sideBarPic.skin-vector #mw-panel {
    background-color: rgba(246, 246, 246, 0.73);
    padding-right: 8px;
    /*padding-top: 0;
    top: 212px*/
}


.sideBarPic.skin-vector #mw-panel div#p-logo {
作者: [[User:Imfrankliu]]
    /*background: rgba(246, 246, 246, 0.73);
    left: 0;
    padding: 0 .5em;
    top: -212px*/
}


.sideBarPic #sidebar-character {
协议: 双重。CC BY-NC-SA 与 CC BY-ND</noinclude>
    display: none;
<includeonly>
}
<script>
</style>
window.RLQ = window.RLQ || [];
<!--{/if}--></includeonly>
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>

2016年7月6日 (三) 18:57的最新版本

用来替换侧边栏底图,用法:{{#widget:SideBarPic|url=链接|width=宽度(默认auto)|height=高度(默认auto)}}

作者: User:Imfrankliu

协议: 双重。CC BY-NC-SA 与 CC BY-ND