Template:Date link/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 30: Line 30:
* {{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|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|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|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 35: Line 37:
* {{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}})''

Revision as of 05:44, 14 January 2018

{{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|12 December 2024}} (in this instance, the current date) will automatically link to that release date (12 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

Ranges

With notes

  • {{dl|12 December 2024 (today)}} => 12 December 2024 (today) (SMW: 2024-12-12)
  • {{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)