Board Thread:Support Requests - Getting Technical/@comment-29252070-20191226015846

I'm planing a template for artists/authors/voice actors, but I thought it was interesting to add the person current age. Yet, as that would require editing every single person page, every year, that made me think if there was a code for calculus or simple math like:

If user insert x data (in "birth year" section for example), do math, show result.

Something like this:

Born&nbspin:&nbsp

Or this:

Born&nbspin:&nbsp

On the page it would be used: and state for example "Born on: 1919 (100 years old)."

I know that, that might seem confusing... I just saw that Mediawiki has codes for math, but I have never used it, so I have no idea how to implement them... is it possible to only show the result? not the entire calculus? I was thinking of doing something simple, without the months and day, just the year inside a "if else" because if the user don't insert anything it won't make any calculus...

Any thoughts?

Thank you beforehand for reading it, and sorry for any trouble... 