微件:SideBarPic:修订间差异
跳转到导航
跳转到搜索
Imfrankliu(留言 | 贡献) 无编辑摘要 |
Imfrankliu(留言 | 贡献) 无编辑摘要 |
||
| (未显示同一用户的7个中间版本) | |||
| 第1行: | 第1行: | ||
<noinclude> | <noinclude>用来替换侧边栏底图,用法:<code><nowiki>{{#widget:SideBarPic|url=链接|width=宽度(默认auto)|height=高度(默认auto)}}</nowiki></code> | ||
作者: [[User:Imfrankliu]] | |||
协议: 双重。CC BY-NC-SA 与 CC BY-ND</noinclude> | |||
<includeonly> | <includeonly> | ||
<script> | <script> | ||
window.RLQ = window.RLQ || []; | |||
url = "<!--{$url|escape:' | window.RLQ.push(function(){ | ||
url = "<!--{$url|escape:'html'}-->"; | |||
width = "<!--{$width|escape:'html'|default:auto}-->"; | width = "<!--{$width|escape:'html'|default:auto}-->"; | ||
height = "<!--{$height|escape:'html'|default:auto}-->"; | height = "<!--{$height|escape:'html'|default:auto}-->"; | ||
toAppend = '<img src="' + url + '" style="position: fixed; bottom: 0; left: 0; width: ' + width + 'px; height: ' + height + 'px;" />'; | toAppend = '<img src="' + url + '" style="z-index: -1; position: fixed; bottom: 0; left: 0; width: ' + width + 'px; height: ' + height + 'px;" />'; | ||
$('#mw-navigation').append(toAppend); | $('#mw-navigation').append(toAppend); | ||
}); | }); | ||
</script> | </script> | ||
</includeonly> | </includeonly> | ||
2016年7月6日 (三) 18:57的最新版本
用来替换侧边栏底图,用法:{{#widget:SideBarPic|url=链接|width=宽度(默认auto)|height=高度(默认auto)}}
作者: User:Imfrankliu
协议: 双重。CC BY-NC-SA 与 CC BY-ND