Plantilla:Fecha hora y edad de principiada
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Tranclusion count updated automatically (see documentation). |
| This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
Error de Lua en Módulo:Lua_banner en la línea 113: attempt to index field 'edit' (a nil value).
{{Start date and age}} displays the date that an event or entity started or was created. It also includes a duplicate, machine-readable date in the ISO 8601 format (which is hidden by CSS), for use inside other templates which emit microformats. The hidden date degrades gracefully when CSS is not available.
Usage
[hace edit con el source]- {{start date and age|YYYY|MM|DD}} (year, month, and day)
- {{start date and age|YYYY|MM|DD|df=yes}}
- {{start date and age|YYYY|MM|DD|df=yes|...}}
Parameters
[hace edit con el source]| Parameter | Status | Description |
|---|---|---|
|1=
|
required | A four-digit number indicating the year. |
|2=
|
optional | A number between 1 and 12 indicating the month (leading zeros in the number are ignored). |
|3=
|
optional | A number between 1 and 31 indicating the day of the month (leading zeros in the number are ignored). |
|df=
|
optional | When set to |df=yes or |df=y displays the day before the month (e.g. "7 November 2004" instead of the default "November 7, 2004").
|
|p=|paren=
|
optional | When set to |p=yes or |p=y the age will be displayed within parentheses. When this parameter is not included, the date and age are separated by a semicolon and a breaking space.
|
|br=
|
optional | When set to |br=yes or |br=y a line break will be inserted between the date and the age. When this parameter is not included, a breaking space will be inserted between the date and the age. This does not change the separating characters between the date and age which are either a semicolon (default setting) or parentheses (if |p=yes).
|
Examples
[hace edit con el source]Default separator: semicolon
[hace edit con el source]| Syntax | Result |
|---|---|
| Full date (year, month, day) | |
| {{start date and age|2010|01|02}} | Aca-2 de Enero de 2010 |
| {{start date and age|2010|1|2|df=yes}} | Aca-2 de Enero de 2010 |
| {{start date and age|2008|01|9|df=y}} | Aca-9 de Enero de 2008 |
| 100 days ago: {{start date and age|2025|7|25}} |
Aca-25 de Julio de 2025 |
| Yesterday: {{start date and age|2025|11|1}} |
Aca-1 de Noviembre de 2025 |
| Today: {{start date and age|2025|11|2}} |
Aca-2 de Noviembre de 2025 |
| Year and month | |
| {{start date and age|2001|9}} | Septiembre de 2001 |
| {{start date and age|2002|09}} | Septiembre de 2002 |
| Year only | |
| {{start date and age|2005}} | 2005 |
Optional separator: parentheses
[hace edit con el source]| Syntax | Result |
|---|---|
| Full date (year, month, day) | |
| {{start date and age|2003|02|15|p=yes}} | Aca-15 de Febrero de 2003 |
| {{start date and age|2003|02|15|df=y|...}} | Aca-15 de Febrero de 2003 |
| Year and month | |
| {{start date and age|2003|02|p=y}} | Febrero de 2003 |
| Year only | |
| {{start date and age|2003|paren=yes}} | 2003 |
Line break with semicolon
[hace edit con el source]| Syntax | Result |
|---|---|
| Full date (year, month, day) | |
| {{start date and age|2003|02|15|br=yes}} | Aca-15 de Febrero de 2003 |
| {{start date and age|2003|02|15|df=y|...}} | Aca-15 de Febrero de 2003 |
| Year and month | |
| {{start date and age|2003|02|br=y}} | Febrero de 2003 |
| Year only | |
| {{start date and age|2003|br=yes}} | 2003 |
Line break with parentheses
[hace edit con el source]| Syntax | Result |
|---|---|
| Full date (year, month, day) | |
| {{start date and age|2003|02|15|p=yes|...}} | Aca-15 de Febrero de 2003 |
| {{start date and age|2003|02|15|df=y|...}} | Aca-15 de Febrero de 2003 |
| Year and month | |
| {{start date and age|2003|02|p=y|br=y}} | Febrero de 2003 |
| Year only | |
| {{start date and age|2003|paren=yes|br=yes}} | 2003 |
TemplateData
[hace edit con el source]TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
see the monthly parameter usage report for Template:Fecha hora y edad de principiada.
TemplateData for Fecha hora y edad de principiada The Start date and age template displays the date that an event or entity started or was created.
| |||||||||||||||||||||||||||||||||||
Use in microformats
[hace edit con el source]Example
[hace edit con el source]Plantilla:Nowiki template demo
Usage in articles
[hace edit con el source]This template is most often used in infoboxes in articles about buildings or organizations, identifying when they were started/founded/opened or dissolved/ended/closed.
It has also been used for naval ships to indicate their commissioned age; however, several Wikipedia editors have reverted such edits. Use of this template in ship articles is therefore not recommended.
Tracking categories
[hace edit con el source]- Category:Pages using start date an age with invalid values (0)
- Category:Pages using start date and age with unknown parameters (0)
See also
[hace edit con el source]- {{Start date}}
- {{End date and age}}
- {{Time ago}} and {{Years or months ago}}
- {{Age}}