Template:Su/testcases
This is the template test cases page for the sandbox of Template:Su. 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: |
Simple example
[edit]X{{su|p=p}}X{{su|b=b}}X{{su|p=p|b=b}}X
Main
Xp
X
bXp
bX
Sandbox
Xp
X
bXp
bX
Left aligned (default)
[edit]X{{su|p=paaaa|b=b}}X{{su|p=p|b=bbbbb}}X
Main
Xpaaaa
bXp
bbbbbX
Sandbox
Xpaaaa
bXp
bbbbbX
Right aligned
[edit]X{{su|a=r|p=paaaa|b=b}}X{{su|a=r|p=p|b=bbbbb}}X
Main
Xpaaaa
bXp
bbbbbX
Sandbox
Xpaaaa
bXp
bbbbbX
Center aligned
[edit]X{{su|a=c|p=paaaa|b=b}}X{{su|a=c|p=p|b=bbbbb}}X
Main
Xpaaaa
bXp
bbbbbX
Sandbox
Xpaaaa
bXp
bbbbbX
Smaller font
[edit]<small>X{{su|p=p}}X{{su|b=b}}X{{su|p=p|b=b}}X</small>
Main
Xp
X
bXp
bX
Sandbox
Xp
X
bXp
bX
Larger font
[edit]<big>X{{su|p=p}}X{{su|b=b}}X{{su|p=p|b=b}}X</big>
Main
Xp
X
bXp
bX
Sandbox
Xp
X
bXp
bX
Fixed width
[edit]X{{su|p=...|b=www}}X{{su|w=f|p=...|b=www}}X
Main
X...
wwwX...
wwwX
Sandbox
X...
wwwX...
wwwX
Small letter
[edit]''a''{{su|p=2|b=0}} / ''a''{{su|p=2}} / ''a''{{su|b=0}}, compare to superscript: ''a''<sup>2</sup> and subscript: ''a''<sub>0</sub>
Main
a2
0 / a2
/ a
0, compare to superscript: a2 and subscript: a0
Sandbox
a2
0 / a2
/ a
0, compare to superscript: a2 and subscript: a0
Line breaks
[edit]XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{{su|p=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|b=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Main
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Sandbox
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX