Template:Election table/testcases
This is the template test cases page for the sandbox of Template:Election table. 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 and parsers with these links: |
Named parameters test
[edit]{{election table/sandbox|template_name=Election table/testcases|title=Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
{{election table|template_name=Election table/testcases|title=Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
Named parameters test, collapsed
[edit]{{election table/sandbox|template_name=Election table/testcases|title=Title to display|collapsed=yes}}
Title to display | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parties | Votes | % | ± | Seats | ± | ||||||
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | ||||||
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | ||||||
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | ||||||
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | ||||||
Total | 13307 | 100% | 50 |
{{election table|template_name=Election table/testcases|title=Title to display|collapsed=yes}}
Title to display | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parties | Votes | % | ± | Seats | ± | ||||||
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | ||||||
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | ||||||
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | ||||||
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | ||||||
Total | 13307 | 100% | 50 |
Unnamed parameters test
[edit]{{election table/sandbox|Election table/testcases|Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
{{election table|Election table/testcases|Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
Bad edit link, named parameters test
[edit]{{election table/sandbox|template_name=Name of template|title=Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
{{election table|template_name=Name of template|title=Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
No edit link, unnamed parameters test
[edit]{{election table/sandbox|editlink=no|2=Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
{{election table|editlink=no|2=Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
Bad edit link, unnamed parameters test
[edit]{{election table/sandbox|Name of template|Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |
{{election table|Name of template|Title to display}}
Parties | Votes | % | ± | Seats | ± | |
---|---|---|---|---|---|---|
The red party | 6042 | 45.40 | -4.41 | 23 | -2 | |
The green party | 5678 | 42.67 | +1.23 | 21 | 0 | |
Free Mars | 345 | 2.59 | +2.59 | 1 | +1 | |
None of the above (unfilled seats) | 1242 | 9.33 | +.59 | 5 | +1 | |
Total | 13307 | 100% | 50 |