MediaWiki:Common.js: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 7: | Zeile 7: | ||
}) | }) | ||
} | } | ||
/* Fromt https://en.wikipedia.org/wiki/MediaWiki:Common.js */ | |||
/* Force preview for anons */ | /* Force preview for anons */ | ||
Zeile 235: | Zeile 238: | ||
$( createNavigationBarToggleButton ); | $( createNavigationBarToggleButton ); | ||
/ | /* From https://en.wikipedia.org/wiki/User:Alex_21/script-functions.js */ | ||
/* HTML colour names */ | /* HTML colour names */ | ||
Zeile 586: | Zeile 589: | ||
/ | /* Based on https://en.wikipedia.org/wiki/User:Alex_21/script-redlinks.js */ | ||
$(document).ready( function () { | $(document).ready( function () { | ||
Zeile 659: | Zeile 662: | ||
// Alert for summary of removed redlinks; total in edit summary | // Alert for summary of removed redlinks; total in edit summary | ||
if (totalredlinks > 0) { | if (totalredlinks > 0) { | ||
document.getElementById('wpSummary').value += "Removed "+totalredlinks+" redlink"+(totalredlinks==1?"":"s")+" via [[User: | document.getElementById('wpSummary').value += "Removed "+totalredlinks+" redlink"+(totalredlinks==1?"":"s")+" via [[User:Till Kraemer/script-redlinks|script]]."; | ||
alert("Automatically removed "+totalredlinks+" redlink"+(totalredlinks==1?"":"s")+"!"); | alert("Automatically removed "+totalredlinks+" redlink"+(totalredlinks==1?"":"s")+"!"); | ||
} else { | } else { |