Jump to content

Template:Markup/testcases

From Wikipedia, the free encyclopedia

Comparisons

[edit]

{{Markup}}

Markup Output
{{Ordinal to word|-999999}}

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

{{Markup/sandbox}}

Markup Output

{{Ordinal to word|-999999}}
negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

Markup Output
{{Ordinal to word|-999999}}

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

{{Markup/sandbox}}

Markup Output

{{Ordinal to word|-999999}}
negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

Markup Output
{{Ordinal to word|-999999}}

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

{{Markup/sandbox}}

Markup Output

{{Ordinal to word|-999999}}
negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

Markup Output
{{Ordinal to word|-999999}}

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

{{Markup/sandbox}}

Markup Output

{{Ordinal to word|-999999}}
negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

Markup Output

{{Ordinal to word|-999999}}

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

{{Markup/sandbox}}

Markup Output

{{Ordinal to word|-999999}}
negative nine hundred ninety-nine thousand nine hundred and ninety-ninth

{{Markup}}

Markup Output
{{Ordinal to word|-999999}}

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

{{Markup/sandbox}}

Markup Output

{{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]
Markup Renders as

<s>xxxxx</s>
xxxxx

title=title

[edit]
title
Markup Renders as

x
x

margin-left=5.0em

[edit]
Markup Renders as

x
x

margin=5.0em

[edit]
Markup Renders as

x
x

Linewrapping

[edit]
Markup Renders as

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Multiline paragraphs

[edit]
Markup Renders 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]
Markup Renders 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]
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]
col1 col2

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]
Markup Renders as

{{strike|is geocentric}}
is geocentric

Row-height examples

[edit]

No style changes

[edit]

{{markup|col2=Output

Markup Output
{{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]

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

Markup Output
{{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]

{{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

Markup Output
{{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]

{| class="wikitable"

Markup Output
{{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]
{{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}}
Markup Renders 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}}
Markup Renders as

{{payoff matrix | UL = 5 | UR = 7 | DL = 2 | DR = 9 | Name = Example usage }}
{| id="Payoff matrix" style="background:white; float: right; clear:right; text-align:center;" align=right cellspacing=0 cellpadding=8 width=225
Left Right
Up 5 7
Down 2 9
Example usage

|- |style="border-width:1px;border-style: none none none;border-color:#ddd; padding:5px; vertical-align:top;"| |style="border-width:1px;border-style: none none none;border-color:#ddd; padding:5px; vertical-align:top;"|

|}