Template:TBA/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:TBA (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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:dts2 (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.

[edit] Examples

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

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

Template syntax Date rendered Template syntax Using "sortbefore=yes"
{{dts2|5|March|2006|debug=yes}} 02006-03-05 5 March 2006 {{dts2|5|March|2006|debug=yes}} 02006-03-05 5 March 2006
{{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
{{dts2|15|April|2007|debug=yes}} 02007-04-15 15 April 2007 {{dts2|15|April|2007|debug=yes}} 02007-04-15 15 April 2007
{{TBA|2007|Q1|debug=yes}} 02007-03-32Q1 2007 {{TBA|2007|Q1|sortbefore=yes|debug=yes}} 02007-01-00Q1 2007
{{dts2||April|2007|debug=yes}} 02007-04 April 2007 {{dts2||April|2007|debug=yes}} 02007-04 April 2007
{{dts2|1|March|2007|debug=yes}} 02007-03-01 1 March 2007 {{dts2|1|March|2007|debug=yes}} 02007-03-01 1 March 2007