Template:Sortkey: Difference between revisions
Content added Content deleted
CoreyPlover (talk | contribs) (Created page with "<includeonly><span style="display:none">{{{1}}}</span></includeonly>") |
CoreyPlover (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="display:none">{{{1}}}</span></includeonly> |
<includeonly><span style="display:none">{{{1}}}</span></includeonly><noinclude>__NOTOC__ |
||
===Description=== |
|||
This template is designed to simplify the process of writing [http://meta.wikimedia.org/wiki/Help:Sorting sorted tables]. |
|||
===Syntax=== |
|||
<pre><nowiki>{{sortkey |
|||
| Hidden key to be sorted |
|||
}}</nowiki></pre> |
|||
===Example=== |
|||
{| class="wikitable sortable" |
|||
! Date !! Day !! Present |
|||
|- |
|||
|{{sortdate|2008-01-05}} |
|||
| 12 || {{sortkey|drummers}}twelve '''drummers''' drumming |
|||
|- |
|||
|{{sortdate|2008-01-04}} |
|||
| 11 || {{sortkey|pipers}}eleven '''pipers''' piping |
|||
|- |
|||
|{{sortdate|2008-01-03}} |
|||
| 10 || {{sortkey|lords}}ten '''lords''' a-leaping |
|||
|- |
|||
|{{sortdate|2008-01-02}} |
|||
| 9 || {{sortkey|ladies}}nine '''ladies''' dancing |
|||
|- |
|||
|{{sortdate|2008-01-01}} |
|||
| 8 || {{sortkey|maids}}eight '''maids''' a-milking |
|||
|- |
|||
|{{sortdate|2007-12-31}} |
|||
| 7 || {{sortkey|swans}}seven '''swans''' a-swimming |
|||
|- |
|||
|{{sortdate|2007-12-30}} |
|||
| 6 || {{sortkey|geese}}six '''geese''' a-laying |
|||
|- |
|||
|{{sortdate|2007-12-29}} |
|||
| 5 || {{sortkey|gold}}five '''golden rings''' |
|||
|- |
|||
|{{sortdate|2007-12-28}} |
|||
| 4 || {{sortkey|calling birds}}four '''calling birds''' |
|||
|- |
|||
|{{sortdate|2007-12-27}} |
|||
| 3 || {{sortkey|french hens}}three '''french hens''' |
|||
|- |
|||
|{{sortdate|2007-12-26}} |
|||
| 2 || {{sortkey|turtle doves}}two '''turtle doves''' |
|||
|- |
|||
|{{sortdate|2007-12-25}} |
|||
| 1 || {{sortkey|partridge]]}}a '''partridge''' in a pear tree |
|||
|} |
|||
===Notes=== |
|||
See MediaWiki's meta-article on [http://meta.wikimedia.org/wiki/Help:Sorting sorting tables] for further information |
|||
</noinclude> |
Latest revision as of 04:25, 16 September 2023
Description[edit source]
This template is designed to simplify the process of writing sorted tables.
Syntax[edit source]
{{sortkey | Hidden key to be sorted }}
Example[edit source]
Date | Day | Present |
---|---|---|
5-Jan-08 | 12 | twelve drummers drumming |
4-Jan-08 | 11 | eleven pipers piping |
3-Jan-08 | 10 | ten lords a-leaping |
2-Jan-08 | 9 | nine ladies dancing |
1-Jan-08 | 8 | eight maids a-milking |
31-Dec-07 | 7 | seven swans a-swimming |
30-Dec-07 | 6 | six geese a-laying |
29-Dec-07 | 5 | five golden rings |
28-Dec-07 | 4 | four calling birds |
27-Dec-07 | 3 | three french hens |
26-Dec-07 | 2 | two turtle doves |
25-Dec-07 | 1 | a partridge in a pear tree |
Notes[edit source]
See MediaWiki's meta-article on sorting tables for further information