MediaWiki:Mobile.js:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
第17行: | 第17行: | ||
return mw.config.get('wgCanonicalSpecialPageName') === "UserProfile" && mw.config.get('wgArticleId') === "0"; | return mw.config.get('wgCanonicalSpecialPageName') === "UserProfile" && mw.config.get('wgArticleId') === "0"; | ||
} | } | ||
//页顶提示模板相关 | //页顶提示模板相关 | ||
function commonBoxs() { | function commonBoxs() { | ||
第120行: | 第113行: | ||
}); | }); | ||
})(jQuery, mediaWiki); //立即执行匿名函数并传递原始变量 | })(jQuery, mediaWiki); //立即执行匿名函数并传递原始变量 | ||
//页顶加入选项控制 | |||
if( mw.config.get('wgNamespaceNumber') != 2){ | |||
spanobj=document.createElement("span"); | |||
srch=document.getElementById("page-actions"); | |||
srch.parentElement.insertBefore(spanobj,srch); | |||
spanobj.innerHTML='<a href="#/talk">讨论</a> · <a href="' + mw.config.get('wgScript') + '?' + $.param({ title: mw.config.get('wgPageName'), action: 'info' }) +'">信息</a> · <a href="' + mw.config.get("wgServer") + mw.config.get("wgScriptPath") + '/特殊:链入页面/' + mw.config.get("wgPageName") + '">相关</a>'; | |||
} | |||
// </pre> | // </pre> |