Toggle menu
Toggle preferences menu
Toggle personal menu
Ikke logget på
Your IP address will be publicly visible if you make any edits.
Version fra 27. apr. 2025, 11:02 af Admin (diskussion | bidrag) Admin (diskussion | bidrag) (1 version importeret)
(forskel) ← Ældre version | Nuværende version (forskel) | Nyere version → (forskel)
Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.

{{Days since}} shows the years/days (or months/days) since a specific date.

Usage

This template is a facade for {{Time ago}} which invokes that template to specifically return an integer of the amount of days since a given timestamp. {{Time ago}} is a larger template, with many more options, that can be used for more customized output.

There are two ways to use this template:

  • With three parameters YYYY-MM-DD: {{Days since|2026|06|13}}
  • With one parameter. If this is done, the date MUST be formatted in one of these four ways:
    • 03 Dec 1969
    • 03 December 1969
    • 3 Dec 1969
    • 3 December 1969

Using this template with a single parameter is identical to using {{Time ago|03 Dec 1969|magnitude=days|ago=|numeric=y}}.

{{Days since|1 Jan 2026}} produces: 194

{{Days since|2026|06|13}} produces: 31

{{Days since|31 December 1969}} produces: 20649

See also


Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Skabelon:Days since]] to properly attribute this template's editors.
There is no additional installation instructions for this template. If there is any, you may create it at Skabelon:Days since/install.
Indholdsfortegnelse