User:Jasper Deng/$wgConf alternative

Since $wgConf is not that reliable, but you still want your setting to be set by a common settings file, you can use the following examples. This is somewhat used by the Wikimedia Foundation, especially for extensions and namespaces not on all wikis. Disclaimer: This is not a substitute for $wgConf if you are using CentralAuth, and this is not officially endorsed by MediaWiki developers.