Template:Markup/testcases
This is the template test cases page for the sandbox of Template:Markup. 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: |
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> |
|
title=title
[edit]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}} |
|
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/sandbox}} | ||||||||||||||||||
|- |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;"| |} |