Difference between revisions of "Template:Composition bar/testcases"
Jump to navigation
Jump to search
imported>Matt Fitzpatrick m (width/transparency) |
imported>Matt Fitzpatrick (tweaking tests to reflect new default width=100%) |
||
| Line 3: | Line 3: | ||
{{Testcase table|_showcode=yes|50|100|red}} | {{Testcase table|_showcode=yes|50|100|red}} | ||
{{Testcase table|_showcode=yes|50|100|color=#FF3|text-shadow=#066|border-color=#606|per=1}} | {{Testcase table|_showcode=yes|50|100|color=#FF3|text-shadow=#066|border-color=#606|per=1}} | ||
| − | {{Testcase table|_showcode=yes|50|100|#9999FF|width= | + | {{Testcase table|_showcode=yes|50|100|#9999FF|width=50%}} |
{{Testcase table|_showcode=yes|50|100|{{Green Party (UK)/meta/color}}}} | {{Testcase table|_showcode=yes|50|100|{{Green Party (UK)/meta/color}}}} | ||
<div style="position: absolute; margin-top: 100px; z-index: -1">[[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]]</div> | <div style="position: absolute; margin-top: 100px; z-index: -1">[[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]]</div> | ||
| − | {{Testcase table|_showcode=yes|50|100|rgba(0,255,255,0.8)|background-color=rgba(0,255,255,0.4) | + | {{Testcase table|_showcode=yes|50|100|rgba(0,255,255,0.8)|background-color=rgba(0,255,255,0.4)}} |
<div style="position: absolute; margin-top: 100px; z-index: -1">[[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]]</div> | <div style="position: absolute; margin-top: 100px; z-index: -1">[[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]][[File:Ballot Box Silhouette.svg|100px|link=|alt=]]</div> | ||
| − | {{Testcase table|_showcode=yes|75|100|#FF0|background-color=transparent|border-color=#333 | + | {{Testcase table|_showcode=yes|75|100|#FF0|background-color=transparent|border-color=#333}} |
| − | {{Testcase table|_showcode=yes|90|100|#F00 | + | {{Testcase table|_showcode=yes|90|100|#F00|per=1}} |
| − | {{Testcase table|_showcode=yes|1|1024|#F00 | + | {{Testcase table|_showcode=yes|1|1024|#F00|per=1}} |
| − | * This is a test to use the live template inline that should work {{Composition bar|100|100|#008000|per=1}} of the time, as that would be ideal. | + | * This is a test to use the live template inline that should work {{Composition bar|100|100|#008000|width=auto|per=1}} of the time, as that would be ideal. |
| − | * This is a test to use the sandbox version inline that should work {{Composition bar/sandbox|100|100|#008000|per=1}} of the time, as that would be ideal. | + | * This is a test to use the sandbox version inline that should work {{Composition bar/sandbox|100|100|#008000|width=auto|per=1}} of the time, as that would be ideal. |
Revision as of 05:01, 23 February 2017
| 42px | This is the template test cases page for the sandbox of Template:Composition bar. Script error: No such module "Purge". 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 with these links: |
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Template:Testcase table Template:Testcase table Template:Testcase table
- This is a test to use the live template inline that should work 100 / 100 (Expression error: Unrecognized punctuation character "[".%)<div style="background-color:
- 008000; width: Expression error: Unrecognized punctuation character "[".%; height: 100%;"> of the time, as that would be ideal.
- This is a test to use the sandbox version inline that should work 100 / 100 (Expression error: Unrecognized punctuation character "[".%)<div style="background-color:
- 008000; width: Expression error: Unrecognized punctuation character "[".%; height: 100%;"> of the time, as that would be ideal.