Parser testing
Jump to navigation
Jump to search
This page is outdated, but if it was updated, it might still be useful. Please help by correcting, augmenting and revising the text into an up-to-date form. |
These pages contain parser test cases designed to test various aspects of parser behaviour. By checking whether the output is correct, the developers can find and fix bugs. Please add examples of usual and unusual formatting.
Test cases are defined by some input and show the expected result as inline and raw html :
- the wiki input
- what you see
- the html code
Few subpages :
- /strip -- <nowiki>, <pre>, etc.
- /removeHTMLtags -- removal of bad HTML, e.g. <applet>
- /replaceVariables -- everything inside double braces
- /doAllQuotes -- bold and italic involving quotes
- /replaceExternalLinks -- external links
- /doMagicLinks -- RFC, ISBN and GEO
- /replaceInternalLinks -- internal links
- /doTableStuff -- wiki tables
- /formatHeadings -- headings and TOC
- /fixtags and tidy -- e.g. <br> to <br />
- /doBlockLevels -- lists and HTML-like formatting
- /openTagsInTemplates -- opening a div in one template and closing in another
To get all these pages, you can paste the following into Special:Export:
Parser testing/strip Parser testing/removeHTMLtags Parser testing/replaceVariables Parser testing/doAllQuotes Parser testing/replaceExternalLinks Parser testing/doMagicLinks Parser testing/replaceInternalLinks Parser testing/doTableStuff Parser testing/formatHeadings Parser testing/fixtags and tidy Parser testing/doBlockLevels
This is related to the test in git , these things should be somewhat leveled