MediaWiki 添加 ICP 备案号、添加公安备案号

LocalSettings.php

$wgHooks['SkinAddFooterLinks'][] = function( $skin, $key, &$footerlinks  ) {
    if ( $key === 'places' ) {
        $footerlinks['miit'] = Html::rawElement( 'a', [ 'href' => 'http://beian.miit.gov.cn/', 'target' => '_blank' ], '京ICP备xxxxxxxxxx号-1' );
        $footerlinks['police'] = Html::rawElement( 'a', [ 'href' => 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=xxxxxxxxxxxxxx', 'target' => '_blank' ], '<img src="/w/police.png">京公网安备xxxxxxxxxxxxxx号' );
        $footerlinks['WinExt'] = Html::rawElement( 'a', [ 'href' => 'https://www.trisunsoft.com/sc/we/', 'target' => '_blank' ], '免费 Windows 实用工具包' );
        // $footerlinks['WinExt'] = Html::rawElement( 'a', [ 'href' => 'https://www.trisunsoft.com/sc/we/', 'target' => '_blank' ], 'WinExt' );
        $footerlinks['Advanced Recent Access'] = Html::rawElement( 'a', [ 'href' => 'https://www.trisunsoft.com/sc/advanced-recent-access/', 'target' => '_blank' ], '最近访问文件查看器' );
        // $footerlinks['Advanced Recent Access'] = Html::rawElement( 'a', [ 'href' => 'https://www.trisunsoft.com/sc/advanced-recent-access/', 'target' => '_blank' ], 'Advanced Recent Access' );
    }
};

Manual:Hooks/SkinAddFooterLinks