Help:Sortable tables: Difference between revisions

Content deleted Content added
Ikip (talk | contribs)
Ikip (talk | contribs)
Sorting with a hidden key: notably Ontoworld, removed added ref to asife
Line 483:
 
Example:
:<nowiki>p<span style="display:none">q</span>r</nowiki> givesdisplays p<span style="display:none">q</span>r<ref name="key">For spam protection reasons on some projects a page with <nowiki><span style="display:none"></nowiki> cannot be saved.</ref>
 
Javascript sorting is based onsorts the text inside and outside the tags, without the tags themselves. A hidden key can be put at the start. Both in the case of alphabetic and that of numeric sorting the first parts determine the order. Both parts together are used to determine the sort mode, so for numeric sorting the whole should be a valid number.
(However, on some projects, notably Ontoworld, a page with this wikitext cannot be saved, as spam protection.)
 
Javascript sorting is based on the text inside and outside the tags, without the tags themselves. A hidden key can be put at the start. Both in the case of alphabetic and that of numeric sorting the first parts determine the order. Both parts together are used to determine the sort mode, so for numeric sorting the whole should be a valid number.
 
===Alphabetic sorting with hidden key===