Help:Sortable tables: Difference between revisions

Content deleted Content added
Forcing a column to have a particular data type: e.g. is for examples, i.e. is for definitions. ISO 8601 *is* YYYY-MM-DD format, so use i.e. Also remove "Proposed internationalisation", because a help page is for what people can do, not a wishlist of what they should be able to do.
Sort under template: update now that the old template has been deleted
Line 460:
== Sort under template ==
{{Tracked|T35249}}
{{t|sort under}} can be used to make the sorting arrows appear underneath the header text, which may be desirable to narrow the width of a column.
'''[[Template:Sort under]].''' This replaces the older deprecated template: '''[[Template:Sorting row]].''' Please replace it anywhere you see it used, because it breaks the use of the ''data-sort-type=VALUE'' attribute. See [[#Forcing a column to have a particular data type]].
 
Editors may unknowingly add that attribute in combination with the deprecated template, and not notice that the sorting is not happening exactly the way they expected. It can be a subtle change.
<syntaxhighlight lang=wikitext>
{{sort under}}
{| class="wikitable sortable sort-under"
</syntaxhighlight>
 
{{sort under}}