MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

Gadget:HotCat.js:修订间差异

跳到导航 跳到搜索
添加997字节 、​ 2023年5月7日 (星期日)
// Edit via Wikiplus
(// Edit via Wikiplus)
(// Edit via Wikiplus)
 
(未显示同一用户的5个中间版本)
第1行: 第1行:
window.hotcat_translations_from_commons = false;
/**
/**
搬运自维基共享资源,CC-BY-3.0,有部分修改
搬运自维基共享资源,CC-BY-3.0,有部分修改
第139行: 第140行:
uncat_regexp: /\{\{\s*[Uu]ncategorized\s*[^}]*\}\}\s*(<!--.*?-->\s*)?/g,
uncat_regexp: /\{\{\s*[Uu]ncategorized\s*[^}]*\}\}\s*(<!--.*?-->\s*)?/g,
// The images used for the little indication icon. Should not need changing.
// The images used for the little indication icon. Should not need changing.
existsYes: 'data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3Echeck%3C/title%3E%3Cpath d='M7 14.2 2.8 10l-1.4 1.4L7 17 19 5l-1.4-1.4z'/%3E%3C/svg%3E%0A',
existsYes: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAgMjAiPjx0aXRsZT5jaGVjazwvdGl0bGU+PHBhdGggZD0iTTcgMTQuMiAyLjggMTBsLTEuNCAxLjRMNyAxNyAxOSA1bC0xLjQtMS40eiIvPjwvc3ZnPg==',
existsNo: 'data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='m4.3 2.9 12.8 12.8-1.4 1.4L2.9 4.3z'/%3E%3Cpath d='M17.1 4.3 4.3 17.1l-1.4-1.4L15.7 2.9z'/%3E%3C/svg%3E',
existsNo: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAgMjAiPjx0aXRsZT5jbG9zZTwvdGl0bGU+PHBhdGggZD0ibTQuMyAyLjkgMTIuOCAxMi44LTEuNCAxLjRMMi45IDQuM3oiLz48cGF0aCBkPSJNMTcuMSA0LjMgNC4zIDE3LjFsLTEuNC0xLjRMMTUuNyAyLjl6Ii8+PC9zdmc+',
// a list of categories which can be removed by removing a template
// a list of categories which can be removed by removing a template
// key: the category without namespace
// key: the category without namespace
第281行: 第282行:
// from the wiki where this script is executing, even if this script itself is hotlinked from Commons. This can
// from the wiki where this script is executing, even if this script itself is hotlinked from Commons. This can
// be used to change the default settings, or to provide localized interface texts for edit summaries and so on.
// be used to change the default settings, or to provide localized interface texts for edit summaries and so on.
loadJS( 'MediaWiki:Gadget-HotCat.js/local_defaults', loadTrigger.loaded );
// 搬运自中文维基百科,有修改
// https://zh.wikipedia.org/wiki/MediaWiki:Gadget-HotCat.js/local_defaults
HC.messages.cat_removed = '移除[[Category:$1]]';
HC.messages.template_removed = '移除{{[[Category:$1]]}}';
HC.messages.cat_added = '添加[[Category:$1]]';
HC.messages.cat_keychange = '已设置[[Category:$1]]的新排序字:';
HC.messages.cat_notFound = '分类“$1”没有找到';
HC.messages.cat_exists = '分类“$1”已经存在,没有添加。';
HC.messages.cat_resolved = '(重定向[[Category:$1]]已处理)';
HC.messages.uncat_removed = '已移除{{uncategorized}}';
HC.messages.prefix = '使用HotCat';
HC.messages.using = '';
HC.messages.multi_change = '$1个分类';
loadTrigger.loaded();


// Load localized UI texts. These are the texts that HotCat displays on the page itself. Texts shown in edit summaries
// Load localized UI texts. These are the texts that HotCat displays on the page itself. Texts shown in edit summaries
// should be localized in /local_defaults above.
// should be localized in /local_defaults above.
if ( conf.wgUserLanguage !== 'en' ) {
if ( conf.wgUserLanguage !== 'en' ) {
// Lupo: somebody thought it would be a good idea to add this. So the default is true, and you have to set it to false
// 搬运自维基共享资源
// explicitly if you're not on Commons and don't want that.
// https://commons.wikimedia.org/wiki/MediaWiki:Gadget-HotCat.js/zh-cn
if ( window.hotcat_translations_from_commons === undefined ) window.hotcat_translations_from_commons = true;
HC.messages.commit = '保存';
 
HC.messages.ok = '确定';
// Localization hook to localize HotCat messages, tooltips, and engine names for wgUserLanguage.
HC.messages.cancel = '取消';
if ( window.hotcat_translations_from_commons && conf.wgServer.indexOf( '//commons' ) < 0 ) {
HC.messages.multi_error = '无法从服务器取得页面文字。因此,您的分类变更无法保存。我们为此不便表示抱歉。';
loadURI( '//commons.wikimedia.org/w/index.php?title=' +
HC.categories = '分类';
'MediaWiki:Gadget-HotCat.js/' + conf.wgUserLanguage +
HC.engine_names.searchindex = '搜索索引';
'&action=raw&ctype=text/javascript', loadTrigger.loaded );
HC.engine_names.pagelist = '页面列表';
} else {
HC.engine_names.combined = '合并搜索';
// Load translations locally
HC.engine_names.subcat = '子分类';
loadJS( 'MediaWiki:Gadget-HotCat.js/' + conf.wgUserLanguage, loadTrigger.loaded );
HC.engine_names.parentcat = '上层分类';
}
HC.tooltips.change = '修改';
HC.tooltips.remove = '移除';
HC.tooltips.add = '增加一个新分类';
HC.tooltips.restore = '撤销变更';
HC.tooltips.undo = '撤销变更';
HC.tooltips.down = '打开以修改并显示子分类';
HC.tooltips.up = '打开以修改并显示上层分类';
HC.multi_tooltip = '修改多个分类';
loadTrigger.loaded();
} else {
} else {
loadTrigger.loaded();
loadTrigger.loaded();
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,469

个编辑

我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。

导航菜单