打开/关闭菜单
32
245
25
891
植物大战僵尸杂交版Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
本Wiki为杂交版民间Wiki,不对杂交版官方产生影响

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行:
$(function() {
mw.hook('wikipage.content').add(function() {
     var footerHtml = '<table style="width:100%; margin-top:20px;"><tr>' +
     var footerHtml = '<div style="width:100%; margin-top:20px; display:flex; justify-content:space-between;">' +
         '<td style="text-align:left;"><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></td>' +
         '<div><a href="https://new.pvzhe.wiki/index.php?title=特殊:创建账户&returnto=首页">加入我们</a></div>' +
         '<td style="text-align:right;"><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></td>' +
         '<div><a href="https://www.pvzhe.com/new">前往官网以了解更多游戏信息</a></div>' +
         '</tr></table>';
         '</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);
    }
});