Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2267ad97a97879c

Jump to content

Template:Pre/testcases

From Wikipedia, the free encyclopedia

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}}
}}
Side by side comparison
{{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;}}
Side by side comparison
{{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
Side by side comparison
{{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>}}}}
Side by side comparison
{{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}}