Template:Static row numbers/testcases
![]() | This is the template test cases page for the sandbox of Template:Static row numbers. 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: |
__EXPECTUNUSEDTEMPLATE__
![]() | This template uses TemplateStyles: |
Uses {{static row numbers/sandbox}}. Note that it's not possible to compare the live and sandbox versions of styles.css on the same page since they would compete with each other.
Test ranking on sortable wikitable
Produces:
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2,6,8,14,16,22,24">
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
</syntaxhighlight>
Test ranking on sortable plain table with borders
Produces:
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2,6,8,14,16,22,24">
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
</syntaxhighlight>
Test ranking on sortable plain table without borders
Produces:
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2,6,8,14,16,22,24">
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
</syntaxhighlight>
Test ranking on wikitable
Produces:
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2,6,8,14,16,22,24">
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
</syntaxhighlight>
Test ranking on plain table with borders
Produces:
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2,6,8,14,16,22,24">
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
</syntaxhighlight>
Test ranking on plain table without borders
Produces:
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2,6,8,14,16,22,24">
Header |
---|
Top 1 |
Top 2 |
Rank 1 |
Rank 2 |
Norank 1 |
Norank 2 |
Rank 3 |
Rank 4 |
Bottom 1 |
Bottom 2 |
</syntaxhighlight>
Test first row auto no-rank on sortable wikitable
Produces:
Header |
---|
Data |
Data |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2">
Header |
---|
Data |
Data |
</syntaxhighlight>
Test first row auto no-rank on sortable plain table
Plain table border added to aid comparison.
Produces:
Header |
---|
Data |
Data |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2">
Header |
---|
Data |
Data |
</syntaxhighlight>
Test first row auto no-rank on wikitable
Produces:
Header |
---|
Data |
Data |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2">
Header |
---|
Data |
Data |
</syntaxhighlight>
Test first row auto no-rank on plain table
Plain table border added to aid comparison.
Produces:
Header |
---|
Data |
Data |
Wikitext: <syntaxhighlight lang="wikitext" highlight="1-2">
Header |
---|
Data |
Data |
</syntaxhighlight>
Test column label on sortable wikitable
Uses static-row-header-hash
class to display hash ("#") text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Uses static-row-header-text
class to display "No." text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Test column label on sortable plain table
Plain table border added to aid comparison.
Uses static-row-header-hash
class to display hash ("#") text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Uses static-row-header-text
class to display "No." text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Test column label on wikitable
Uses static-row-header-hash
class to display hash ("#") text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Uses static-row-header-text
class to display "No." text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Test column label on plain table
Plain table border added to aid comparison.
Uses static-row-header-hash
class to display hash ("#") text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Uses static-row-header-text
class to display "No." text:
Header 1 | Header group 1 | Header group 2 (long to see alignment when wrapped on narrow screen) | |||
---|---|---|---|---|---|
Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | |
Data | Data | Data | Data | Data | Data |
Data | Data | Data | Data | Data | Data |
Test template row hover highlight
Uses {{row hover highlight}}.
In the Timeless skin, plain tables with the mw-datatable
class and without the border
attribute have borders. This template fixes the missing borders in the numbers column.
Header |
---|
Data |
Data |
Header |
---|
Data |
Data |