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 source]{{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 source]| Markup | Renders as |
|---|---|
<s>xxxxx</s> |
|
title=title
[edit source]| Markup | Renders as |
|---|---|
x |
x |
margin-left=5.0em
[edit source]| Markup | Renders as |
|---|---|
x |
x |
margin=5.0em
[edit source]| Markup | Renders as |
|---|---|
x |
x |
Linewrapping
[edit source]| Markup | Renders as |
|---|---|
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
Multiline paragraphs
[edit source]| 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 source]| 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 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]| 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 source]| Markup | Renders as |
|---|---|
{{strike|is geocentric}} |
|
Row-height examples
[edit source]No style changes
[edit source]{{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 source]{{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 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
| 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 source]{| 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 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}} | ||||||||||||||||||
| ||||||||||||||||||
| {{Markup/sandbox}} | ||||||||||||||||||
| ||||||||||||||||||
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}}
| Markup | Renders 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}}
| Markup | Renders 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}}
| Markup | Renders 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}}
|
|
{{Markup/sandbox}}
| Markup | Renders 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}}
|
| |