Mall:Algusaeg/doc: erinevus redaktsioonide vahel

Allikas: Vikipeedia
Eemaldatud sisu Lisatud sisu
MerlIwBot (arutelu | kaastöö)
P Robot: eemaldatud id:Templat:Tanggal mulai (strongly connected to et:Mall:Lõppaeg), en:Template:Start date (strongly connected to et:Mall:Lõppaeg)
Resümee puudub
1. rida: 1. rida:
{{dokumentatsiooni alamleht}}
{{dokumentatsiooni alamleht}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->


== Kasutus ==
==Usage==
This purpose of the '''{{tl|Algusaeg}}''' template is to return a date (or date-time). It also includes duplicate date (or date-time) in the ISO date format (which is hidden by CSS), for use in [[microformat]]s. This hidden date degrades gracefully when CSS is not available.


==Süntaks==
==Syntax==
*<nowiki>{{Algusaeg|year|month|day}}</nowiki>
*<nowiki>{{Algusaeg|year|month|day|HH|MM|SS|TimeZone}}</nowiki> (MM and SS are optional; TimeZone may be a numerical value, or "Z" for [[Coordinated Universal Time|UTC]]; see examples)


;Examples
:<nowiki>{{Algusaeg|aasta|kuu|kuupäev}}</nowiki>


*<nowiki>{{Algusaeg|1993}}</nowiki> returns "{{Algusaeg|1993}}"
:<nowiki>{{Algusaeg|aasta|kuu|kuupäev|HH|MM|SS|ajavöönd}}</nowiki> (MM ja SS on valikulised; ajavöönd võib olla numbriline "Z" ([[UTC]]); vaata näiteid)
*<nowiki>{{Algusaeg|1993|02}}</nowiki> returns "{{Algusaeg|1993|02}}"
*<nowiki>{{Algusaeg|1993|02|24}}</nowiki> returns "{{Algusaeg|1993|02|24}}"
*<nowiki>{{Algusaeg|1993|02|24|08|30}}</nowiki> returns "{{Algusaeg|1993|02|24|08|30}}"
*<nowiki>{{Algusaeg|1993|02|24|08|||+01:00}}</nowiki> returns "{{Algusaeg|1993|02|24|08|||+01:00}}"
*<nowiki>{{Algusaeg|1993|02|24|08|||-07:00}}</nowiki> returns "{{Algusaeg|1993|02|24|08|||-07:00}}"
*:<nowiki>{{Algusaeg|1993|02|24|08|30|23}}</nowiki> returns "{{Algusaeg|1993|02|24|08|30|23}}"
*<nowiki>{{Algusaeg|1993|02|24|08|30|23|Z}}</nowiki> returns "{{Algusaeg|1993|02|24|08|30|23|Z}}"
*<nowiki>{{Algusaeg|1993|02|24|08|30|23|+01:00}}</nowiki> returns "{{Algusaeg|1993|02|24|08|30|23|+01:00}}"
*<nowiki>{{Algusaeg|1993|02|24|08|30|23|-07:00}}</nowiki> returns "{{Algusaeg|1993|02|24|08|30|23|-07:00}}"


An optional parameter, <tt>df</tt>, can be set to "y" or "yes" (or indeed any value) to display the day before the month. This is primarily used in articles about events in parts of the world where the day precedes the month in a date.
või


;Examples:
:<nowiki>{{Lõppaeg|aasta|kuu|kuupäev}}</nowiki>


*<nowiki>{{Algusaeg|1993|02|24|df=y}}</nowiki> returns "{{Algusaeg|1993|02|24|df=y}}"
Näited:
*<nowiki>{{Algusaeg|1993|02|24|08|30|df=yes}}</nowiki> returns "{{Algusaeg|1993|02|24|08|30|df=yes}}"


'''Note:''' The template will appear broken when the parameters are left blank (as seen hereinbefore).
:<nowiki>{{Algusaeg|1993}}</nowiki> annab tulemuseks "{{Algusaeg|1993}}"


==Use in microformats==
:<nowiki>{{Algusaeg|1993|2}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2}}"
{{UF-date-part}}


==See also==
:<nowiki>{{Algusaeg|1993|2|24}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24}}"
*'''{{tl|End date}}'''
*'''{{tl|Start date and age}}'''
*'''{{tl|Start-date}}''' (an alternative to this template)
*'''{{tl|Film date}}''' – a similar template, but for use with {{tl|Infobox film}}


*[[Wikipedia:WikiProject Microformats|WikiProject Microformats]]
:<nowiki>{{Algusaeg|1993|2|24|08|30}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24|08|30}}"
*[[Wikipedia:Microformats]]


:<nowiki>{{Algusaeg|1993|2|24|08|||+01:00}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24|08|||+01:00}}"

:<nowiki>{{Algusaeg|1993|2|24|08|||-07:00}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24|08|||-07:00}}"

:<nowiki>{{Algusaeg|1993|2|24|08|30|23}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24|08|30|23}}"

:<nowiki>{{Algusaeg|1993|2|24|08|30|23|Z}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24|08|30|23|Z}}"

:<nowiki>{{Algusaeg|1993|2|24|08|30|23|+01:00}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24|08|30|23|+01:00}}"

:<nowiki>{{Algusaeg|1993|2|24|08|30|23|-07:00}}</nowiki> annab tulemuseks "{{Algusaeg|1993|2|24|08|30|23|-07:00}}"

:<nowiki>{{Lõppaeg|1993|2|24}}</nowiki> annab tulemuseks "{{Lõppaeg|1993|2|24}}"

:<nowiki>{{Lõppaeg|1993|2|24|08|30}}</nowiki> annab tulemuseks "{{Lõppaeg|1993|2|24|08|30}}"

'''Märkus:''' Mall annab vigase tulemuse, kui osa paremeetreid on jäetud tühjaks.
<includeonly>
<includeonly>


<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Kategooria:Daatumite järgi arvutavad mallid|{{PAGENAME}}]]
[[Kategooria:Daatumite järgi arvutavad mallid|{{PAGENAME}}]]


<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[ar:قالب:تاريخ بداية]]
[[as:সাঁচ:Start date]]
[[ast:Plantía:Fecha]]
[[az:Şablon:Start date]]
[[bn:টেমপ্লেট:Start date]]
[[ca:Plantilla:Data inici]]
[[cy:Nodyn:Start date]]
[[el:Πρότυπο:Start date]]
[[en:Template:Start date]]
[[es:Plantilla:Fecha]]
[[fa:الگو:تاریخ آغاز]]
[[gd:Teamplaid:Start date]]
[[gl:Modelo:Data]]
[[hi:साँचा:Start date]]
[[hy:Կաղապար:Start date]]
[[id:Templat:Tanggal mulai]]
[[ja:Template:Start date]]
[[jv:Cithakan:Start date]]
[[kn:ಟೆಂಪ್ಲೇಟು:End date]]
[[ka:თარგი:დაიწყე თარიღი]]
[[kn:ಟೆಂಪ್ಲೇಟು:Start date]]
[[la:Formula:Start date]]
[[mr:साचा:दिनांक]]
[[ms:Templat:Start date]]
[[no:Mal:Startdato]]
[[or:ଛାଞ୍ଚ:Start date]]
[[pa:ਨਮੂਨਾ:Start date]]
[[pt:Predefinição:Data de início]]
[[ru:Шаблон:Start date]]
[[simple:Template:Start date]]
[[th:แม่แบบ:Start date]]
[[tpi:Template:Start date]]
[[tr:Şablon:Tarih]]
[[uk:Шаблон:Initial release]]
[[ur:سانچہ:Start date]]
[[zh:Template:Start date]]
</includeonly>
</includeonly>

Redaktsioon: 22. veebruar 2013, kell 23:48

Usage

This purpose of the {{Algusaeg}} template is to return a date (or date-time). It also includes duplicate date (or date-time) in the ISO date format (which is hidden by CSS), for use in microformats. This hidden date degrades gracefully when CSS is not available.

Syntax

  • {{Algusaeg|year|month|day}}
  • {{Algusaeg|year|month|day|HH|MM|SS|TimeZone}} (MM and SS are optional; TimeZone may be a numerical value, or "Z" for UTC; see examples)
Examples

An optional parameter, df, can be set to "y" or "yes" (or indeed any value) to display the day before the month. This is primarily used in articles about events in parts of the world where the day precedes the month in a date.

Examples

Note: The template will appear broken when the parameters are left blank (as seen hereinbefore).

Use in microformats

Mall:UF-date-part

See also