Template:Resize/testcases
Appearance
This is the template test cases page for the sandbox of Template:Resize. 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: |
Size parameter
{{Resize|This text is 200% normal size.|size=200%}}
{{Resize}}
This text is 200% normal size.
{{Resize/sandbox}}
This text is 200% normal size.
Test0
Test1
{{Resize|This text defaults to 90% normal size.}}
{{Resize}}
This text defaults to 90% normal size.
{{Resize/sandbox}}
This text defaults to 90% normal size.
Test2
{{Resize|80%|This text is 80% normal size.}}
{{Resize}}
This text is 80% normal size.
{{Resize/sandbox}}
This text is 80% normal size.
Test3
{{Resize|1.2em|This text is 0.2em larger than normal.}}
{{Resize}}
This text is 0.2em larger than normal.
{{Resize/sandbox}}
This text is 0.2em larger than normal.
Test4
{{Resize|We know 1+1=2 and 2+2=4. It will fail to render}}
{{Resize}}
{{{1}}}
{{Resize/sandbox}}
{{{1}}}
Test5
{{Resize|1=We know 1+1=2 and 2+2=4.}}
{{Resize}}
We know 1+1=2 and 2+2=4.
{{Resize/sandbox}}
We know 1+1=2 and 2+2=4.
Test6
{{Resize|1=We know 1+1=2 and 2+2=4.}}
{{Resize}}
We know 1+1=2 and 2+2=4.
{{Resize/sandbox}}
We know 1+1=2 and 2+2=4.
Test7
{{Resize|120%|2=We know 1+1=2 and 2+2=4. This text is 120% normal size.}}
{{Resize}}
We know 1+1=2 and 2+2=4. This text is 120% normal size.
{{Resize/sandbox}}
We know 1+1=2 and 2+2=4. This text is 120% normal size.
Test8
Test9
Test10