Difference between revisions of "Template:MedalCount/testcases"
Jump to navigation
Jump to search
imported>Zyxw (Add test case for optional automatically calculated total row.) |
imported>Zyxw (update) |
||
Line 3: | Line 3: | ||
== Positions of numbered parameters == | == Positions of numbered parameters == | ||
{{Testcase table | {{Testcase table | ||
+ | | _collapsible = yes | ||
| _before = {{(}}{{!}} class="infobox" style="width:22em;" | | _before = {{(}}{{!}} class="infobox" style="width:22em;" | ||
| _after = </table> | | _after = </table> | ||
Line 19: | Line 20: | ||
}} | }} | ||
− | == | + | == Manually calculated total row == |
{{Testcase table | {{Testcase table | ||
+ | | _collapsible = yes | ||
| _before = {{(}}{{!}} class="infobox" style="width:22em;" | | _before = {{(}}{{!}} class="infobox" style="width:22em;" | ||
| _after = </table> | | _after = </table> | ||
Line 33: | Line 35: | ||
}} | }} | ||
− | == | + | == Automatically calculated total row == |
{{Testcase table | {{Testcase table | ||
+ | | _collapsible = yes | ||
| _before = {{(}}{{!}} class="infobox" style="width:22em;" | | _before = {{(}}{{!}} class="infobox" style="width:22em;" | ||
| _after = </table> | | _after = </table> | ||
Line 43: | Line 46: | ||
| {{nowrap|Summer Norwegian Championships}} | 14 | 5 | 0 | | {{nowrap|Summer Norwegian Championships}} | 14 | 5 | 0 | ||
| {{nowrap|[[Biathlon Junior World Championships|Junior World Championships]]}} | 3 | 0 | 1 | | {{nowrap|[[Biathlon Junior World Championships|Junior World Championships]]}} | 3 | 0 | 1 | ||
+ | | {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | ||
+ | | total = yes | ||
+ | }} | ||
+ | |||
+ | == Automatically calculated total row, with non-numeric values == | ||
+ | {{Testcase table | ||
+ | | _collapsible = yes | ||
+ | | _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 | – | ||
+ | | {{nowrap|[[Biathlon Junior World Championships|Junior World Championships]]}} | 3 | – | 1 | ||
| {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | | {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | ||
| total = yes | | total = yes | ||
}} | }} |
Latest revision as of 20:50, 9 August 2017
![]() | 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: |