Difference between revisions of "Template:MedalCount/testcases"
Jump to navigation
Jump to search
imported>Zyxw (add test case with actual data) |
imported>Zyxw (Add test case for optional automatically calculated total row.) |
||
| Line 1: | Line 1: | ||
{{Testcases notice <!--|toc=on-->}} | {{Testcases notice <!--|toc=on-->}} | ||
| + | == Positions of numbered parameters == | ||
{{Testcase table | {{Testcase table | ||
| _before = {{(}}{{!}} class="infobox" style="width:22em;" | | _before = {{(}}{{!}} class="infobox" style="width:22em;" | ||
| Line 18: | Line 19: | ||
}} | }} | ||
| + | == Actual usage, manually calculated total row == | ||
{{Testcase table | {{Testcase table | ||
| _before = {{(}}{{!}} class="infobox" style="width:22em;" | | _before = {{(}}{{!}} class="infobox" style="width:22em;" | ||
| Line 29: | Line 31: | ||
| {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | | {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | ||
| '''Total (135 medals)''' | '''79''' | '''31''' | '''25''' | | '''Total (135 medals)''' | '''79''' | '''31''' | '''25''' | ||
| + | }} | ||
| + | |||
| + | == Actual usage, automatically calculated total row == | ||
| + | {{Testcase table | ||
| + | | _before = {{(}}{{!}} class="infobox" style="width:22em;" | ||
| + | | _after = </table> | ||
| + | | [[Winter Olympic Games|Olympic Games]] | 8 | 4 | 1 | ||
| + | | [[Biathlon World Championships|World Championships]] | 19 | 12 | 9 | ||
| + | | {{nowrap|[[Summer Biathlon World Championships|Summer World Championships]]}} | 1 | 1 | 1 | ||
| + | | {{nowrap|[[Norwegian Biathlon Championships|Norwegian Championships]]}} | 30 | 8 | 12 | ||
| + | | {{nowrap|Summer Norwegian Championships}} | 14 | 5 | 0 | ||
| + | | {{nowrap|[[Biathlon Junior World Championships|Junior World Championships]]}} | 3 | 0 | 1 | ||
| + | | {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | ||
| + | | total = yes | ||
}} | }} | ||
Revision as of 04:26, 15 September 2015
| This is the template test cases page for the sandbox of Template:MedalCount. 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: |