分类:帮助

Clash Royale CLAN TAG#URR8PPP
你好~!欢迎来到萌娘百科!如果您是第一次来到这里,点这里加入萌娘百科!- 欢迎具有翻译能力的同学~有意者请点→Category:需要翻译的条目←
- 如果您在萌娘百科上发现某些内容错误/空缺,请勇于修正/添加!编辑萌娘百科其实很容易!
- 觉得萌娘百科有趣的话,请推荐给朋友哦~
萌娘百科群119170500欢迎加入,加入时请写明【萌娘百科+自己的ID】~- 萌娘百科Discord群组已经建立,请点此加入!
萌娘百科管理页面 > wiki > 帮助
/* global mw */
"use strict";
window.RLQ = window.RLQ || ;
window.RLQ.push(function() {
if (window.navigator.userAgent.toLowerCase().indexOf('mobile') !== -1) console.debug('移动版不适用分类重整');
else if (!mw.config.get("widgetCatPageLink")) {
mw.config.set('widgetCatPageLink', 'on');
$(function() {
var $catlist = $('#mw-subcategories'),
$catctx = $catlist.parent(),
$catpages = $('#mw-pages'),
$impcats = $('
class: 'mw-category-important mw-category-group'
).append('
重要页面'),
impTitle = ,
catLength = $catlist.find('li').length,
catpageLen = $catpages.find('li').length;
if (!catLength || !catpageLen) return;
$catlist.find('h2').text('子分类和子页面');
$catlist.find('p:first').text('本分类有' + catLength + '个子分类和' + catpageLen + '个子页面');
$('#CatPageLinkDataSet span').each(function()
impTitle.push($(this).text().replace(/s/g, '').replace(String.fromCharCode(8206), '') //mdzz,gtmd ltr code
);
);
if ($catlist.find('.mw-category-group')[0]) $catlist.find('.mw-category-group').each(function()
$(this).attr('data-index', $(this).find('h3').text());
);
else
$('', class: 'mw-category' ).append($catlist.find('.mw-content-ltr').children()).appendTo($catlist.find('.mw-content-ltr')).find('h3').each(function()
var group = $('', class: 'mw-category-group' );
$(this).before(group);
group.prepend($(this).next()).prepend($(this)).attr('data-index', $(this).text());
);
$catlist = $('#mw-subcategories');
$catpages.find('h3').each(function() {
var index = $(this).text(),
$cat = $(this).next(),
$slt = $catlist.find('.mw-category-group[data-index="' + index + '"]');
if ($slt[0]) $slt.find('ul').append($cat.find('li'));
else $catlist.find('.mw-category').append('' + index + '
impTitle = ,
catLength = $catlist.find('li').length,
catpageLen = $catpages.find('li').length;
if (!catLength || !catpageLen) return;
$catlist.find('h2').text('子分类和子页面');
$catlist.find('p:first').text('本分类有' + catLength + '个子分类和' + catpageLen + '个子页面');
$('#CatPageLinkDataSet span').each(function()
impTitle.push($(this).text().replace(/s/g, '').replace(String.fromCharCode(8206), '') //mdzz,gtmd ltr code
);
);
if ($catlist.find('.mw-category-group')[0]) $catlist.find('.mw-category-group').each(function()
$(this).attr('data-index', $(this).find('h3').text());
);
else
$('', class: 'mw-category' ).append($catlist.find('.mw-content-ltr').children()).appendTo($catlist.find('.mw-content-ltr')).find('h3').each(function()
var group = $('', class: 'mw-category-group' );
$(this).before(group);
group.prepend($(this).next()).prepend($(this)).attr('data-index', $(this).text());
);
$catlist = $('#mw-subcategories');
$catpages.find('h3').each(function() {
var index = $(this).text(),
$cat = $(this).next(),
$slt = $catlist.find('.mw-category-group[data-index="' + index + '"]');
if ($slt[0]) $slt.find('ul').append($cat.find('li'));
else $catlist.find('.mw-category').append('