Template:Background color/testcases
Appearance
This is the template test cases page for the sandbox of Template:Background color. 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: |
{{Background color|#00FF00|should be lime}}
{{Background color}}
should be lime
should be lime
{{Background color|green|should be green}}
{{Background color}}
should be green
should be green
{{Background color|purplish|should fall back to default}}
{{Background color}}
should fall back to default
should fall back to default
{{Background color|rgb(100% 100% 0%)|should be yellow}}
{{Background color}}
should be yellow
should be yellow
{{Background color|lime|should span the full width|element=div}}
{{Background color}}
should span the full width
should span the full width
{{Background color|lime|should have inner padding and outer margins|element=p}}
{{Background color}}
should have inner padding and outer margins
should have inner padding and outer margins
{{Background color|red|should fail|element=test}}
{{Background color}}
should fail
<test style="background-color: red">should fail</test>