Difference between revisions of "Template:Birth date and age2/doc"
Jump to navigation
Jump to search
imported>DixonDBot m (Migrating 2 interwiki links, now provided by Wikidata on d:Q6438902) |
imported>Sardanaphalus (formattingt (including <tt> replacement), removed heading and link (now in template), sandbox non-categorization) |
||
| Line 2: | Line 2: | ||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis 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. | ||
| − | ; Syntax | + | ; Syntax |
| − | : | + | : {{tc|{{lc:{{BASEPAGENAME}}}} |''specified year''|''specified month''|''specified day'' |''year of birth''|''month of birth''|''day of birth''}} |
| − | ; Format | + | ; Format |
| − | : | + | : {{tcpl|{{lc:{{BASEPAGENAME}}}} |''yyyy''|''mm''|''dd'' |''yyyy''|''mm''|''dd'' |df{{=}}y}} |
| + | |||
| + | ; Example | ||
| + | {{plaincode|{{braces|{{lc:{{BASEPAGENAME}}}} <nowiki>|1988|6|10 |1961|7|4 |df=y</nowiki>}}}} produces: {{birth date and age2 |1988|6|10 |1961|7|4 |df=y}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
{{Birth, death and age templates}} | {{Birth, death and age templates}} | ||
| − | |||
| − | |||
| − | |||
| − | </includeonly> | + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
| + | | <!-- Categories below this line, please: --> | ||
| + | [[Category:Date mathematics templates]] | ||
| + | }}</includeonly> | ||
Revision as of 17:04, 7 December 2014
| This is a documentation subpage for Template:Birth date and age2. It contains usage information, categories and other content that is not part of the original template page. |
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.
- Syntax
{{birth date and age2 |specified year|specified month|specified day |year of birth|month of birth|day of birth}}
- Format
- Template:Tcpl
- Example
Template:Plaincode produces: 4 July 1961 (aged 26)