Template:D/doc
From Angelina Jordan Wiki
This is a subpage documenting Template:D. To change the template, edit that page; to change the template's documentation (seen below), edit this one.
Documentation
This template links dates and formats them visually according to users' preferences. If no date is specified, it uses the current date (which is probably not what you want, since the link target would change each day).
The name of the template is based on the word "date".
Usage
{{d|YYYY-MM-DD}}{{d|YYYY-MM-DD|linktext}}{{d|YYYY-MM-DD|self=char}}{{d|YYYY-MM-DD|linktext|self=char}}
The third and fourth forms create links to an anchor on the same page; this is mainly used for linking to related dates from other entries in our Timeline. The value char can be any string containing at least one non-whitespace character.
Examples
{{d}}⇒ 2026-01-26{{d|2020-11-06}}⇒ 2020-11-06{{d|2020-11-06|self=y}}⇒ 2020-11-06{{d|2014-12-25|Christmas 2014}}⇒ Christmas 2014
See also
{{da}}– formats a date and makes it an anchor for incoming links{{du}}– formats a date but doesn't link it