Coasterpedia
Log in

Template:Td

Template:Td

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

Template documentation (for the above template, sometimes hidden or invisible)

Contents

This template is used to add date sorting and formatting to a table cell.

Usage[edit source]

Enter the desired date as the first parameter as per the table below. A month and day are not required. For year pages, the year is omitted.

Cell contents Result
{{td|20181209}} December 9, 2018
{{td|201812}} December 2018
{{td|2018}} 2018
{{td|1209}} December 9
{{td|12}} December

For unknown dates, {{unknown}} is used.


Visit Template:Td/doc to edit this text! (How does this work?)

Formats dates to allow sorting and formatting in table cells.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Date1

Numeric date, such as "20180719", "201807" or "2018". On year pages, the year may be left out so July 19th would be "0719" and July is "07"

Default
empty
Example
20180719
Auto value
empty
Unknownrequired