Difference between revisions of "Template:Sort"

From Krafties
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>data-sort-value="{{{1}}}"</includeonly>
+
<onlyinclude>data-sort-value="{{{1}}}"</onlyinclude>
 
{|{{Template Explanation}} [[Category:Templates]]
 
{|{{Template Explanation}} [[Category:Templates]]
 
This template will add the "data-sort-value", which lets you control how it is sorted in a sortable table
 
This template will add the "data-sort-value", which lets you control how it is sorted in a sortable table

Revision as of 05:18, 1 July 2015

data-sort-value="{{{1}}}"

Documentation icon Template documentation ( view · talk · edit)

Template:Sort/doc

The above documentation is transcluded from Template:Sort/doc.
Editors can experiment in this template's sandbox
Please add categories to the /doc subpage within <includeonly>...</includeonly>

This template will add the "data-sort-value", which lets you control how it is sorted in a sortable table

Very useful when you want to sort something by category/group rather than spelling

How to use

  • {{sort|1}}
    You replace 1 with what sort value you want, which will overwrite whatever is written in the table cell (basically dismisses it's spelling when sorting alphabetically). You can use numbers too