Template:Sort: Difference between revisions

Want an adless experience? Log in or Create an account.
m
Text replacement - "<br>" to "<br/>"
(Created template)
 
m (Text replacement - "<br>" to "<br/>")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<span style="display:none;">{{{1}}}</span><noinclude>
<includeonly>data-sort-value="{{{1}}}"</includeonly><noinclude>
==Purpose==
==Purpose==
This is a simple template used to change the sorting order of a cell within a table with the ''sortable'' class.
This is a simple template used to change the sorting value of a cell within a table with the ''sortable'' class.


==Usage==
==Usage==
To use this template, place the following at the very beginning of the cell before other content:<br>
To use this template, place the following in the attributes section of the cell:<br/>
{{Usage|Sorting Text}}
{{Usage|Sorting Text}}
{{Usage/Param|Sorting Text|Text to sort the cell by.}}
{{Usage/Param|Sorting Text|Text to sort the cell by.}}
{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}
</noinclude>
</noinclude>