Template:Date/doc
| This is a documentation subpage for Template:Date. It contains usage information, categories, and other content that is not part of the original template page. |
Gives a date in the language with a specified code (the default for that code is the result of Template:Uselang, which is el).
Note that this translated date may have a lowercase initial (unless its first term is always capitalized, like month names in English), so that it can be used in the middle of a sentence. At start of a sentence or paragraph (but not at start of an item in an enumerated list that is part of a larger sentence), you may need to embed the template transclusion in a {{UCFIRST: }} parser call.
Parameters
[επεξεργασία]| Parameter name | Description | Default value |
|---|---|---|
| 1 | number of the year | empty |
| 2 | number of month in the year | empty |
| 3 | number of day in the month | empty |
| lang 4 |
language code | language code of the user language |
| form | allows to specify differing syntactic forms to apply to the date (e.g. in some Polish phrases the month must appear in genitive form instead of nominative, so you have to set form to gen) | empty |
Examples
{{date|2009|1|9}}→ 9 Ιανουαρίου 2009{{date|1970|2|3}}→ 3 Φεβρουαρίου 1970{{date|1970|2}}→ Φεβρουάριος 1970{{date|1970}}→ 1970{{date||1|9}}→ 9 Ιανουαρίου{{date||2|3}}→ 3 Φεβρουαρίου{{date||2}}→ Φεβρουάριος{{date}}→{{date|1970|||zh}}→ 1970年
Does not check existence, except for the month number:
{{date|2009|12|33}}→ 33 Δεκεμβρίου 2009{{date|2009|17|33}}→ 33 Άγνωστη ημερομηνία 2009
Required
Localization
The i18n-method used is branching to translations in the template itself.
See also
Χωρίς περιγραφή
| Παράμετρος | Περιγραφή | Τύπος | Κατάσταση | |
|---|---|---|---|---|
| Year | 1 | χωρίς περιγραφή | Άγνωστος | προαιρετικό |
| Month | 2 | As a number
| Αριθμός | προαιρετικό |
| Day | 3 | Number of day in the month | Άγνωστος | προαιρετικό |
| 4 | 4 | χωρίς περιγραφή | Άγνωστος | προαιρετικό |
| Language code | lang | χωρίς περιγραφή | Άγνωστος | προαιρετικό |
| form | form | χωρίς περιγραφή | Άγνωστος | προαιρετικό |