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 الگو: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 ویرایش

Template syntax Date rendered Template syntax Using "sortbefore=yes"
{{TBA|2007|Q2}} 2007 {{TBA|2007|Q2|sortbefore=yes}} 2007
{{TBA|2006}} 2006 {{TBA|2006|sortbefore=yes}} 2006
{{TBA|2007}} 2007 {{TBA|2007|sortbefore=yes}} 2007
{{TBA|2007|Q1}} 2007 {{TBA|2007|Q1|sortbefore=yes}} 2007

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

Template syntax Date rendered Template syntax Using "sortbefore=yes"
{{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
{{TBA|2007|Q1|debug=yes}} 2007 {{TBA|2007|Q1|sortbefore=yes|debug=yes}} 2007