'How can I set a variable in the MediaWiki

I'm looking for an oppertunity to set a variable in the wikipedia code.

something like this

year1 = "2002"

and then just to write year1 instead of 2002. Because if I want to change 2002 to 2004 I don't have to change twenty times the 2002, just only year1 once. I Really hope you can help me.

Thank you so much for your time. :)

Best Regards Dante



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source