1.858
Bearbeitungen
Änderungen
keine Bearbeitungszusammenfassung
/* Das folgende JavaScript wird für alle Benutzer geladen. */ /** Extra toolbar options ****************************************************** * * Description: Adds extra buttons to the editing toolbar. * * To disable this script, add <code>mwCustomEditButtons = [];<code> to [[SpecialMediaWiki:Mypage/monobookCommon.js]]. * * Maintainers: [[User:MarkS]], [[User:Voice of All]], [[User:R. Koot]] */ if (mwCustomEditButtons) { mwCustomEditButtons.push({ "imageFile": "skins/common/images/button_link.png", "speedTip": "Interner Link", "tagOpen": '<div class="intern">[[', "tagClose": "]]</div>", "sampleText": "Hier steht der interne Link" }); mwCustomEditButtons.push({ "imageFile": "images/Anker.png", "speedTip": "Top Anker", "tagOpen": '<div class="imagelink_anker" title="nach oben">[[#top| ]]</div>', "tagClose": "", "sampleText": "" }); mwCustomEditButtons.push({ "imageFile": "http://kiwithek.kidsweb.at/skins/common/images/button_image.png", "speedTip": "Bild einfügen", "tagOpen": "[[Datei:", "tagClose": "|thumb|200px|center|Beschreibung]]", "sampleText": "name.jpg" }); mwCustomEditButtons.push({ "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png", "speedTip": "Bildergalerie einfügen", "tagOpen": "\n<gallery>\n", "tagClose": "\n</gallery>", "sampleText": "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2" }); mwCustomEditButtons.push({ "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", "speedTip": "Zeilenumbruch", "tagOpen": "<br />", "tagClose": "", "sampleText": "" }); /** mwCustomEditButtons.push({ * "imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png", * "speedTip": "Tabelle (3x3) einfügen", * "tagOpen": '{| class="wikitable"\n|', * "tagClose": "\n|}", * "sampleText": "-\n! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3" * });
*/
}
/** * * Modify Sidebar for special usergroups! * */increase body height to match sidebar height function ModifySidebar(action, section, name, link) { try { switch (section) { case "languages": var target = "p-lang"; break; case "toolbox": var target = "p-tb"; break; case "navigation": var target = "p-navigation"; break; default: var target = "p-" + section; break; } if (action == "add") { var node sidebarHeight = document.getElementById(target) .getElementsByTagNamejQuery('div')[0] .getElementsByTagName('ul#mw-panel')[0]; var aNode = document.createElementouterHeight('a'); var liNode bodyHeight = document.createElementjQuery('li'); aNode.appendChild(documentbody.createTextNode(name)); aNode.setAttribute('hrefmediawiki', link); liNode.appendChild(aNode); liNode.className='plainlinks'; node.appendChildouterHeight(liNode); } if (action == "remove"sidebarHeight > bodyHeight ) { var list = document.getElementById(target) .getElementsByTagName jQuery('div#footer')[0] .getElementsByTagNamecss('ulmargin-bottom', sidebarHeight - bodyHeight )[0]; } else { var listelements = list.getElementsByTagName jQuery('li#mw-panel'); for (var i = 0; i < listelements.length; i++) { if (listelements[i].getElementsByTagNameheight('a')[0].innerHTML == name || listelements[i].getElementsByTagNamejQuery('abody')[0].href == link) { list.removeChild(listelements[i]); } } } } catch(e) { // lets just ignore what's happened return; }} function CustomizeModificationsOfSidebarheight() { //removes [[Special:Specialsites]] from toolbox ModifySidebar("add", "toolbox", "Spezialseiten", "/index.php/Spezial:Spezialseiten");
}
//addOnloadHookreplace registration linkjQuery(CustomizeModificationsOfSidebar'#pt-createaccount' ) .attr( 'id', 'pt-gettingstarted' );jQuery( '#pt-gettingstarted a' ) .attr( 'href', '/index.php/Kiwithek:Getting_Started' ) .attr( 'title', 'Lies nach, wie du mit uns in Kontakt treten kannst um an der KiwiThek mitzuarbeiten.' ) .text( 'Getting Started' );
// insert Bildinformationen template into uploaded file page
var template = '{{Bildinformationen\n' +
'| Beschreibung = Bitte bearbeite mich und fülle die Bildinfos aus!\n' +
'| Urheber =\n' +
'| Herausgeber =\n' +
'| QuelleText =\n' +
'| QuelleUrl =\n' +
'| LizenzText =\n' +
'| LizenzUrl =\n' +
'| Originaltitel =\n' +
'| Bearbeitung =\n' +
'| GeoLand =\n' +
'| GeoRegion =\n' +
'| GeoGPSNorth =\n' +
'| GeoGPSEast =\n' +
'| Sonstiges =\n' +
'}}'
jQuery( '#wpUploadDescription' ).val(template)
}
jQuery('#footer-places-disclaimer').find('a') .attr('href', 'https://Alles was in dieser Else Klausel drinnsteht beeinflusst die Sicht der Toolbox für nicht reglehrerweb. User!!wien/footer-nav/else addOnloadHookimpressum') .attr(CustomizeModificationsOfSidebar'target', '_blank'); //</source>