Is there a way to make a number increase each year in wiki formatting?

Paper Mario

SPM Trash
Forum Moderator
Pronouns
She/They
MarioWiki
Fawfulthegreat64
With the news of Userpedia being locked at the end of this year, I'm trying to set up my article to be as up to date as possible before the close. But there's one piece of info that I can't change yet, but will be outright wrong soon after the year ends, that being my age. I realize the info will eventually be outdated but I suppose I'm a bit picky about my age being correct. It seems like something that shouldn't be hard to format but I'm not sure how. Is there a way to format this? Thanks :)
 
Mario Kart DS Fan said:
dude, just replace your old age with your new one.

He means the age will update every year and not be able to be changed on UP



That said, you could just have your DOB instead and then it won't have to be updated every year and stay correct every year. If people want to figure out your exact age from that they can just calculate it.
 
Lakituthequick said:
I do this exact thing on my page with this code:

Code:
{{#expr:({{CURRENTYEAR}})-(1997)-(({{CURRENTMONTH}})<(1)or({{CURRENTMONTH}})=(1)and({{CURRENTDAY}})<(31))}}

Knowing I was born on 31 January 1997, you can replace the numbers here with your own birthday.
Thanks, that worked nicely :)
 
Back