Jump to content

Template:Age: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
>Johnuniq
fix to not display confusing "0" on Template:Age per request
 
Create or repair template to remove red links and rendering errors across articles
 
Line 1: Line 1:
<includeonly>{{#invoke:age|age_generic|template=age_full_years}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#expr: {{CURRENTYEAR}} - {{{1|{{CURRENTYEAR}}}}} - {{#ifexpr: ({{CURRENTMONTH}} < {{{2|1}}}) or (({{CURRENTMONTH}} = {{{2|1}}}) and ({{CURRENTDAY}} < {{{3|1}}})) | 1 | 0 }} }}</includeonly><noinclude>
Returns the number of full years elapsed since a given date.
 
<pre>{{Age|1947|6|13}} -> 78</pre>
 
[[Category:Date templates]]
</noinclude>

Latest revision as of 05:25, 25 August 2026

Returns the number of full years elapsed since a given date.

{{Age|1947|6|13}} -> 78