The extension My Variables adds some new magic words to use, however some of them are not working correctly.
See the test here. According to the MW.org page, this extension has been updated recently, so this might be a configuration issue.
The magic words have been added in "master" but it has not been backported to REL1_36 which Miraheze is using. You should try asking the developers to backport it.