Template:Sort: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Created template)
 
m (This works better.)
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>

Revision as of 18:50, October 10, 2012

Purpose

This is a simple template used to change the sorting value of a cell within a table with the sortable class.

Usage

To use this template, place the following in the attributes section of the cell:
{{Sort| Sorting Text }}

  • Sorting Text — Text to sort the cell by.