Diferencia entre revisiones de «Plantilla:Age»
De Familia Sanchez Arjona
(rm superfluous) |
|||
Línea 8: | Línea 8: | ||
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<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>{{PAGENAME}}<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>{{PAGENAME}}<nowiki>|</nowiki></tt>''year1''<tt><nowiki>|</nowiki></tt>''month1''<tt><nowiki>|</nowiki></tt>''day1''<tt><nowiki>}}</nowiki></tt> | : <tt><nowiki>{{</nowiki>{{PAGENAME}}<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}} | ||
+ | |||
+ | See also {{tiw|bha}} and {{tiw|bdha}}. | ||
[[Category:Date math|{{PAGENAME}}]] | [[Category:Date math|{{PAGENAME}}]] | ||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revisión del 13:02 24 may 2006
This template returns the number of full years elapsed at one date since another date or since today (UTC).
- Syntax:
- {{Age|year1|month1|day1|year2|month2|day2}}
- {{Age|year1|month1|day1}}
Examples:
- {{age|1989|7|23|2003|7|14}} gives 13
- {{age|1989|7|23}} gives 35
See also Plantilla:Tiw and Plantilla:Tiw.