Difference between revisions of "Template:Birth date and age2/doc"

From blackwiki
Jump to navigation Jump to search
imported>WhatamIdoing
(Undid revision 697149066 by Useddenim (talk) Revert blanking of WP:TemplateData)
imported>Zyxw
m (add {{TemplateData header}} (via JWB))
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
<!-- Categories go at the bottom of this page. -->
  
 
This template displays a person's birth date and age at a specified date.<br/>
 
This template displays a person's birth date and age at a specified date.<br/>
 
This allows you to show how old a person was at the time they participated in an event or made an achievement.
 
This allows you to show how old a person was at the time they participated in an event or made an achievement.
  
 +
== Usage ==
 
; Syntax
 
; Syntax
 
: {{tlc|{{lc:{{BASEPAGENAME}}}}&nbsp;|''specified year''|''specified month''|''specified day''&nbsp;|''year of birth''|''month of birth''|''day of birth''}}
 
: {{tlc|{{lc:{{BASEPAGENAME}}}}&nbsp;|''specified year''|''specified month''|''specified day''&nbsp;|''year of birth''|''month of birth''|''day of birth''}}
Line 14: Line 15:
 
{{tlf|{{lc:{{BASEPAGENAME}}}} <nowiki>|1988|6|10 |1961|7|4 |df=y</nowiki>}} produces:&nbsp; {{birth date and age2 |1988|6|10 |1961|7|4 |df=y}}
 
{{tlf|{{lc:{{BASEPAGENAME}}}} <nowiki>|1988|6|10 |1961|7|4 |df=y</nowiki>}} produces:&nbsp; {{birth date and age2 |1988|6|10 |1961|7|4 |df=y}}
  
 
+
== TemplateData ==
{{Birth, death and age templates}}
+
{{TemplateData header}}
 
 
<includeonly>{{basepage subpage
 
| <!-- Categories below this line, please: -->
 
[[Category:Date mathematics templates]]
 
}}</includeonly>
 
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 85: Line 81:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== See also ==
 +
{{Birth, death and age templates}}
 +
 +
<includeonly>{{basepage subpage
 +
| <!-- Categories below this line, please: -->
 +
[[Category:Date mathematics templates]]
 +
}}</includeonly>

Revision as of 07:46, 24 February 2017

This template displays a person's birth date and age at a specified date.
This allows you to show how old a person was at the time they participated in an event or made an achievement.

Usage

Syntax
{{birth date and age2 |specified year|specified month|specified day |year of birth|month of birth|day of birth}}
Format
{{birth date and age2 |yyyy|mm|dd |yyyy|mm|dd |df=y}}
Example

{{birth date and age2 |1988|6|10 |1961|7|4 |df=y}} produces:  (1961-07-04)4 July 1961 (aged 26)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Birth date and age2

This template displays a person's birth date and age at a specified date.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Specified year1

Adds the specified year.

Example
1970
Numbersuggested
Specified month2

Adds the specified month.

Example
5
Numbersuggested
Specified day3

Adds the specified day.

Example
23
Numbersuggested
Year4

Year of birth.

Example
1952
Numbersuggested
Month5

Month of birth.

Example
4
Unknownsuggested
Date6

Date of birth.

Example
18
Numbersuggested
Dfdf

Date first.

Example
df=y
Stringsuggested

See also