Mobile app version of vmapp.org
Login or Join
Caterina187

: Is it possible to define and refer to constants in MediaWiki? Is it it possible in MediaWiki to define a constant and then include the constant in other pages? E.g. could MY_HELP_MESSAGE be

@Caterina187

Posted in: #Mediawiki

Is it it possible in MediaWiki to define a constant and then include the constant in other pages?

E.g. could MY_HELP_MESSAGE be defined as If you want help, contact help@somedomain…
and MY_HELP_MESSAGE be called via e.g. {{MY_HELP_MESSAGE}} (as per meta.wikimedia.org/wiki/Help:Variable)?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina187

1 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

Yes. Use vardefine.
#vardefine

{{#vardefine:variablename|specifiedvalue}}

www.mediawiki.org/wiki/Extension:Variables

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme