ਫਰਮਾ:Date/doc
ਇਹ ਫਰਮਾ ਹੇਠ ਲਿਖੇ ਲੂਆ ਨੂੰ ਵਰਤਦਾ ਹੈ: |
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original ਫਰਮਾ page. |
(this part of the documentation is only available in some languages)
This template is used to show a date in the language set in the preferences.
You can leave out parts of the data.
Usage
[ਸੋਧੋ]{{Date|1=|2=|3=|hour=|minute=|second=}}
(this part of the documentation is only available in some languages)
Examples:
{{date|2009|1|9}}
→{{date|2009|1}}
→{{date|2009}}
→
Generating output in Polish:
{{date|2009|1|9|pl}}
→{{date|2009|1|9|pl|case=}}
→ - alternative way to get nominative case{{date|2009|1|9|pl|case=gen}}
→{{date|2009|1|9|pl|case=ins}}
→{{date|2009|1|pl}}
→{{date|2009|1|pl|form=gen}}
→{{date|2009|1|pl|form=ins}}
→{{date|year=888|lang=pl|case=ins|trim_year=yes}}
→{{date|year=888|lang=pl|case=ins|trim_year=no}}
→{{date|year=888|lang=pl|case=ins|trim_year=100-999}}
→{{date|year=888|lang=pl|case=ins|trim_year=100-500}}
→
Microformat
The template returns the date, embed in a <time> element with attribute datetime that contain the date in the ISO 8601 format needed by the hCalendar (class="dtstart"
) microformat. See the microformats project.
Parameters
Parameter name | Description (this part of the documentation is only available in some languages) | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | empty | optional | |
parameter #2 (2) | empty | optional | |
parameter #3 (3) | empty | optional | |
hour | empty | optional | |
minute | empty | optional | |
second | empty | optional | |
4 | language code of the user language | optional | |
case | empty | optional | |
class | dtstart | optional | |
trim_year | 100-999 | optional |
Additional information
[ਸੋਧੋ]The template is intended to be used in the following namespaces:
- the Template namespace
The template is intended to be used by the following user groups:
Relies on:
Module:DateI18n
⧼See also⧽
(this part of the documentation is only available in some languages)
{{ISOdate}} – Template used to parse the date in {{information}}
{{other date}} – Allows to specify a range of non-trivial date notations in a format that is localizable
{{odate}} – Allows to specify two dates, of original and of vectorization
(this part of the documentation is only available in some languages)
Localize the date format at Module:I18n/date or request assistance at Template talk:Date or Module talk:I18n/date