No edit summary |
@DeletedUser41170185 (talk | contribs) mNo edit summary |
||
(38 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly>{{#dateformat:{{{1|}}}|d M Y}}<span class="noprint"> (age {{age|{{#time:Y|{{{1|}}}}}|{{#time:m|{{{1|}}}}}|{{#time:d|{{{1|}}}}}}})</span></includeonly><noinclude>{{Doc begin}} |
||
− | {{lang |
||
+ | This template is used to display the age next to a birth date. |
||
− | | en = <includeonly> {{#if:{{{df|}}}|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}} {{#expr:{{{3|{{{day}}}}}}}},}} {{{1|{{{year}}}}}}<span style="display:none"> (<span class="bday">{{{1|{{{year}}}}}}-{{padleft:{{{2|{{{month}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}</span>)</span><span class="noprint"> (age {{age | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }})</span> |
||
+ | |||
− | </includeonly> |
||
+ | == Usage == |
||
− | | zh-hans = <includeonly>{{{1|{{{year|{{{1}}}}}}}}}年{{{2|{{{month|{{{1}}}}}}}}}月{{{3|{{{day|{{{3}}}}}}}}}日<span style="display:none"> (<span class="bday">{{{1|{{{year|}}}}}}-{{pad2digit|{{{2|{{{month|}}}}}}}}-{{pad2digit|{{{3|{{{day|{{{3}}}}}}}}}}}</span>)</span><font class="noprint">({{age | {{{1|{{{year|{{{1}}}}}}}}} | {{{2|{{{month|{{{2}}}}}}}}} | {{{3|{{{day|{{{3}}}}}}}}} }}歲)</includeonly> |
||
+ | {{Tl|Birth date and age|<birth date>}} |
||
⚫ | |||
+ | |||
+ | == Example == |
||
+ | {{Birth date and age|1996-07-01}} |
||
+ | |||
+ | == TemplateData == |
||
+ | <templatedata> |
||
+ | { |
||
+ | "params": { |
||
+ | "1": { |
||
+ | "label": "Birthdate", |
||
+ | "example": "1996-06-02", |
||
+ | "type": "date", |
||
+ | "required": true |
||
+ | } |
||
⚫ | |||
+ | "description": "Displays the age next to the birthdate.", |
||
+ | "format": "inline" |
||
+ | } |
||
+ | </templatedata> |
||
+ | |||
+ | [[Category:Function templates]] |
||
+ | |||
+ | [[zh:Template:Birth date and age]] |
||
+ | </noinclude> |
Latest revision as of 15:10, 11 April 2018
This template is used to display the age next to a birth date.
Usage
{{Birth date and age|<birth date>}}
Example
1996-07-01
TemplateData
Displays the age next to the birthdate.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Birthdate | 1 | no description
| Date | required |