Jump to content

Template:Days since/doc

From The Furrydelphia Wiki
Revision as of 09:47, 29 June 2026 by Winterfoxo (talk | contribs) (1 revision imported from wikipedia:Template:Days_since/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if:|
         |{{#ifexist:Template:Days since
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  | 
                 }}
        }}
    | 
   }}

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

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: {{#if:|Error: first parameter cannot be parsed as a date or time.|180}}

{{Days since|2026|06|13}} produces: {{#if:13|Error: first parameter cannot be parsed as a date or time.|0}}

{{Days since|31 December 1969}} produces: {{#if:|Error: first parameter cannot be parsed as a date or time.|20635}}


See also

[edit source]

{{safesubst:#if:{{safesubst:#ifeq:doc|sandbox|1}}{{safesubst:#ifeq:doc|doc|1}}||}}