User:TMg/common.js
< User:TMg
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin is at User:TMg/common.css. |
var autoFormatTemplates = [
{
name: 'Information',
format: '|___________ = _\n'
}
];
var autoFormatReplacements = [
[ /(\|\s*Description\s*=)\s*(?=\{\{\w+\|)/gi, '$1\n' ],
[ /\n+(?=\n\|\s*Source\s*=)/gi, '' ],
[ /(\|Date\s*=\s*\d+-\d+-\d+)\s+\d+:\d+:\d+/gi, '$1' ],
[ /([^\s])(?=\n==)/gi, '$1\n' ],
[ /\{\{\s*int\s*:\s*license\s*\}\}/gi, '{{int:license-header}}' ],
[ /([^\]\s])\s*(?=\[\[Category:)/gi, '$1\n\n' ]
];
// importScript( 'User:Rillke/SVGedit.js' );