Difference between revisions of "Template:Bar percent/testcases"
Jump to navigation
Jump to search
imported>Ahecht (titles) |
imported>Ahecht (→Test2: add testcase) |
||
| Line 68: | Line 68: | ||
{{bar percent/sandbox|bar|indigo|40|barwidth=500px|note=This is a note}} | {{bar percent/sandbox|bar|indigo|40|barwidth=500px|note=This is a note}} | ||
{{bar percent/sandbox|barbar|violet|40|bg=LightGray|barwidth=500px|note=So is this}} | {{bar percent/sandbox|barbar|violet|40|bg=LightGray|barwidth=500px|note=So is this}} | ||
| + | }} | ||
| + | |||
| + | == Test3 == | ||
| + | <pre>{{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=}} | ||
| + | }} | ||
| + | {{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=500}} | ||
| + | }} | ||
| + | {{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=500px}} | ||
| + | }} | ||
| + | {{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=Invalid}} | ||
| + | }}</pre> | ||
| + | |||
| + | ===[[:Template:Bar percent]]=== | ||
| + | {{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=}} | ||
| + | }} | ||
| + | {{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=500}} | ||
| + | }} | ||
| + | {{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=500px}} | ||
| + | }} | ||
| + | {{Bar box|bars= | ||
| + | {{bar percent||violet|40|bg=LightGray|barwidth=Invalid}} | ||
| + | }} | ||
| + | |||
| + | ===[[:Template:Bar percent/sandbox]]=== | ||
| + | {{Bar box/sandbox|bars= | ||
| + | {{bar percent/sandbox||violet|40|bg=LightGray|barwidth=}} | ||
| + | }} | ||
| + | {{Bar box/sandbox|bars= | ||
| + | {{bar percent/sandbox||violet|40|bg=LightGray|barwidth=500}} | ||
| + | }} | ||
| + | {{Bar box/sandbox|bars= | ||
| + | {{bar percent/sandbox||violet|40|bg=LightGray|barwidth=500px}} | ||
| + | }} | ||
| + | {{Bar box/sandbox|bars= | ||
| + | {{bar percent/sandbox||violet|40|bg=LightGray|barwidth=Invalid}} | ||
}} | }} | ||
Revision as of 14:31, 15 April 2020
| This is the template test cases page for the sandbox of Template:Bar percent. 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: |
Contents
Test1
{{Bar box|bars=
{{bar percent|foo|red|30}}
{{bar percent|bar|green|40}}
{{bar percent|baz|blue|20}}
{{bar percent|bla|orange|8}}
{{bar percent|bla|teal|2|1/50}}
}}
Template:Bar percent
Template:Bar percent/sandbox
Test2
{{Bar box|bars=
{{bar percent|foo|red|30|bg=LightGray|barwidth=500px}}
{{bar percent||green|40|barwidth=500px}}
{{bar percent|bg=LightGray|barwidth=500px|baz|blue}}
{{bar percent|baz|blue|bg=LightGray|barwidth=500px}}
{{bar percent|baz|blue||bg=LightGray|barwidth=500px}}
{{bar percent|barwidth=500px|1=bla|3=8}}
{{bar percent|bla||8|barwidth=500px}}
{{bar percent|blah|teal|2|1/50|bg=LightGray|barwidth=500px}}
{{bar percent|bar|indigo|40|barwidth=500px|note=This is a note}}
{{bar percent|barbar|violet|40|bg=LightGray|barwidth=500px|note=So is this}}
}}
Template:Bar percent
Template:Bar percent/sandbox
Test3
{{Bar box|bars=
{{bar percent||violet|40|bg=LightGray|barwidth=}}
}}
{{Bar box|bars=
{{bar percent||violet|40|bg=LightGray|barwidth=500}}
}}
{{Bar box|bars=
{{bar percent||violet|40|bg=LightGray|barwidth=500px}}
}}
{{Bar box|bars=
{{bar percent||violet|40|bg=LightGray|barwidth=Invalid}}
}}
Template:Bar percent
Template:Bar percent/sandbox