User:Txkk/DisamAssist (zh-cn).js: Difference between revisions
Content deleted Content added
mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
//如果翻译有误,请到 https://zh.wikipedia.org/wiki/User_talk:Txkk?action=edit§ion=new 留言指正。 |
//如果翻译有误,请到 https://zh.wikipedia.org/wiki/User_talk:Txkk?action=edit§ion=new 留言指正。 |
||
//西班牙文(原版): https://es.wikipedia.org/wiki/User:Qwertyytrewqqwerty/DisamAssist.js?action=raw&ctype=text/javascript |
//西班牙文(原版): https://es.wikipedia.org/wiki/User:Qwertyytrewqqwerty/DisamAssist.js?action=raw&ctype=text/javascript |
||
//英文: https:// |
//英文: https://en.wikipedia.org/wiki/User:Qwertyytrewqqwerty/DisamAssist.js?action=raw&ctype=text/javascript |
||
//繁体中文(不完整翻译): https://zh.wikipedia.org/wiki/User:和平奮鬥救地球/DisamAssist.js?action=raw&ctype=text/javascript |
//繁体中文(不完整翻译): https://zh.wikipedia.org/wiki/User:和平奮鬥救地球/DisamAssist.js?action=raw&ctype=text/javascript |
||
Line 32: | Line 32: | ||
disamLinkIgnoreTemplates: [ |
disamLinkIgnoreTemplates: [ |
||
'消歧義頁重定向' |
'消歧義頁重定向' |
||
'R to disambiguation page' |
|||
], |
], |
||
Revision as of 08:25, 31 May 2022
//<source lang="javascript">
//这里是DisamAssist的简体中文版
//如果翻译有误,请到 https://zh.wikipedia.org/wiki/User_talk:Txkk?action=edit§ion=new 留言指正。
//西班牙文(原版): https://es.wikipedia.org/wiki/User:Qwertyytrewqqwerty/DisamAssist.js?action=raw&ctype=text/javascript
//英文: https://en.wikipedia.org/wiki/User:Qwertyytrewqqwerty/DisamAssist.js?action=raw&ctype=text/javascript
//繁体中文(不完整翻译): https://zh.wikipedia.org/wiki/User:和平奮鬥救地球/DisamAssist.js?action=raw&ctype=text/javascript
window.DisamAssist = jQuery.extend( true, {
cfg: {
/*
* Categories where disambiguation pages are added (usually by a template like {{Disambiguation}}
*/
disamCategories: ['全部消歧義頁面'],
/*
* "Canonical names" of the templates that may appear after ambiguous links
* and which should be removed when fixing those links
*/
disamLinkTemplates: [
'需要消歧义',
'連結消歧義',
'Dn',
'Disambiguation needed',
'链接消歧义'
],
/*
* "Canonical names" of the templates that designate intentional links to
* disambiguation pages
*/
disamLinkIgnoreTemplates: [
'消歧義頁重定向'
'R to disambiguation page'
],
/*
* Format string for "Foo (disambiguation)"-style pages
*/
disamFormat: '',
/*
* Regular expression matching the titles of disambiguation pages (when they are different from
* the titles of the primary topics)
*/
disamRegExp: '',
/*
* Text that will be inserted after the link if the user requests help. If the value is null,
* the option to request help won't be offered
*/
disamNeededText: '{{dn|date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}',
/*
* Content of the "Foo (disambiguation)" pages that will be created automatically when using
* DisamAssist from a "Foo" page
*/
redirectToDisam: '',
/*
* Whether intentional links to disambiguation pages can be explicitly marked by adding " (disambiguation)"
*/
intentionalLinkOption: true,
/*
* Namespaces that will be searched for incoming links to the disambiguation page (pages in other
* namespaces will be ignored)
*/
targetNamespaces: [6, 10, 14, 100, 108, 0],
/*
* Number of backlinks that will be downloaded at once
* When using blredirect, the maximum limit is supposedly halved
* (see http://www.mediawiki.org/wiki/API:Backlinks)
*/
backlinkLimit: 250,
/*
* Number of titles we can query for at once
*/
queryTitleLimit: 50,
/*
* Number of characters before and after the incoming link that will be displayed
*/
radius: 300,
/*
* Height of the context box, in lines
*/
numContextLines: 4,
/*
* Number of pages that will be stored before saving, so that changes to them can be
* undone if need be
*/
historySize: 2,
/*
* Minimum time in seconds since the last change was saved before a new edit can be made. A
* negative value or 0 disables the cooldown. Users with the "bot" right won't be affected by
* the cooldown
*/
editCooldown: 0,
/*
* Specify how the watchlist is affected by DisamAssist edits. Possible values: "watch", "unwatch",
* "preferences", "nochange"
*/
watch: '没有变化'
},
txt: {
start: '消歧义链接',
startMain: '消歧义链接到主从消歧义',
startSame: '消歧义链接到消歧义页',
close: '关闭',
undo: '撤消',
omit: '跳过',
refresh: '刷新',
titleAsText: '不同的目标',
disamNeeded: '标记{{dn}}',
intentionalLink: '有意链接到消歧义页的链接',
titleAsTextPrompt: '指定新的链接目标:',
removeLink: '取消链接',
optionMarker: ' [链接到这里]',
targetOptionMarker: ' [目前的目标]',
redirectOptionMarker: ' [目前的目标(已重定向)]',
pageTitleLine: '在<a href="$1">$2</a>:',
noMoreLinks: '没有需要消歧义的链接了。',
pendingEditCounter: '正在保存:$1; 历史:$2',
pendingEditBox: 'DisamAssist正在保存您的编辑($1)。',
pendingEditBoxTimeEstimation: '$1;粗略剩余时间:$2',
pendingEditBoxLimited: '在保存所有待处理的修改前,请别关闭这个标签。'
+ '您可以在不同的标签中继续编辑维基百科,'
+ '但请注意,我们不鼓励同时使用DisamAssist的多个实例,'
+ '因为在短时间内进行大量的编辑可能会造成破坏。',
error: '错误:$1',
fetchRedirectsError: '无法获取重定向:“$1”。',
getBacklinksError: '无法下载反向链接:“$1”。',
fetchRightsError: '无法获取用户权限:“$1”。',
loadPageError: '无法加载$1:“$2”。',
savePageError: '无法保存对$1的更改:“$2”。',
dismissError: '取消',
pending: 'DisamAssist中存在未保存的更改。想保存它们的话,请按“关闭”。',
editInProgress: 'DisamAssist当前正执行更改。如果您关闭这个标签,可能会丢失您的编辑。',
ellipsis: '……',
notifyCharacter: '✔',
summary: '使用[[m:User:Txkk/DisamAssist_(zh-cn).js|DisamAssist]]清理[[WP:DAB|消歧义]]链接:[[$1]]($2)。',
summaryChanged: '更改了链接到[[$1]]',
summaryOmitted: '跳过了链接',
summaryRemoved: '移除了链接',
summaryIntentional: '有意链接到消歧义页',
summaryHelpNeeded: '需要帮助',
summarySeparator: ';',
redirectSummary: '使用[[m:User:Txkk/DisamAssist_(zh-cn).js|DisamAssist]]创建目标为[[$1]]的重定向。'
}
}, window.DisamAssist || {} );
mw.loader.load( '//es.wikipedia.org/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist-core.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//es.wikipedia.org/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist.css&action=raw&ctype=text/css', 'text/css' );
//</source>