:Date

Terraria Wiki
둘러보기로 이동 검색으로 이동
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See 틀:Date/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from 틀:Date/doc. (edit | history)

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}}
{{date|2020|05}}
{{date|2020|05|16|day=no}}
{{date|2020|05|day=yes}}
{{date|date=2020 May}}
{{date|date=may 16, 2020}}
{{date|date=2020 May|day=no}}
{{date|2020|05|16|lang=zh}}