Kullanıcı:Suelnur/common.js
Not: Yayımladıktan sonra değişiklikleri görmek için tarayıcınızın önbelleğini temizlemeniz gerekebilir.
- Firefox / Safari: Shift tuşuna basılıyken Yeniden Yükle'ye tıklayın ya da Ctrl-F5 ya da Ctrl-R tıklayın (Mac için ⌘-R).
- Google Chrome: Ctrl-Shift-R'ye basın. (Mac için ⌘-Shift-R)
- Internet Explorer / Edge: Ctrl basılıyken Yenile'ye tıklayın ya da Ctrl-F5 yapın.
- Opera: Ctrl-F5 tıklayın.
// <nowiki>
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
* @update-token [[File:pathoschild/templatescript.js]]
*/
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
pathoschild.TemplateScript.add([
{ name:'eser1', template:'{{eser1\n | önceki =\n | sonraki =\n | başlık =\n | bölüm =\n | eser sahibi =\n | notlar =\n}}' },
{ name:'kişi', template:'{{Kişi\n |ismi =\n |soyismi başharfi=\n |yaşadığı tarih =\n |açıklamalar =\n |resim =\n |vikipedi_bağlantısı =\n |vikisöz_bağlantısı =\n |commons_bağlantısı =\n}}' },
{ name:'hoş geldin', template:'{{subst:Hoşgeldin}}\n', editSummary:'VikiKaynak\'a hoş geldin!' },
{ name:'düzenle', template:'{{Düzenle}}\n', editSummary:'Düzenle' },
{ name:'telif', template:'{{telif}}\n', editSummary:'muhtemel telif ihlali!' },
{ name:'çevirmensiz', template:'{{çevirmensiz}}\n', editSummary:'çevirmeni belli değil!' },
]);
});
/*
#####
## Script: [[User:TheDJ/Gadget-HotCat.js]]
## * HotCat: Adds an easy way to add, modify and remove categories
## * Documentation: [[User:TheDJ/HotCat]]
## * Originally written by: Magnus Manske
#####
*/
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:TheDJ/Gadget-HotCat.js&action=raw&ctype=text/javascript');
if (mw.toolbar) {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'main',
group: 'format',
tools: {
'custom-Şiir': {
label: 'Şiir',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/8/8f/Button_poeme.png',
action: {
type: 'encapsulate',
options: {
pre: '<poem>',
post: '</poem>',
sampleText: ''
}
}
}
}
});
};
// </nowiki>