Plantilla:Date
Ir a la navegación
Ir a la búsqueda
Documentation The documentation below is transcluded from Plantilla:Date/doc. (edit | history)
[purge]
Used to format date.
Usage
- Unamed Parameter 1
Year. 4-digit format is recommended.
- Unamed Parameter 2
Month. 1 to 12, with or without leading zero.
- Unamed Parameter 3 (optional)
Day. 1 to 31, with or without leading zero.
- date (optional)
If specified, it will override unnamed parameters, and used as date string for {{#time:}}
. See here for details.
- lang (optional)
Language code, the default is {{lang}}
- day=no/yes (optional)
Used to specify whether to output year-month-day or year-month. By deafult, it will be auto-detection for unamed parameters, and year-month-day for |date=
Examples
Code | Output |
---|---|
{{date|2020|05|16}} |
mayo 16, 2020 |
{{date|2020|05}} |
mayo 2020 |
{{date|2020|05|16|day=no}} |
mayo 2020 |
{{date|2020|05|day=yes}} |
mayo 1, 2020 |
{{date|date=2020 May}} |
mayo 1, 2020 |
{{date|date=may 16, 2020}} |
mayo 16, 2020 |
{{date|date=2020 May|day=no}} |
mayo 2020 |
{{date|2020|05|16|lang=zh}} |
2020 年 05 月 16 日 |
Categorías:
- I18n-ready templates
- Plantillas