Template:Date link/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "{{User:SOTO/Infobox Story |broadcast date = 17 June 2017 |beta release date = June 2005 |premiere = 1965 (note) |release date = 16 October 1996 |cover date = Winter 2016 }}{{N...")
 
(Added Template documentation category)
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|beta release date = June 2005
|beta release date = June 2005
|premiere = 1965 (note)
|premiere = 1965 (note)
|release date = 16 October 1996
|release date = 16-19 October 1996
|cover date = Winter 2016
|cover date = Winter 2016
}}{{NOTOC}}
}}
{{tlx|date link}} is a template used in infoboxes to autolink date variables. Use of the template is very simple.
{{tlx|date link}}, or {{tlx|dl}}, is a template '''used in infoboxes''' to autolink date variables. This template is not to be confused with {{tlx|d}}, which simply makes a link to a singular date article, like {{d|2008|re}} or {{d|23 November|pr}}.
 
Use of the template is very simple.


{{tlx|dl|{{CURRENTDATE}}}} (in this instance, the current date) will automatically link to that release date ({{dl/text|{{CURRENTDATE}}}}). It will also set SMW for that page to recognise that release date.
{{tlx|dl|{{CURRENTDATE}}}} (in this instance, the current date) will automatically link to that release date ({{dl/text|{{CURRENTDATE}}}}). It will also set SMW for that page to recognise that release date.
Line 19: Line 21:


==== For cover dates ====
==== For cover dates ====
* {{tlx|da|Spring 2017}} => {{dl|Spring 2017}} ''(SMW: {{dl/n|Spring 2017}})''
* {{tlx|dl|Spring 2017}} => {{dl|Spring 2017}} ''(SMW: {{dl/n|Spring 2017}})''
 
=== Ranges ===
* {{tlx|dl|16 September 2016 - 1 January 2017}} => {{dl|16 September 2016 - 1 January 2017}} ''(SMW: {{#explode:{{dl/n|16 September 2016 - 1 January 2017}}|–|0}} / end date: {{#explode:{{dl/n|16 September 2016 - 1 January 2017}}|–|1}})''
* {{tlx|dl|September 2016 - 1 January 2017}} => {{dl|September 2016 - 1 January 2017}} ''(SMW: {{#explode:{{dl/n|September 2016 - 1 January 2017}}|–|0}} / end date: {{#explode:{{dl/n|September 2016 - 1 January 2017}}|–|1}})''
* {{tlx|dl|September 2016 - 1 January 2017}} => {{dl|September 2016 - 1 January 2017}} ''(SMW: {{dl/n|September 2016 - 1 January 2017}})''
* {{tlx|dl|September 2016-1 January 2017}} => {{dl|September 2016-1 January 2017}} ''(SMW: {{dl/n|September 2016-1 January 2017}})''
* {{tlx|dl|September-9 December 2017}} => {{dl|September-9 December 2017}} ''(SMW: {{dl/n|September-9 December 2017}})''
* {{tlx|dl|16 September-9 December 2017}} => {{dl|16 September-9 December 2017}} ''(SMW: {{dl/n|16 September-9 December 2017}})''
* {{tlx|dl|1 January - 3 February 2018}} => {{dl|1 January - 3 February 2018}} ''(SMW: {{#explode:{{dl/n|1 January - 3 February 2018}}|–|0}} / end date: {{#explode:{{dl/n|1 January - 3 February 2018}}|–|1}})''
* {{tlx|dl|16 December 1994 - February 1995}} => {{dl|16 December 1994 - February 1995}} ''(SMW: {{#explode:{{dl/n|16 December 1994 - February 1995}}|–|0}} / end date: {{#explode:{{dl/n|16 December 1994 - February 1995}}|–|1}})''
* {{tlx|dl|January 2006 - 2007}} => {{dl|January 2006 - 2007}} ''(SMW: {{#explode:{{dl/n|January 2006 - 2007}}|–|0}} / end date: {{#explode:{{dl/n|January 2006 - 2007}}|–|1}})''
* {{tlx|dl|2006-January 2007}} => {{dl|2006-January 2007}} ''(SMW: {{#explode:{{dl/n|2006-January 2007}}|–|0}} / end date: {{#explode:{{dl/n|2006-January 2007}}|–|1}})''
* {{tlx|dl|11-14 March 1974}} => {{dl|11-14 March 1974}} ''(SMW: {{#explode:{{dl/n|11-14 March 1974}}|–|0}} / end date: {{#explode:{{dl/n|11-14 March 1974}}|–|1}})''
* {{tlx|dl|11 - 14 March 1974}} => {{dl|11 - 14 March 1974}} ''(SMW: {{#explode:{{dl/n|{{#explode:11 - 14 March 1974|(|0}}}}|–|0}} / end date: {{#explode:{{dl/n|11 - 14 March 1974}}|–|1}})''


=== With notes ===
=== With notes ===
Line 25: Line 41:
* {{tlx|dl|19 December 1996 (VHS)}} => {{dl|19 December 1996 (VHS)}} ''(SMW: {{dl/n|19 December 1996 (VHS)}})''
* {{tlx|dl|19 December 1996 (VHS)}} => {{dl|19 December 1996 (VHS)}} ''(SMW: {{dl/n|19 December 1996 (VHS)}})''
* {{tlx|dl|8 March 2010 (AudioGO)}} => {{dl|8 March 2010 (AudioGO)}} ''(SMW: {{dl/n|8 March 2010 (AudioGO)}})''
* {{tlx|dl|8 March 2010 (AudioGO)}} => {{dl|8 March 2010 (AudioGO)}} ''(SMW: {{dl/n|8 March 2010 (AudioGO)}})''
* {{tlx|dl|11 - 14 March 1974 (n)}} => {{dl|11 - 14 March 1974 (n)}} ''(SMW: {{#explode:{{dl/n|{{#explode:11 - 14 March 1974 (n)|(|0}}}}|–|0}} / end date: {{#explode:{{dl/n|11 - 14 March 1974 (n)}}|–|1}})''
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 23:43, 24 April 2024

{{date link}}, or {{dl}}, is a template used in infoboxes to autolink date variables. This template is not to be confused with {{d}}, which simply makes a link to a singular date article, like 2008 or 23 November.

Use of the template is very simple.

{{dl|2 December 2024}} (in this instance, the current date) will automatically link to that release date (2 December 2024). It will also set SMW for that page to recognise that release date.

If you do not wish to also call on SMW, please use {{dl/text}} or {{dl/link}}, rather than {{dl}} direct. {{dl/link}} will exclude notes; in all other versions, parentheticals will be retained, and given in small text beside the release date, often, of course, within an infobox. Such an infobox can be seen on the right.

For cover dates[[edit]]

Ranges[[edit]]

With notes[[edit]]

  • {{dl|2 December 2024 (today)}} => 2 December 2024 (today) (SMW: 2024-12-02)
  • {{dl|19 December 1996 (VHS)}} => 19 December 1996 (VHS) (SMW: 1996-12-19)
  • {{dl|8 March 2010 (AudioGO)}} => 8 March 2010 (AudioGO) (SMW: 2010-03-08)
  • {{dl|11 - 14 March 1974 (n)}} => 11 - 14 March 1974 (n) (SMW: 1974-03-11 / end date: 1974-03-14)