Template:TBA/doc

< Template:TBA

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 (talk, 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

Template syntax Date rendered Template syntax Using "sortbefore=yes"
{{dts|5|March|2006}} Error in Template:Dts: days must be an integer between 1 and 31
{{TBA|2007|Q2}} 2007 {{TBA|2007|Q2|sortbefore=yes}} 2007
{{dts|||2006}} Error in Template:Dts: days must be an integer between 1 and 31
{{TBA|2006}} 2006 {{TBA|2006|sortbefore=yes}} 2006
{{TBA|2007}} 2007 {{TBA|2007|sortbefore=yes}} 2007
{{dts|15|April|2007}} Error in Template:Dts: days must be an integer between 1 and 31
{{TBA|2007|Q1}} 2007 {{TBA|2007|Q1|sortbefore=yes}} 2007
{{dts||April|2007}} Error in Template:Dts: days must be an integer between 1 and 31
{{dts|1|March|2007}} Error in Template:Dts: days must be an integer between 1 and 31

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

Template syntax Date rendered Template syntax Using "sortbefore=yes"
{{dts|5|March|2006|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31 {{dts|5|March|2006|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31
{{TBA|2007|Q2|debug=yes}} 2007 {{TBA|2007|Q2|sortbefore=yes|debug=yes}} 2007
{{TBA|2006|debug=yes}} 2006 {{TBA|2006|sortbefore=yes|debug=yes}} 2006
{{TBA|2007|debug=yes}} 2007 {{TBA|2007|sortbefore=yes|debug=yes}} 2007
{{dts|15|April|2007|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31 {{dts|15|April|2007|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31
{{TBA|2007|Q1|debug=yes}} 2007 {{TBA|2007|Q1|sortbefore=yes|debug=yes}} 2007
{{dts||April|2007|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31 {{dts||April|2007|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31
{{dts|1|March|2007|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31 {{dts|1|March|2007|debug=yes}} Error in Template:Dts: days must be an integer between 1 and 31