Template:Year in date-sorted table/doc

From English Wikipedia @ Freddythechick

Usage

Use this in sortable tables to make a year sort properly in a column with |data-sort-type=date.

This template can be regarded as the inverse of Template:Date table sorting. Template:Date table sorting sorts dates in a column without |data-sort-type=date, and can coexist with cells with years and no template. Template:Year in date-sorted table is the inverse, and sorts years in columns with |data-sort-type=date

Example

The following tables appear identical to the reader.

<syntaxhighlight lang="wikitext">

Channel Launched
Aajtak 30 September 1995
Good News Today 5 September 2021
Dilli Aajtak 2006}}
NewsTrack 2001}}
Living AXN 22 August 2005

</syntaxhighlight>

Channel Launched
Aajtak 30 September 1995
Good News Today 5 September 2021
Dilli Aajtak 2006
NewsTrack 2001
Living AXN 22 August 2005

<syntaxhighlight lang="wikitext">

Channel Launched
Aajtak 30 September 1995}}
Good News Today 5 September 2021}}
Dilli Aajtak 2006
NewsTrack 2001
Living AXN 22 August 2005}}

</syntaxhighlight>

Channel Launched
Aajtak 30 September 1995
Good News Today 5 September 2021
Dilli Aajtak 2006
NewsTrack 2001
Living AXN 22 August 2005


TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Year in date-sorted table in articles based on its TemplateData.

TemplateData for Year in date-sorted table

Use this in sortable tables to make a year sort properly in a column with data-sort-type=date
Year1

See also