Template:Compare dates/doc
Kaonekelo
|
|
This is a documentation subpage for Template:Compare dates. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[kulemba source]This template takes two mandatory unnamed parameters. The first is a date/time string and the second is a level of precision. It then returns a plain language comparison of the date/time to the current UTC date/time. If it's not the next, current, or previous one, the template just returns the date/time entered.
Examples
[kulemba source]
{{Compare dates|22:41 18 Meyi 2026|hour}}returns22:41 18 Meyi 2026{{Compare dates|18 Meyi 2026|day}}returns18 Meyi 2026{{Compare dates|Epulelo 2026|month}}returnsEpulelo 2026{{Compare dates|Sekutembala 2026|month}}returnsSekutembala 2026{{Compare dates|October 1887|month}}returnsOctober 1887
Parameters
[kulemba source]Returns a plain language comparison of a date or time to the present
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Date | 1 | The date or time being compared | Date | required |
| Precision | 2 | The level of precision at which the comparison is being made; handles the suggested values listed.
| Unknown | required |
See also
[kulemba source]- {{Is now}}
- {{Age switch}}