“Widget:Bgimage”的版本间差异

添加26字节 、​ 2020年7月29日 (三) 11:25
无编辑摘要
(待测试)
 
<includeonly><!--{if !isset($wgBgimage) || !$wgBgimage}--><!--{assign var="wgBgimage" value=true scope="global"}--><script>
$(.bgimage).append("img").attr("src", $(ele).dataset.url);
$(.bgimage).each((_, ele) => {
const self = $(ele);
$(ele).appendTo("html > body > #content + #mw-navigation");
$(.bgimage) self.append("img").attr("src", $(ele)self.dataset.url);
$(ele)self.appendTo("html > body > #content + #mw-navigation");
});
</script></style>
16,874

个编辑