Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Dda/doc

Template page
< Template:Dda
Revision as of 00:21, 15 June 2013 by CzechOut (talk | contribs) (Created page with "{{DayNavLateral}} '''{{tlx|{{PAGENAME}}}}''' stands for {{tlx|day dab away}}. As a sister to {{tlx|dab away}} ({{tlx|da}}) and {{tlx|title dab away}} ({{tlx|tda}}), it perfor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{Dda/doc}} stands for {{day dab away}}. As a sister to {{dab away}} ({{da}}) and {{title dab away}} ({{tda}}), it performs a function you might already have encountered. It looks at the title of a page and then strips away dab term, leaving you with just the base name of the page. In other words, it will take 1 January (people) and return simply 1 January.

But, unlike other "dab away" templates, it only works on days of the year pages. It takes no parameters.

It is principally used in {{DayNav}}, where it strips away the dab term at, say, 1 January (releases), and then allows the code to discover that the page describes a day in the month of January. It is the primary engine behind the part of the calendar that announces the previous, next and current month.

Details[[edit source]]

As of June 2013, it differentiates between pages that have no dab terms (1 September, for instance) and these three dab terms:

  • (people)
  • (production)
  • (releases)

See also[[edit source]]

Cookies help us deliver our services. By using our services, you agree to our use of cookies.