Category:Date mathematics templates
Contents: Top | 0–9 | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Other
This category contains templates that perform date-related calculations – such as computing a person's current age, formatting dates, or comparing dates. These templates typically use MediaWiki's ParserFunctions (e.g., {{#expr}}, {{#ifexpr}}) to produce dynamic, up‑to‑date output.
Purpose
Date mathematics templates are essential for biography infoboxes, event listings, and any page where a date needs to be displayed alongside a calculated time difference (e.g., age, days until an event). They reduce manual updates and ensure consistency.
Templates in this category
- </code>
| {{Birth date and age}}
}} – displays a birth date with automatically calculated current age
- </code>
| {{Death date and age}}
}} – displays a death date with age at death
- </code>
| {{Birth date}}
}} – displays only the birth date (no age)
- </code>
| {{Age}}
}} – calculates age from a given birth date
- </code>
| {{Age in years, months, weeks and days}}
}} – detailed age breakdown
- </code>
| {{Years ago}}
}} – years since a specified year
- </code>
| {{Days until}}
}} – days remaining until a future date
How to add a template to this category
Add the following at the bottom of the template code (inside tags or on the template's /doc subpage):
<noinclude>[[Category:Date mathematics templates]]</noinclude>
Or if using a /doc subpage, place inside </pre>
See also
Pages in category "Date mathematics templates"
This category contains only the following page.