Template:Date sum

From RuneRealm Wiki
Jump to navigation Jump to search

05 December 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[Edit template data]

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}}
|-
| {{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 sum|now|1 hour 15 minutes|format=d F Y H:i:s}}
|}
Date
24 January 2012
22 August 2012
07 January 2001 00:03:01
28 November 2024 08:39:08