MediaWiki添加备案号

$wgHooks['SkinAddFooterLinks'][] = function( $skin, $key, &$footerlinks ) {
       if ( $key === 'places' ) {
               $footerlinks['ICP_Number'] = Html::rawElement( 'a', [ 'href' => 'https://beian.miit.gov.cn/' ], '粤ICP备15102220号' );
       }
};
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = function( $sk, &$tpl ) {
    $tpl->set( 'ICP_Number', Linker::makeExternalLink( 'https://beian.miit.gov.cn/', '你的备案号' ) );
    $tpl->data['footerlinks']['places'][] = 'ICP_Number';
    return true;
};