Шаблон:Дата/doc

Матеріал з Terraria Wiki
Перейти до навігації Перейти до пошуку

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}} 16 травня 2020
{{date|2020|05}} травень 2020
{{date|2020|05|16|day=no}} травень 2020
{{date|2020|05|day=yes}} 1 травня 2020
{{date|date=2020 May}} 1 травня 2020
{{date|date=may 16, 2020}} 16 травня 2020
{{date|date=2020 May|day=no}} травень 2020
{{date|2020|05|16|lang=zh}} 2020 年 05 月 16 日