Mal:Alder: Forskjell mellom sideversjoner
Hopp til navigering
Hopp til søk
Ny side: <includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><no... |
doc |
||
| Linje 1: | Linje 1: | ||
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | <includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly> | ||
<noinclude> | |||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | |||
This template returns the number of full years between two dates, or between a specified date and today (UTC). | |||
{{{{ | ; Syntax<nowiki>:</nowiki> | ||
: <tt><nowiki>{{</nowiki>age<nowiki>|</nowiki></tt>''year1''<tt><nowiki>|</nowiki></tt>''month1''<tt><nowiki>|</nowiki></tt>''day1''<tt><nowiki>|</nowiki></tt>''year2''<tt><nowiki>|</nowiki></tt>''month2''<tt><nowiki>|</nowiki></tt>''day2''<tt><nowiki>}}</nowiki></tt> | |||
: <tt><nowiki>{{</nowiki>age<nowiki>|</nowiki></tt>''year1''<tt><nowiki>|</nowiki></tt>''month1''<tt><nowiki>|</nowiki></tt>''day1''<tt><nowiki>}}</nowiki></tt> | |||
Examples: | |||
*<nowiki>{{age|1989|7|23|2003|7|14}}</nowiki> gives {{age|1989|7|23|2003|7|14}} | |||
*<nowiki>{{age|1989|7|23}}</nowiki> gives {{age|1989|7|23}} | |||
If you use this template for calculating someone's age at death or age at a certain date (rather than their current age), please substitute it into the page, for example: <nowiki>{{subst:age|1989|7|23|2003|7|14}}</nowiki>. | |||
<!-- ADD CATEGORIES BELOW THIS LINE --> | |||
[[Category:Date mathematics templates|{{PAGENAME}}]] | |||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] | |||
<!-- ADD INTERWIKIS BELOW THIS LINE --> | |||
[[da:Skabelon:Alder]] | |||
[[nl:Sjabloon:Leeftijd]] | |||
[[no:Template:Age]] | |||
[[sq:Stampa:Mosha]] | |||
[[sl:Template:Starost]] | |||
[[vi:Tiêu bản:Tuổi]] | |||
</noinclude> | |||
Sideversjonen fra 15. apr. 2007 kl. 19:06
This template returns the number of full years between two dates, or between a specified date and today (UTC).
- Syntax:
- {{age|year1|month1|day1|year2|month2|day2}}
- {{age|year1|month1|day1}}
Examples:
If you use this template for calculating someone's age at death or age at a certain date (rather than their current age), please substitute it into the page, for example: {{subst:age|1989|7|23|2003|7|14}}.