User:Lightmouse/monobook.js/script.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 63:
 
// decades and years
txt.value=txt.value.replace(/\[\[(\d{1,4})\'?s\]\]/gig, '$1s');
txt.value=txt.value.replace(/\[\[(\d{1,4})\'?(s)?\s(AD|BC|CE|BCE)\]\]/gi, '$1$2 $3');
txt.value=txt.value.replace(/\[\[\d{1,4}\'?s?\s(?:AD|BC|CE|BCE)\|([^\]]{1,30})\]\]/gi, '$1');
txt.value=txt.value.replace(/\[\[\d{1,4}\'?s?\|([^\]]{1,30})\]\]/gig, '$1');
 
//month+year