ਮੌਡਿਊਲ:ISOdate/doc
ਦਿੱਖ
This is the documentation page for ਮੌਡਿਊਲ:ISOdate
This module is intended for processing of date strings. Currently used by:
It relies on Module:DateI18n
ISOdate
[ਸੋਧੋ]This function is the engine behind {{ISOdate}}. Please see that template for full documentation
Usage:
- should not be used directly but only through {{ISOdate}} template
Parameters:
|date=date
or|1=date
- a valid date in "YYYY-MM-DD HH:MM:SS" format; this date can be abbreviated with less fields (e.g. only the year), and leading zeroes in each numeric field may be dropped; this date may be optionally followed by a required space and any trailing text (which should be between parentheses) parsed and left as is in the ouput; if the specified date is not in a valid format, the value of this parameter will be returned as is.
|class=class
- optional parameter for embedding the output within an invisible HTML
<span class="class" lang="lang" dir="ltr or rtl">...</span>
element with this class, also tagging the specified language and its direction (by default, use|class=dtime
, as defined in microformats); set it to an empty value to remove this invisible HTML tag; this microtag is also not emitted if the given date cannot be parsed with one of the supported formats and its value will be returned as is. |lang=lang
- optional BCP 47 code of a language (not an interwiki code) used to translate the generated visible date (also used to properly tag the generated microformat, if it is generated, in the standard
lang="lang"
attribute of HTML) |case=case
- optional parameter for handling grammatical cases (such as genitive) in the translated date; only valid with some specific languages.
|trim_year=flag
- optional parameter which allows (when it is set to a nn-empty value) to not display additional leading zeroes for years; by default or when this parameter is empty, years are rendered with at least 4 digits, padding them with zeroes as necessary.
ISOyear
[ਸੋਧੋ]This function is the engine behind {{ISOyear}}. Please see that template for full documentation
Usage:
- should not be used directly but only through {{ISOyear}} template
Parameters:
- 1
- date or 1 parameter