Template:Pre/testcases

From Wikipedia, the free encyclopedia

This is the template test case page for the Template:Pre/sandbox of Template:Pre. Purge this page to update examples.
If there are many examples of a complicated templates, latter ones may break due to limits added into MediaWiki, which are stated in a HTML comment "NewPP limit report".

Contents

[edit] Live template

Below is a display of the current live template, with testing data. See section below for the current sandbox display.

pre
First line, markup working: and HTML comment hidden.

Second line, long text wrapping: all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy.

Third line with raw| pipe is handled, but the space before the pipe is lost. Up to raw 19 pipes are handled, else use {{!}} and | it's | OK.

Fourth line, multiples spaces collapsed into one as in HTML and wikitext. Fifth line, stuck with the previous one if no blank line between them.

Last line, is actually standalone with or without a blank line.

End of live template display.

[edit] Sandbox template

Below is a display of the current sandbox template, with testing data. See section above for the current template display.

pre
First line, markup working: and HTML comment hidden.

Second line, long text wrapping: all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy.

Third line with raw| pipe is handled, but the space before the pipe is lost. Up to raw 19 pipes are handled, else use {{!}} and | it's | OK.

Fourth line, multiples spaces collapsed into one as in HTML and wikitext. Fifth line, stuck with the previous one if no blank line between them.

Last line, is actually standalone with or without a blank line.

End of sandbox template display.