MediaWiki:Gadget-twinkleprotect.js: Revizyonlar arasındaki fark
İçerik silindi İçerik eklendi
k dz |
Çeşitli iyileştirmeler | case değerlerinde tutarsızlıklar ve şablonlarda eksiklikler var. Biraz daha işi var bunun. |
||
13. satır:
*/
// Not: Bu modüldeki birçok kod Batchprotect 'toplu koruma' tarafından kullanılmakta/çağrılmaktadır.
Twinkle.protect = function twinkleprotect() {
30. satır:
Window.addFooterLink('Koruma şablonları', 'Şablon:Koruma şablonları');
Window.addFooterLink('Koruma politikası', 'VP:KP');
Window.addFooterLink('Twinkle yardım', '
var form = new Morebits.quickForm(Twinkle.protect.callback.evaluate);
60. satır:
label: 'Sayfa koruması talep et',
value: 'request',
tooltip: 'Korumayı
checked: !Morebits.userIsSysop
},
66. satır:
label: 'Sayfayı koruma şablonu ile etiketle',
value: 'tag',
tooltip: '
disabled: mw.config.get('wgArticleId') === 0 || mw.config.get('wgPageContentModel') === 'Scribunto'
}
94. satır:
// A list of bots who may be the protecting sysop, for whom we shouldn't
// remind the user contact before requesting unprotection (evaluate)
Twinkle.protect.trustedBots = ['
// Customizable namespace and FlaggedRevs settings
231. satır:
if (Twinkle.protect.hasStableLog) {
$linkMarkup.append($('<a target="_blank" href="' + mw.util.getUrl('Special:Log', {action: 'view', page: mw.config.get('wgPageName'), type: 'stable'}) + '">
}
246. satır:
if (currentlyProtected) {
$.each(Twinkle.protect.currentProtectionLevels, function(type, settings) {
var label = type === 'stabilize' ? '
protectionNode.push($('<b>' + label + ': ' + settings.level + '</b>')[0]);
if (settings.expiry === 'infinity') {
protectionNode.push(' (süresiz) ');
} else {
protectionNode.push(' (
}
if (settings.cascade) {
297. satır:
list: [
{
label: 'Düzenleme korumasını
name: 'editmodify',
tooltip: 'Bu kapatılırsa, düzenleme korumasında herhangi bir değişiklik yapılmayacaktır.',
331. satır:
list: [
{
label: 'Taşıma korumasını
name: 'movemodify',
tooltip: 'Bu kapatılırsa, taşıma korumasında herhangi bir değişiklik yapılmayacaktır.',
410. satır:
{
name: 'small',
label: '
tooltip: 'Şablonun |küçük=evet
checked: true
},
{
name: 'noinclude',
label: 'Koruma şablonunu <noinclude>
tooltip: 'Koruma şablonunu <noinclude>
checked: mw.config.get('wgNamespaceNumber') === 10
}
453. satır:
break;
default:
alert("twinkleprotect
break;
}
535. satır:
Twinkle.protect.doCustomExpiry = function twinkleprotectDoCustomExpiry(target) {
var custom = prompt('Özel bir koruma süresi girin. \nGöreceli zamanları İngilizce olmak koşuluyla kullanabilirsiniz, örneğin "1 minute", "19 days" veya mutlak zaman damgaları, "yyyymmddhhmm" (örn. "200602011405", 1 Şubat 2006 14
if (custom) {
var option = document.createElement('option');
550. satır:
Twinkle.protect.protectionLevels = [
{ label: 'Herkes', value: 'all' },
{ label: 'Otomatik
{ label: 'Hizmetli', value: 'sysop', selected: true }
];
591. satır:
label: 'Şablon koruması',
list: [
{ label: 'Çok sayıda sayfada kullanılan şablon', selected:true, value: 'koruma-şablon' }
]
},
627. satır:
{ label: 'Genel ({{koruma-oluşturma}})', value: 'pp-create' },
{ label: 'Rahatsız edici ad', value: 'pp-create-offensive' },
{ label: '
{ label: 'Yakın zamanda silinmiş YİB', value: 'pp-create-blp' }
]
676. satır:
reason: '[[Vikipedi:Yüksek riskli şablonlar|Çok sayfada kullanılan şablon]]'
},
// 'pp-30-500-arb': {
// },
'pp-30-500-vandalism': {
edit: 'autoconfirmed',
move: 'autoconfirmed',
reason: '(Otomatik) onaylı kullanıcıların sürekli [[Vikipedi:Vandalizm|vandalizmi]]',
template: 'pp-30-500'
},
853. satır:
].filter(function(type) {
// Filter FlaggedRevs
return hasFlaggedRevs || type.label !== '
});
960. satır:
tagparams = {
tag: input.tagtype,
reason: (input.tagtype === 'koruma' || input.tagtype === '
small: input.small,
noinclude: input.noinclude
1.007. satır:
thispage.setEditSummary(input.protectReason);
} else {
alert('Koruma
return;
}
1.026. satır:
}
thispage = new Morebits.wiki.page(mw.config.get('wgPageName'), '
thispage.setFlaggedRevs(input.pclevel, input.pcexpiry);
1.044. satır:
thispage.stabilize(allDone, function(error) {
if (error.errorCode === 'stabilize_denied') { // [[phab:T234743]]
thispage.getStatusElement().error('
}
});
|