mw.util.addPortletLink(
'p-personal',
mw.util.getUrl( 'Özel:Sayfam/Çalışma' ),
'Çalı',
'pt-custom',
'Caterpillar 350L',
null,
'#pt-preferences'
);
mw.util.addPortletLink(
'p-personal',
mw.util.getUrl( 'Özel:Sayfam/Çalışmaa' ),
'şma',
'pt-custom',
'Caterpillar D10N',
null,
'#pt-preferences'
);
mw.util.addPortletLink(
'p-personal',
mw.util.getUrl( 'Özel:Sayfam/kenar' ),
'112',
'pt-custom',
'Sol yanım acıyor anne',
null,
'#pt-preferences'
);
// özelleştirilmiş gerekçeci geldi hanım
function addSumButton(name, text) {
$('<a title="'+text+'">'+name+'</a>').click(insertSummary).appendTo(wpSummaryButtons);
}
function insertSummary() {
var text = this.title, sum = $('#wpReason'), vv = sum.val();
if (vv.indexOf(text) != -1) return ;
if (/[^,; \/]$/.test(vv)) vv += ' \+';
if (/[^ ]$/.test(vv)) vv += ' ';
sum.val(vv + text);
}
$(function (){
var sum = document.getElementById('wpReason');
if (!sum || (sum.form.wpSection && sum.form.wpSection.value == 'new')) return;
mw.util.addCSS('\
#userSummaryButtonsA a {background:#cef; border:1px solid #adf; padding:0 2px; margin:0 2px;\
cursor:pointer; font-size:80%; color:#666}\
#userSummaryButtonsA a:hover {background:#bdf; color:black; text-decoration:none}');
wpSummaryButtons = $('<div id=userSummaryButtonsA />').insertAfter(sum);
var ss = [ 'kaynaksız.bilgi' ];
for (var i=0; i<ss.length; i++)
addSumButton(ss[i].replace(/\..*/,' '), ss[i].replace(/\./,' '));
});