User:Ohconfucius/script
- I am responsible for writing and maintaining the following scripts:
- User:Ohconfucius/script/MOSNUM dates – aligns dates to a single format throughout the article;
- WP:MOSDASH(fork of User:GregU/dashes.js)
- User:Ohconfucius/script/formatgeneral – fixes some general formatting
- User:Ohconfucius/script/Common Terms – unlinks common terms that usually don't need linking in the majority of articles
- User:Ohconfucius/script/Sources – fixes specific formatting of various parameters within <ref></ref> and within {{citation}} templates
- User:Ohconfucius/EngvarB – aligns spelling in articles of British, British Commonwealth/Irish etc to British English spelling or Canadian English spelling. Please note that {{EngvarB}} is now independent of any British English templating. Its own categorisation also independent of British (or indeed any other) English variant categorisation.
- overuse of flag iconson some pages.
Most of the work of this account is done by a combination of
My philosophy
The various scripts work mainly on applying various provisions of WP:Manual of Style.
Strange though it may seem, I actually quite dislike
Although I would prefer British and dmy, and have chosen to first attack dmy articles for reasons of productivity, I would be happy to apply my work to chasing US spelling and mdy dates should WP decide that's the way it has to be.
Aligning dates, even by script, is donkey work. What I find infinitely more enjoyable and rewarding is the writing of the script which I and others can use, but I cannot develop without being the prime user. Therefore, I welcome comments, criticism and bug reports that all contribute to the improvement of the script and therefore the 'pedia as a whole.
Life would be a lot simpler with monoformats because we wouldn't have to do this manually – bots could be let loose to work on the 'pedia.
It's only a digression. I know WP is editor-driven and readers take second place; format unification isn't going to happen any time soon.
Please leave a . |
Work lists
Scripting resources
- CatScan 2.0– build list, for example, for AWB based on categories
- meta:User:Pathoschild/Scripts/TemplateScript (successor of Regex menu framework) created by Pathoschild.
- WikEd created by Cacycle
- mw:Extension:WikiEditor/Toolbar customization and mw:Extension:WikiEditor/Toolbar customization/Library
- User:Cameltrader/Advisor
- JS tutorial
- C# Programming Guide (for AWB module)
- .Net framework regular expressions
External resources
- http://regular-expressions.info documentation about regular expressions (regexes)
- http://www.rubular.com/ Regex tester
- http://www.omniglot.com/language/time/months.htm month names in many languages
- http://jshint.com a tool to detect errors and potential problems in JavaScript code (used by CodeEditor)
- http://doc.jsfiddle.net/
- http://jsbeautifier.org/
- http://jsperf.com/
- http://getfirebug.com/ Firebug (requires Firefox)