Difference between revisions of "Template:MedalCount/testcases"

From blackwiki
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:
 
}}
 
}}
  
== Actual usage, manually calculated total row ==
+
== 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:
 
}}
 
}}
  
== Actual usage, automatically calculated total row ==
+
== 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

Positions of numbered parameters

Template:Testcase table

Manually calculated total row

Template:Testcase table

Automatically calculated total row

Template:Testcase table

Automatically calculated total row, with non-numeric values

Template:Testcase table