Verskil tussen weergawes van "MediaWiki:Monobook.js"

edit
(toets)
(edit)
/** Extra toolbar options ****************************************************** <nowiki>
*
* Description: UNDOCUMENTED
* Maintainers: [[User:MarkS]]?, [[User:Voice of All]], [[User:R. Koot]]
*/
//This is a modified copy of a script by User:MarkS for extra features added by User:Voice of All.
// This is based on the original code on Wikipedia:Tools/Editing tools
// To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]]
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
"speedTip": "Aanstuur",
"tagOpen": "#REDIRECT [[",
"tagClose": "]]",
"sampleText": "Bladsynaam hier"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
"speedTip": "Deurstroke teks",
"tagOpen": "<s>",
"tagClose": "</s>",
"sampleText": "Deurstroke teks"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png",
"speedTip": "Lynbreuk",
"tagOpen": "<br />",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png",
"speedTip": "Boskrif",
"tagOpen": "<sup>",
"tagClose": "</sup>",
"sampleText": "Boskrif"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png",
"speedTip": "Onderskrif",
"tagOpen": "<sub>",
"tagClose": "</sub>",
"sampleText": "Onderskrif"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png",
"speedTip": "Klein teks",
"tagOpen": "<small>",
"tagClose": "</small>",
"sampleText": "Klein teks"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png",
"speedTip": "Verskuilde kommentaar",
"tagOpen": "<!-- ",
"tagClose": " -->",
"sampleText": "Kommentaar"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png",
"speedTip": "Galery",
"tagOpen": "\n<gallery>\n",
"tagClose": "\n</gallery>",
"sampleText": "Beeld:Voorbeeld.jpg|Onderskrif1\nBeeld:Voorbeeld.jpg|Onderskrif2"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png",
"speedTip": "Haal aan",
"tagOpen": "{{cquote|\n",
"tagClose": "\n}}",
"sampleText": "Block quote"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
"speedTip": "Tabel",
"tagOpen": '{| class="prettytable"\n|-\n',
"tagClose": "\n|}",
"sampleText": "! hoof 1\n! hoof 2\n! hoof 3\n|-\n| ry 1, sel 1\n| ry 1, sel 2\n| ry 1, sel 3\n|-\n| ry 2, sel 1\n| ry 2, sel 2\n| ry 2, sel 3"};
}
//fix edit summary prompt for undo
//this code fixes the fact that the undo function combined with the "no edit summary prompter" causes problems if leaving the
//edit summary unchanged
//this was added by [[User:Deskana]], code by [[User:Tra]]
addOnloadHook(function () {
if (document.location.search.indexOf("undo=") != -1
&& document.getElementsByName('wpAutoSummary')[0]) {
document.getElementsByName('wpAutoSummary')[0].value='';
}
})
//Small search keyboard
//Author: Maciej Jaros [[:pl:User:Nux]]
//Licence: CC-BY or [http://opensource.org/licenses/gpl-license.php GNU General Public License v2]
<pre>
*/
if ( wgTitle == 'Spesiaal:Soek' && ( wgNamespaceNumber == -1 ) ) {
addOnloadHook(addSearchKeyboard);
function addSearchKeyboard() {
var subEl = returnObjById('results');
var newEl = document.createElement('div');
newEl.className = 'search_keyboard';
newEl.innerHTML = "\
<b>Sleutelbordjie:\
&nbsp;<a onclick=\"insertTagsTo_('ä','','','lsearchbox');return false\" href=\"#\">ä</a>\
<a onclick=\"insertTagsTo_('ç','','','lsearchbox');return false\" href=\"#\">ç</a>\
<a onclick=\"insertTagsTo_('è','','','lsearchbox');return false\" href=\"#\">è</a>\
<a onclick=\"insertTagsTo_('é','','','lsearchbox');return false\" href=\"#\">é</a>\
<a onclick=\"insertTagsTo_('ê','','','lsearchbox');return false\" href=\"#\">ê</a>\
<a onclick=\"insertTagsTo_('ë','','','lsearchbox');return false\" href=\"#\">ë</a>\
<a onclick=\"insertTagsTo_('î','','','lsearchbox');return false\" href=\"#\">î</a>\
<a onclick=\"insertTagsTo_('ö','','','lsearchbox');return false\" href=\"#\">ö</a>\
<a onclick=\"insertTagsTo_('ô','','','lsearchbox');return false\" href=\"#\">ô</a>\
<a onclick=\"insertTagsTo_('ü','','','lsearchbox');return false\" href=\"#\">ü</a>\
<a onclick=\"insertTagsTo_('û','','','lsearchbox');return false\" href=\"#\">û</a></b>\
";
newEl.style.cssText = 'margin-left:25%; width:50%; font-size:small;';
subEl.parentNode.insertBefore(newEl, subEl);
}
/*
</pre>
1 000

wysigings