LLWiki正在建设中,欢迎加入我们

“MediaWiki:Gadget-MobileCategories.js”的版本间差异

跳转到导航 跳转到搜索
无编辑摘要
标签移动版网页编辑 移动版编辑
const categoryHtmlGenerator = function(array) {
return $('<ul>', {html: array.map(function(cat) {
const page = mw.msg( 'pagecategories' ) + 'Category:' + cat;
return $('<a>', {href: mw.util.getUrl( page ), title: page, text: cat}).wrap( '<li>' ).parent();
})});
$catlinks = $('<div>', {class: 'catlinks', id: 'catlinks'}).insertAfter( '.printfooter' );
if (normal.length) {
const specialCategories = 'Special:' + mw.msg( 'categories' );
$('<div>', {id: 'mw-normal-catlinks', class: 'mw-normal-catlinks', html: [
$('<a>', {href: '/zh/Special:Categories页面分类', title: specialCategories'Special:页面分类', text: mw.msg( 'pagecategories' )}),
mw.msg( 'colon-separator' ),
categoryHtmlGenerator( normal )
16,874

个编辑

导航菜单