Mall:Age in years and months/dok

Från Järnvägsdata
< Mall:Age in years and months
Version från den 7 december 2025 kl. 18.18 av Jan Karlsson (diskussion | bidrag) (Skapade sidan med '{{Documentation subpage}} {{shortcut|Template:Age ym}} {{Lua|Module:Age}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This template returns the duration between two specified dates as a number of full years and remaining months. If the second set of parameters is not included, the duration is between the specified date and today's date. ===Syntax=== : {{tc|age in years and months |''year1''|''month1''|''day1'' |''year2''|''month2''|''day2''}} : {{tc|...')
(skillnad) ← Äldre version | Nuvarande version (skillnad) | Nyare version → (skillnad)

This template returns the duration between two specified dates as a number of full years and remaining months. If the second set of parameters is not included, the duration is between the specified date and today's date.

Syntax

{{age in years and months |year1|month1|day1 |year2|month2|day2}}
{{age in years and months |year1|month1|day1}}  (causing the current date to be used as the second date)

Examples

Markup Renders as
[markup]

[rendering]

[markup]

[rendering]

[markup]

[rendering]

[markup]

[rendering]

[markup]

[rendering]

[markup]

[rendering]

[markup]

[rendering]