User:SoledadKabocha/ajaxPreview

This is a quick-and-dirty fork of User:Js/ajaxPreview.js to allow the user to override the messages in  by assigning to that variable in user-skin scripts such as common.js.

It still depends on the original User:Js/preview2.js, as I have not forked that script file.

For general information on the functionality, see User:Js/ajaxPreview.

Known bugs and limitations
Except where otherwise specified, these also affect the original script.

Preview
Obviously, these refer only to the ajax preview function and do not affect the parsing of the wikitext after it is saved.


 * When adding a new section to an existing, nonempty talk page:
 * Pressing the "Show changes" button will mistakenly compare the added section with the lead (number 0) section, instead of showing the new section as a pure addition.
 * Attempted transclusions of templates such as in the section title may be treated as literal text rather than being correctly expanded.
 * If a previewed section contains subsections, those subsections may be wrongly given [edit] links in the preview area.
 * If you add a section heading to the very end of the wikitext without adding a blank line nor any actual content afterward, it may not be parsed as a section heading in the preview.
 * If the previewed wikitext ends in a numbered list, and it contains  but not , the references may be numbered as if they were a continuation of the numbered list.

Diffs

 * The diff algorithm may show a blank line being added to the end of the wikitext when the MediaWiki software in fact ignores said line.
 * The diff algorithm does not parse the pipe trick.
 * The diff algorithm does not parse signature markup.