మూస:Death date and age/doc: కూర్పుల మధ్య తేడాలు
Content deleted Content added
Changed {{high-use}} to {{high-risk}} based on number of transclusions and documentation at Template:High-risk |
Sardanaphalus (చర్చ | రచనలు) Template shortcut, Warning, some formatting (including <tt> replacement), commented out subsection (Using the dda shortcut), sandbox non-categorization |
||
పంక్తి 1:
{{Documentation subpage}}
<includeonly>{{
<!-- PLEASE ADD CATEGORIES
{{Template shortcut |dda}}
Returns a person's date of death and age at that date.
The idea of using the template,
▲<big style="color:#CC0000;">Do NOT use this template when the person's exact date of birth or death is disputed or unknown. Consider {{Tl|Death year and age}} instead.</big>
▲The idea of using the template, like with {{tl|Birth date and age}} etc, is to allow for the inclusion of hidden [[metadata]] to be used, indexed or searched by software tools. However, as of October 2008 this template does not include any such metadata and never has since it was founded in December 2006. The apparent reason is that the [[hCard]] [[microformat]], logically enough for an extension of "standard for electronic business cards", contains only "BDAY" field but nothing to do with a death. It is unclear when metadata standard for the dead will be developed and adopted. Until then, the template does nothing but format the input parameters.
:
; Formats:
▲=== Syntax ===
:
▲==== To display the death date with age ====
:
▲: <code><nowiki>{{Death date and age|</nowiki></code>''year of death''<tt>|</tt>''month of death''<tt>|</tt>''day of death''<tt>|</tt>''year of birth''<tt>|</tt>''month of birth''<tt>|</tt>''day of birth''<tt>|''additional parameters''}}</tt>
<!--[Superfluous?:]
: {{plaincode|<nowiki>{{dda |yyyy|mm|dd |yyyy|mm|dd |df=yes}}</nowiki>}}
: {{plaincode|<nowiki>{{dda |yyyy|mm|dd |yyyy|mm|dd |mf=yes}}</nowiki>}}
-->
:
:
▲==== Using the Dda shortcut ====
▲: <code><nowiki>{{Dda|yyyy|mm|dd|yyyy|mm|dd|df=yes}}</nowiki></code>
▲: <code><nowiki>{{Dda|yyyy|mm|dd|yyyy|mm|dd|mf=yes}}</nowiki></code>
▲==== Examples ====
: <code><nowiki>{{Death date and age|1993|2|24|1941|4|12|df=yes}}</nowiki></code> <br> returns {{Death date and age|1993|2|24|1941|4|12|df=yes}}▼
: <code><nowiki>{{Death date and age|1993|2|24|1941|4|12|mf=yes}}</nowiki></code> <br> returns {{Death date and age|1993|2|24|1941|4|12|mf=yes}}▼
▲'''Note''': The template will appear broken when the parameters are left blank.
▲=== Day First (df) and Month First options ===
The '''df''' (day first) parameter indicates the intended date format to display. It is switched on by setting it to "y" or "yes" e.g. '''df=yes''' or '''df=y'''.
పంక్తి 36:
Examples:
▲:
▲:
===Alternate templates when specific date unknown===
When only the year of a person's birth and/or death are known, or if it is desired not to state a person's full dates of birth and death (for
===Interaction
▲When only the year of a person's birth and/or death are known, or if it is desired not to state a person's full dates of birth and death for privacy reasons, use the templates {{tl|Birth year and age}} and {{tl|Death year and age}} instead.
===FAQ===
* Q: Why don't these templates add categories
▲'''Note:''' Do not use this template inside of the [[WP:PERSONDATA|Persondata]] template as it can interfere with data extraction.
: A: Because they are sometimes used for dates in lists of people
===
▲Q: Why don't these templates add categories, such as "Births in [Year]" to articles on which they are used? <br>
▲A: Because they are sometimes used for dates in lists of people, such as sports team members.
{{TemplateDataHeader}}
<TemplateData>
Line 108 ⟶ 107:
</TemplateData>
===
* [[Wikipedia:Age calculation templates]]
{{Birth, death and age templates}}
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->▼
[[Category:Date mathematics templates|Death date and age]]▼
[[Category:Templates generating microformat date and age|{{BASEPAGENAME}}]]▼
<
[[ca:Plantilla:Data naixement i edat]]
}}</includeonly>
|