: How to find out if a magic word for Mediawiki already exists? I want to have a magic word IS_APPROVED which returns "is-approved" if a Mediawiki page version is approved and returns "" if
I want to have a magic word IS_APPROVED which returns "is-approved" if a Mediawiki page version is approved and returns "" if the page version is not approved. The page is approved via the ApprovedRevs extension which simply adds a pair (pageid,versionid) to a table in the MySQL database to indicate the version approval.
Does such a magic word already exist?
More posts by @Speyer207
1 Comments
Sorted by latest first Latest Oldest Best
api.php?action=query&meta=siteinfo&siprop=magicwords will give you the list of magic words available on a wiki (documentation, English Wikipedia example). As for figuring out if anyone has ever written an extension providing a magic word for a certain function, well, Google is your friend... As the manual on variables explains, MagicWordwgVariableIDs is a good search keyword as any extension providing variables must subscribe to that hook.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.