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: a23608742e59cf3a

Jump to content

Template:Markup/testcases

From Wikipedia, the free encyclopedia

Comparisons

[edit source]

{{Markup}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup/sandbox}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup/sandbox}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup/sandbox}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup/sandbox}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

MarkupOutput

{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup/sandbox}}

MarkupOutput

{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup/sandbox}}

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

(Backgrounds added here, not by or via template)

No parameters

[edit source]
MarkupRenders as
<s>xxxxx</s>

xxxxx

title=title

[edit source]
title
MarkupRenders as
x

x

margin-left=5.0em

[edit source]
MarkupRenders as
x

x

margin=5.0em

[edit source]
MarkupRenders as
x

x

Linewrapping

[edit source]
MarkupRenders as
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Multiline paragraphs

[edit source]
MarkupRenders as
A single newline here
has no effect on the layout.

A single newline here has no effect on the layout.

codestyle=font-size:95%;

[edit source]
MarkupRenders as
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

noheaders

[edit source]
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

col1=col1 col2=col2

[edit source]
col1col2
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

col1/2headerstyle, markupstyle

[edit source]
MarkupRenders as
{{strike|is geocentric}}

is geocentric

Row-height examples

[edit source]

No style changes

[edit source]

{{markup|col2=Output

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Ordinal to word|-1001|us=on}}

negative one thousand first

{{Ordinal to word|-100}}

negative one hundredth

{{Ordinal to word|-30}}

negative thirtieth

{{Ordinal to word|0|zeroth=not a sausage}}

not a sausage

{{Ordinal to word|30}}

thirtieth

{{Ordinal to word|100}}

one hundredth

{{Ordinal to word|1001|us=on}}

one thousand first

{{Ordinal to word|999999}}

nine hundred ninety-nine thousand nine hundred and ninety-ninth

Reduced padding

[edit source]

{{markup|col2=Output|col1style=padding:0|col2style=padding:0

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Ordinal to word|-1001|us=on}}

negative one thousand first

{{Ordinal to word|-100}}

negative one hundredth

{{Ordinal to word|-30}}

negative thirtieth

{{Ordinal to word|0|zeroth=not a sausage}}

not a sausage

{{Ordinal to word|30}}

thirtieth

{{Ordinal to word|100}}

one hundredth

{{Ordinal to word|1001|us=on}}

one thousand first

{{Ordinal to word|999999}}

nine hundred ninety-nine thousand nine hundred and ninety-ninth

All the style parameters I can think to set

[edit source]

{{markup|col2=Output|col1style=padding:0;margin=0;line-height=1|col2style=padding:0;margin=0;line-height=1|c1style=padding:0;margin=0;line-height=1|c2style=padding:0;margin=0;line-height=1|codestyle=padding:0;margin=0;line-height=1|outputstyle=padding:0;margin=0;line-height=1|style=padding:0;margin=0;line-height=1

MarkupOutput
{{Ordinal to word|-999999}}

negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Ordinal to word|-1001|us=on}}

negative one thousand first

{{Ordinal to word|-100}}

negative one hundredth

{{Ordinal to word|-30}}

negative thirtieth

{{Ordinal to word|0|zeroth=not a sausage}}

not a sausage

{{Ordinal to word|30}}

thirtieth

{{Ordinal to word|100}}

one hundredth

{{Ordinal to word|1001|us=on}}

one thousand first

{{Ordinal to word|999999}}

nine hundred ninety-nine thousand nine hundred and ninety-ninth

Simple table

[edit source]

{| class="wikitable"

MarkupOutput
{{Ordinal to word|-999999}}negative nine hundred ninety-nine thousand nine hundred and ninety-ninth
{{Ordinal to word|-1001|us=on}}negative one thousand first
{{Ordinal to word|-100}}negative one hundredth
{{Ordinal to word|-30}}negative thirtieth
{{Ordinal to word|0|zeroth=not a sausage}}not a sausage
{{Ordinal to word|30}}thirtieth
{{Ordinal to word|100}}one hundredth
{{Ordinal to word|1001|us=on}}one thousand first
{{Ordinal to word|999999}}nine hundred ninety-nine thousand nine hundred and ninety-ninth

With a table-generating template in the second parameter

[edit source]
{{Markup|<nowiki>{{payoff matrix | UL = 5 | UR = 7 | DL = 2 | DR = 9 | Name = Example usage }}</nowiki>|{{payoff matrix | UL = 5 | UR = 7 | DL = 2 | DR = 9 | Name = Example usage }}}}
{{Markup}}
MarkupRenders as
{{payoff matrix | UL = 5 | UR = 7 | DL = 2 | DR = 9 | Name = Example usage }}
Left Right
Up 5 7
Down 2 9
Example usage
{{Markup/sandbox}}
MarkupRenders as
{{payoff matrix | UL = 5 | UR = 7 | DL = 2 | DR = 9 | Name = Example usage }}
Left Right
Up 5 7
Down 2 9
Example usage

With nowiki tags inside the code example, syntaxhighlight on

[edit source]
{{Markup|1=
{| class="wikitable"
|+ Most-commonly-used parameters in horizontal format
|- style="vertical-align:top;"
|
:<code>{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |location= |isbn= |page= |pages=}}</code>

|}
 |tag=syntaxhighlight}}

{{Markup}}

MarkupRenders as
{| class="wikitable"
|+ Most-commonly-used parameters in horizontal format
|- style="vertical-align:top;"
|
:<code>{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |location= |isbn= |page= |pages=}}</code>

|}

{{Markup/sandbox}}

MarkupRenders as
{| class="wikitable" |+ Most-commonly-used parameters in horizontal format |- style="vertical-align:top;" | :<code>{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |location= |isbn= |page= |pages=}}</code> |}

Old version using internal syntaxhighlight tags, to show that the legacy pre-Parsoid parser works

[edit source]
{{Markup|
{{#parsoid

{{Markup}}

MarkupRenders as
{{csdoc|usage common}}
:<code><nowiki>{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |location= |isbn= |page= |pages=}}</nowiki></code>
{{end}}
Most-commonly-used parameters in horizontal format
{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |location= |isbn= |page= |pages=}}

{{Markup/sandbox}}

MarkupRenders as
{{csdoc|usage common}}
:<code><nowiki>{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |location= |isbn= |page= |pages=}}</nowiki></code>
{{end}}
Most-commonly-used parameters in horizontal format
{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |location= |isbn= |page= |pages=}}