Search results
Results From The WOW.Com Content Network
Scripts that change the appearance or behavior (UI/UX) of the site. Any script that does nothing other than add a link to a page to a menu, panel or toolbar belongs to § Shortcuts . Any script that makes an edit to a page (i.e. increases the user's contributions) or changes the appearance or behavior of the edit form ( action=edit/submit ...
A numeric character reference refers to a character by its Universal Character Set/Unicode code point, and a character entity reference refers to a character by a predefined name. A numeric character reference uses the format &#nnnn; or &#xhhhh; where nnnn is the code point in decimal form, and hhhh is the code point in hexadecimal form.
However, if your code works with the content part of the page (the #mw-content-text element), you should use the 'wikipage.content' hook instead. This way your code will successfully reprocess the page when it is updated asynchronously and the hook is fired again. There are plenty of tools that do so, ranging from edit preview to watchlist ...
The right-to-left script data is sourced from Module:Lang/data. The main table in the module is generated by Module:Unicode data/scripts/make from Scripts.txt and PropertyValueAliases.txt in the Unicode Character Database (version 16.0).
Please feel free to improve any of these scripts but make sure to test your changes first. Like the rest of Wikipedia, all material here is under CC BY-SA 4.0 . See licensing for further details.
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Pages for logged out editors learn more
In my quick testing, it appears that the C0 control codes do not survive a round-trip through the MediaWiki parser, but other non-printing characters do, and these characters show up surprisingly commonly in wikitext (the biggest offenders I've noticed are left-to-right marks and right-to-left marks, though I've come across a variety of them).
This page will collect various techniques for achieving common tasks needed in writing user scripts. Discussion about limitations, relative portability, and speed of the various alternatives is strongly encouraged. There is a lot of duplication and non-optimal efforts out there, and this will hopefully encourage us to write tighter, more ...