Jump to content

Template:Display Age: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
Created page with "<noinclude>'''This displays someone's age, if they have both a birth and death date.'''<br/> '''Usage:'''<br/> <nowiki>{{</nowiki>{{PAGENAME}} |from|to}}</noinclude><includeon..."
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 1: Line 1:
<noinclude>'''This displays someone's age, if they have both a birth and death date.'''<br/>
<noinclude>'''This displays someone's age, if they have both a birth and death date.'''<br/>
'''Usage:'''<br/>
'''Usage:'''<br/>
<nowiki>{{</nowiki>{{PAGENAME}} |from|to}}</noinclude><includeonly>{{#if: {{#show: {{PAGENAME}} | ?died on}}| {{#if: {{#show: {{PAGENAME}} | ?born on}}| (Age {{Years Difference| {{#show: {{PAGENAME}} | ?died on}} | {{#show: {{PAGENAME}} | ?born on}} }}) }} }}</includeonly>
<nowiki>{{</nowiki>{{PAGENAME}} |from|to}}</noinclude><includeonly>{{#if: | {{#if: | (Age {{Years Difference| | }}) }} }}</includeonly>

Latest revision as of 22:34, 24 September 2026

This displays someone's age, if they have both a birth and death date.
Usage:
{{Display Age |from|to}}