Template:TBA

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template should be used when you want to have a quarter like "Q3 2007" (third quarter of 2007), or want to sort a year or quarter at the end of that period, in sortable tables. The sortkeys produced are compatible with those of Template:dts (backlinks edit). By default time periods are sorted according to their end date. Using "sortbefore=yes" will let them sort according to their start date. See the example below for details. The result is not linked, and cannot be put in a link: due to the hidden part inside the link brackets the link would not work.

Examples[change source]

Template syntax Date rendered Template syntax Using "sortbefore=yes"
{{dts|5|March|2006}} 00005-03-2006 March 2006 5
{{TBA|2007|Q2}} 02007-06-32Q2 2007 {{TBA|2007|Q2|sortbefore=yes}} 02007-04-00Q2 2007
{{dts|||2006}} 02018 2018
{{TBA|2006}} 02006-12-33 {{TBA|2006|sortbefore=yes}} 02006
{{TBA|2007}} 02007-12-33 {{TBA|2007|sortbefore=yes}} 02007
{{dts|15|April|2007}} 00015-04-2007 April 2007 15
{{TBA|2007|Q1}} 02007-03-32Q1 2007 {{TBA|2007|Q1|sortbefore=yes}} 02007-01-00Q1 2007
{{dts||April|2007}} 02018-04-2007 April 2007 2018
{{dts|1|March|2007}} 00001-03-2007 March 2007 1

Examples with debug=yes (hidden parts are made visible):

Template syntax Date rendered Template syntax Using "sortbefore=yes"
{{dts|5|March|2006|debug=yes}} 00005-03-2006 March 2006 5 {{dts|5|March|2006|debug=yes}} 00005-03-2006 March 2006 5
{{TBA|2007|Q2|debug=yes}} 02007-06-32Q2 2007 {{TBA|2007|Q2|sortbefore=yes|debug=yes}} 02007-04-00Q2 2007
{{TBA|2006|debug=yes}} 02006-12-33 {{TBA|2006|sortbefore=yes|debug=yes}} 02006
{{TBA|2007|debug=yes}} 02007-12-33 {{TBA|2007|sortbefore=yes|debug=yes}} 02007
{{dts|15|April|2007|debug=yes}} 00015-04-2007 April 2007 15 {{dts|15|April|2007|debug=yes}} 00015-04-2007 April 2007 15
{{TBA|2007|Q1|debug=yes}} 02007-03-32Q1 2007 {{TBA|2007|Q1|sortbefore=yes|debug=yes}} 02007-01-00Q1 2007
{{dts||April|2007|debug=yes}} 02018-04-2007 April 2007 2018 {{dts||April|2007|debug=yes}} 02018-04-2007 April 2007 2018
{{dts|1|March|2007|debug=yes}} 00001-03-2007 March 2007 1 {{dts|1|March|2007|debug=yes}} 00001-03-2007 March 2007 1