Участник:Ilana/monobook.js
Материал из Википедии — свободной энциклопедии
sigWarning = true //Предупреждение о подписи включено
importScript('Участник:Valodzka/iProject.js'); //Красивые ссылки на викицитатник и т. п.
//Вставка шаблонов для патрулирования
document.write('<script type="text/javascript" src="'
+ 'http://ru.wikipedia.org/w/index.php?title=MediaWiki:Oldspecialchars.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
importScript('User:Alex Smotrov/qpreview.js');
function addTemplatesList(){
var block = document.getElementById('editpage-specialchars');
if (!block) return;
block.innerHTML =
'<select onchange=insertSel(this)>'
+'<option>Шаблоны</option>'
+'<option value="db-copyvio|url=">Copyvio</option>'
+'<option value="db-nonsense">Nonsense</option>'
+'<option value="db-test">Test</option>'
+'<option value="db-empty">Empty</option>' // и т.д. — дополняйте сами
+'<option value="rq|cat|check|cleanup|iwiki|linkless|stub|style|sources|wikify">RQ</option>' // и т.д. — дополняйте сами
+'</select>' + block.innerHTML;
}
function insertSel(sel){
if (sel.selectedIndex <= 0) return;
var sumins=' '
var insertion = sel.options[sel.selectedIndex].value;
insertTags("{" + "{" + insertion + "))\n",'','');
document.editform.wpMinoredit.checked = false;
if (insertion=='db-copyvio|url=') {
sumins='db-copyvio';}
else if (insertion=='rq|cat|check|cleanup|iwiki|linkless|stub|style|sources|wikify') {sumins='rq';}
else {sumins=insertion;}
document.editform.wpSummary.value += sumins;
}
// addOnloadHook(addTemplatesList);
//importScript('user:js/patroller.js')
jQuery( function( $ ) {
addTemplatesList();
} );
importScript('user:js/patroller.js')
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.