Template:Pre/testcases
Appearance
| This is the template test cases page for the sandbox of Template:Pre. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Live template
[edit]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.
Pipes separate parameters, so literal pipes cannot be included.
^^^^^^^^^^^^^ Escape them as {{!}} and | it's | OK.
Similarly, = is the parameter/value separator so a literal = must be escaped as {{=}}.
Or, between <nowiki>...</nowiki>, you can include | whatever = you || want.
Fourth line, multiple spaces preserved unlike in HTML and wikitext.
Fifth line, following the previous one.
Last line preceded by two blank lines in markup and in display.
{{Pre/sandbox}}
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.
Pipes separate parameters, so literal pipes cannot be included.
^^^^^^^^^^^^^ Escape them as {{!}} and | it's | OK.
Similarly, = is the parameter/value separator so a literal = must be escaped as {{=}}.
Or, between <nowiki>...</nowiki>, you can include | whatever = you || want.
Fourth line, multiple spaces preserved unlike in HTML and wikitext.
Fifth line, following the previous one.
Last line preceded by two blank lines in markup and in display.
Example from Template:AUSintcore/doc
[edit]{{Pre|1={{AUSinttop}}
<strong class="error">State not specified correctly</strong>
|LGA=
|LGAspan=
|location=
|lspan=
|type=
|km=
|road=
|notes=
}}
{{Jctbtm}}
}}
| {{Pre}} | {{Pre/sandbox}} |
|---|---|
{{AUSinttop}}
State not specified correctly
|LGA=
|LGAspan=
|location=
|lspan=
|type=
|km=
|road=
|notes=
}}
{{Jctbtm}}
|
{{AUSinttop}}
State not specified correctly
|LGA=
|LGAspan=
|location=
|lspan=
|type=
|km=
|road=
|notes=
}}
{{Jctbtm}}
|
Example from Template:Partial minor planet designation/doc
[edit]{{Pre|
#REDIRECT [[Meanings of minor planet names: 2001–3000#860]]
{{Partial minor planet designation}}
|style=font-size: smaller; color:navy; width: 500px;}}
| {{Pre}} | {{Pre/sandbox}} |
|---|---|
#REDIRECT [[Meanings of minor planet names: 2001–3000#860]]
{{Partial minor planet designation}}
|
#REDIRECT [[Meanings of minor planet names: 2001–3000#860]]
{{Partial minor planet designation}}
|
Example from Template:Supranational Oceanian Bodies/doc
[edit]{{Pre|1={{Supranational Oceanian Bodies
|size=''{{#parsoid
| {{Pre}} | {{Pre/sandbox}} |
|---|---|
{{Supranational Oceanian Bodies
|size=size in px
|align=left, right or center
|caption=text underneath diagram
}} |
{{Supranational Oceanian Bodies
|size=size in px
|align=left, right or center
|caption=text underneath diagram
}} |
Example from Template:Graphic Lab request/doc
[edit]{{Pre|1= File:Bierstadt Albert The Golden Gate.jpg | {{Graphic Lab request | request=Remove watermark | taken by=Keraunoscopia <mark style="color:black;background:lightgreen">| new file=done</mark>}}}}
| {{Pre}} | {{Pre/sandbox}} |
|---|---|
File:Bierstadt Albert The Golden Gate.jpg | {{Graphic Lab request | request=Remove watermark | taken by=Keraunoscopia | new file=done}} |
File:Bierstadt Albert The Golden Gate.jpg | {{Graphic Lab request | request=Remove watermark | taken by=Keraunoscopia | new file=done}} |