User:逆襲的天邪鬼/Twinkle-lzh/Twinkle.js: Difference between revisions
Content added Content deleted
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
* vim: set noet sts=0 sw=8: |
* vim: set noet sts=0 sw=8: |
||
* +-------------------------------------------------------------------------+ |
* +-------------------------------------------------------------------------+ |
||
* | === 警告: |
* | === 警告:尚未完備 === | |
||
* | |
* | 僅供測試,尚未翻譯 | |
||
* | |
* | 修改或翻譯前請聯繫維護者,[[User:逆襲的天邪鬼]] | |
||
* +-------------------------------------------------------------------------+ |
* +-------------------------------------------------------------------------+ |
||
* |
* |
||
Line 12: | Line 12: | ||
* |
* |
||
* 这是Twinkle,新手、管理员及他们之间的用户的 |
* 这是Twinkle,新手、管理员及他们之间的用户的 |
||
* 好搭档。请参见[[WP:TW]]以获取更多信息。 |
* 好搭档。请参见[[zh:WP:TW]]以获取更多信息。 |
||
* |
* |
||
* 维护者:[[User:逆襲的天邪鬼]](文言維基)、[[User:Jimmy Xu]](白話維基) |
* 维护者:[[User:逆襲的天邪鬼]](文言維基)、[[User:Jimmy Xu]](白話維基) |
||
Line 45: | Line 45: | ||
// General |
// General |
||
summaryAd: "", |
summaryAd: "", |
||
deletionSummaryAd: " |
deletionSummaryAd: " ([[WP:TW|TW]])", |
||
protectionSummaryAd: " |
protectionSummaryAd: " ([[WP:TW|TW]])", |
||
userTalkPageMode: "tab", |
userTalkPageMode: "tab", |
||
dialogLargeFont: false, |
dialogLargeFont: false, |
||
Line 333: | Line 333: | ||
dataType: "text" |
dataType: "text" |
||
}) |
}) |
||
.fail(function () { mw.util.jsMessage( "未能 |
.fail(function () { mw.util.jsMessage( "未能載入twinkleoptions.js" ); }) |
||
.done(function ( optionsText ) { |
.done(function ( optionsText ) { |
||
Line 393: | Line 393: | ||
// Set custom Api-User-Agent header, for server-side logging purposes |
// Set custom Api-User-Agent header, for server-side logging purposes |
||
Morebits.wiki.api.setApiUserAgent( 'Twinkle~ |
Morebits.wiki.api.setApiUserAgent( 'Twinkle~lzh/0.0 (' + mw.config.get( 'wgDBname' ) + ')' ); |
||
// Load the modules in the order that the tabs should appears |
// Load the modules in the order that the tabs should appears |
||
// User/user talk-related |
// User/user talk-related |
||
// Twinkle.arv(); |
|||
Twinkle.warn(); |
Twinkle.warn(); |
||
if ( Morebits.userIsInGroup('sysop') ) { |
if ( Morebits.userIsInGroup('sysop') ) { |