Template:Circa/doc/sortable: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
m 1 revision imported: Templates and CSS files
imported>Timeshifter
Clarify
 
Line 1: Line 1:
If the parameter "<code>sortable=yes</code>" is specified, the template generates invisible text that will cause the output to work in [[Help:Sorting|sortable]] [[Help:Tables|tables]], at the cost of adding those words (read-out, audibly) by many screen readers. The benefit is effective, clickable arrows as in "Col&nbsp;2" below:
If the parameter "<code>sortable=yes</code>" is specified, the template generates invisible text that will cause the column to sort correctly in [[Help:Sorting|sortable]] [[Help:Tables|tables]], It is at the cost though of having that invisible text read out audibly by many screen readers. "Col&nbsp;1" without the parameter does not sort correctly. "Col&nbsp;2" with the sortable parameter sorts correctly.


{| class="sortable wikitable"
{| class="sortable wikitable"

Latest revision as of 07:35, 23 February 2023

If the parameter "sortable=yes" is specified, the template generates invisible text that will cause the column to sort correctly in sortable tables, It is at the cost though of having that invisible text read out audibly by many screen readers. "Col 1" without the parameter does not sort correctly. "Col 2" with the sortable parameter sorts correctly.

Title Col 1 Col 2
Foo 1066 1066
Bar c. 1510 1510 c. 1510
Baz 1956 1956
Jaz c. 410 0410 c. 410