MediaWiki:Common.js:修订间差异
MediaWiki界面页面
更多操作
创建页面,内容为“$(function() { var footerHtml = '<table style="width:100%; margin-top:20px;"><tr>' + '<td style="text-align:left;"><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></td>' + '<td style="text-align:right;"><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></td>' + '</tr></table>'; $('#footer, #mw-footer, .footer').after(footerHtml); });” |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
mw.hook('wikipage.content').add(function() { | |||
var footerHtml = '< | var footerHtml = '<div style="width:100%; margin-top:20px; display:flex; justify-content:space-between;">' + | ||
'< | '<div><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></div>' + | ||
'< | '<div><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></div>' + | ||
'</ | '</div>'; | ||
$('#footer, #mw-footer, .footer').after(footerHtml); | |||
var $footer = $('#footer, #mw-footer, .footer, #footer-places, .mw-footer'); | |||
if ($footer.length) { | |||
$footer.after(footerHtml); | |||
} else { | |||
$('#content, #mw-content-text, .mw-body').append(footerHtml); | |||
} | |||
}); | }); | ||
2026年3月21日 (六) 04:26的版本
mw.hook('wikipage.content').add(function() {
var footerHtml = '<div style="width:100%; margin-top:20px; display:flex; justify-content:space-between;">' +
'<div><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></div>' +
'<div><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></div>' +
'</div>';
var $footer = $('#footer, #mw-footer, .footer, #footer-places, .mw-footer');
if ($footer.length) {
$footer.after(footerHtml);
} else {
$('#content, #mw-content-text, .mw-body').append(footerHtml);
}
});