User:DStoykov/defaultsort.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 5:
var sortkey = '';
// create an array of all category links
var catlinks = txt.value.match(/\[\[\s*(Category|Kategorie|Catégorie|Categoria|Categoría|Категория|Categorie|Luokka|Kategori)\s*:.*\]\]/ig);
if (txt.value.match(/\{\{\s*defaultsort/i)) {
alert('There\'s already a defaultsort statement!');