Template:Date sum

From the Tesseract Wiki, the wiki for all things Marvel Cinematic Universe
Jump to navigation Jump to search

July 15 2024

Template documentation
This documentation is transcluded from Template:Date sum/doc. [edit] [history] [purge]

{{Date sum|date|time to be added to the date}}

Returns a future time based on the input date and the time to be added to it. Accepted input date formats are the same as for #time parser function.

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Date1

Input date.

Default
now
Example
10-8-2012
Dateoptional
Time2

Time to be added to the date.

Default
1 week
Example
2 weeks 4 days 3 hours
Stringoptional
Formatformat

Format used to display the date.

Default
d F Y
Example
Y-m-d
Stringoptional

Example

{| class="wikitable sortable"
!Date
|-
| {{Date sum|1/10/2012|2 weeks}} 1/10/2012}}
|-
| {{Date sum|4-8-2012|2 weeks 4 days|format=d F Y}}
|-
| {{Date sum|20 December 2000|2 weeks 4 days 3 minutes 1 second|format=d F Y H:i:s}}
|}
Date
January 24 2012
22 August 2012
07 January 2001 00:03:01