మూస:Death date and age/doc: కూర్పుల మధ్య తేడాలు

Changed {{high-use}} to {{high-risk}} based on number of transclusions and documentation at Template:High-risk
Template shortcut, Warning, some formatting (including <tt> replacement), commented out subsection (Using the dda shortcut), sandbox non-categorization
పంక్తి 1:
{{Documentation subpage}}
<includeonly>{{highHigh-risk|145,000+}}</includeonly>
<!-- PLEASE ADD CATEGORIES ANDWHERE INTERWIKISINDICATED AT THE BOTTOM OF THIS PAGE -->
{{Template shortcut |dda}}
<big{{Warning style="color:#CC0000;">|''Do '''NOT''' use this template when the person's exact date of birth or death is disputed or unknown. ; Considerconsider {{Tltl|Deathdeath year and age}} instead.</big>''}}
 
Returns a person's date of death and age at that date.
Available shortcut: '''{{tl|Dda}}'''.
 
The idea of using the template, likeas with {{tl|Birthbirth 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.
<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>
 
=== Syntax ===
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.
==== To display the death date with age ====
: <code><nowiki>{{Deathtc|death date and age&nbsp;|</nowiki></code>''year of death''<tt>|</tt>''month of death''<tt>|</tt>''day of death''<tt>&nbsp;|</tt>''year of birth''<tt>|</tt>''month of birth''<tt>|</tt>''day of birth''<tt>&nbsp;|''additional parameters''}}</tt>
 
; Formats:
=== Syntax ===
: <code>{{plaincode|<nowiki>{{Ddadeath date and age |yyyy|mm|dd |yyyy|mm|dd |df=yes}}</nowiki></code>}}
==== To display the death date with age ====
: <code>{{plaincode|<nowiki>{{Ddadeath date and age |yyyy|mm|dd |yyyy|mm|dd |mf=yes}}</nowiki></code>}}
: <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?:]
==== Using the Dda{{braces|dda}} shortcut ====
: {{plaincode|<nowiki>{{dda |yyyy|mm|dd |yyyy|mm|dd |df=yes}}</nowiki>}}
: {{plaincode|<nowiki>{{dda |yyyy|mm|dd |yyyy|mm|dd |mf=yes}}</nowiki>}}
-->
 
==== Examples ====
; Format:
: <code>{{plaincode|<nowiki>{{Deathdeath date and age |yyyy1993|mm2|dd24 |yyyy1941|mm4|dd12 |df=yes}}</nowiki></code>}} returns:&nbsp; {{death date and age |1993|2|24 |1941|4|12 |df=yes}}
: <code>{{plaincode|<nowiki>{{Deathdeath date and age |yyyy1993|mm2|dd24 |yyyy1941|mm4|dd12 |mf=yes}}</nowiki></code>}} returns:&nbsp; {{death date and age |1993|2|24 |1941|4|12 |mf=yes}}
 
'''Note''': The template will appear broken when the parameters are left blank.''
==== 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>
 
==="day Day Firstfirst" (df) and Month"month Firstfirst" options ===
==== 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:
: <code>{{plaincode|<nowiki>{{Deathdeath date and age |1993|2|24 |1941|4|12 |df=yes}}</nowiki></code>}} <br> returnsdisplays&nbsp; "{{Deathdeath date and age |1993|2|24 |1941|4|12 |df=yes}}"
: <code>{{plaincode|<nowiki>{{Deathdeath date and age |1993|2|24 |1941|4|12 |mf=yes}}</nowiki></code>}} <br> returnsdisplays&nbsp; "{{Deathdeath date and age |1993|2|24 |1941|4|12 |mf=yes}}"
 
===Alternate templates when specific date unknown===
:<nowiki>{{Death date and age|1993|2|24|1941|4|12|df=yes}}</nowiki><br> displays "{{Death date and age|1993|2|24|1941|4|12|df=yes}}"
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 privacye.g. reasonsprivacy), use the templates {{tl|Birthbirth year and age}} and {{tl|Deathdeath year and age}} instead.
:<nowiki>{{Death date and age|1993|2|24|1941|4|12|mf=yes}}</nowiki><br> displays "{{Death date and age|1993|2|24|1941|4|12|mf=yes}}"
 
===Interaction Specificwith date unknown - alternateother templates ===
'''Note:'''* Do not use this template inside of the [[WP:PERSONDATA|Persondata]] template as it can interfere with data extraction.
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===
=== Interaction side-effects with other templates ===
* Q: Why don't these templates add categories, such as "Births in [Year]" to articles on whichwhere they are used? <br>
'''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, such(e.g. asmembers of sports team membersteams).
 
=== FAQ TemplateData===
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.
 
=== Template data ===
{{TemplateDataHeader}}
<TemplateData>
Line 108 ⟶ 107:
</TemplateData>
 
=== See also ===
* [[Wikipedia:Age calculation templates]]
 
{{Birth, death and age templates}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Date mathematics templates|Death date and age]]
[[Category:Templates generating microformat date and age|{{BASEPAGENAME}}]]
 
</includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- CATEGORIES ANDBELOW INTERWIKISTHIS HERELINE, THANKSPLEASE: -->
[[Category:Date mathematics templates|Death date and age]]
[[Category:Templates generating microformat date and age|{{BASEPAGENAME}}]]
 
<includeonly>
[[ca:Plantilla:Data naixement i edat]]
}}</includeonly>
"https://te.wikipedia.org/wiki/మూస:Death_date_and_age/doc" నుండి వెలికితీశారు