Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Date/doc: Difference between revisions

Template page
update
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{TemplateBox
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
|1=1
|1d=number of the year
|2=2
|2d=number of month in the year
|3=3
|3d=number of day in the month
|4=4
|4d=language code (only needs to be provided if the language shall be fixed and independant from the user's preferences)
|4def=value of <nowiki>{{int:Lang}}</nowiki>
|name=Date
|desc=This template is used to show the date of publication or upload in the language set in the preferences.


=== Purpose ===
You can leave out parts of the data.
To show the date of publication or upload in the language set in the preferences.
|namespace=Template
 
|usergroup=all
 
|usage-notes=
=== Usage ===
Date example: 9 January 2009
<pre>
{{Date|<year>|<month>|<day>}}
</pre>
 
You can leave out parts of the data. This will show the data in the users interface language.
 
=== Example ===
Date example: 9 Januari 2009
<pre>
<pre>
{{Date|2009|1|9}}
{{Date|2009|1|9}}
Line 24: Line 26:
=== Microformat ===
=== Microformat ===
{{Tl|Date}} also returns the date, hidden by CSS, in the ISO 8601 format needed by the <!-- hAtom (class="updated"),--> [[w:HCalendar|hCalendar]] (<code>class="dtstart"</code>) <!-- and hCard (class="bday")--> microformat. See [[Commons:Microformats Project|the microformats project]].
{{Tl|Date}} also returns the date, hidden by CSS, in the ISO 8601 format needed by the <!-- hAtom (class="updated"),--> [[w:HCalendar|hCalendar]] (<code>class="dtstart"</code>) <!-- and hCard (class="bday")--> microformat. See [[Commons:Microformats Project|the microformats project]].
 
|type=marker
=== See also ===
|example=
*{{tl|ISOdate}} - Template used to parse the date in {{tl|information}}
|i18n-method=switch
|i18n-desc=
|seealso={{tl|ISOdate}} - Template used to parse the date in {{tl|information}}
|setscats=
|lines=one
|shorthand=
|relieson={{tl|I18n month}}, {{tl|I18n month-gen}}, {{tl|formatnum}}
}}


<includeonly>
<includeonly>
[[Category:User interface language dependent templates|Parse source]]
[[Category:User interface language dependent templates|Parse source]]
</includeonly>
</includeonly>

Revision as of 00:45, 31 March 2009

This template is used to show the date of publication or upload in the language set in the preferences.

You can leave out parts of the data.

Usage

{{Date |1= |2= |3= |4= }}

Date example: 9 January 2009

{{Date|2009|1|9}}

Result, date in the language of your preferences: 9 January 2009

Microformat

{{Date}} also returns the date, hidden by CSS, in the ISO 8601 format needed by the hCalendar (class="dtstart") microformat. See the microformats project.

Template parameters

ParameterDescriptionDefaultStatus
1number of the yearemptyoptional
2number of month in the yearemptyoptional
3number of day in the monthemptyoptional
4language code (only needs to be provided if the language shall be fixed and independant from the user's preferences)value of {{int:Lang}}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: all users

Relies on:
{{I18n month}}, {{I18n month-gen}}, {{Formatnum}}

See also

{{ISOdate}} - Template used to parse the date in {{Information}}

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)


Cookies help us deliver our services. By using our services, you agree to our use of cookies.