This extension contains all PHP, JavaScript, CSS and Lua code specific to Appropedia. We used to have it all scattered in our MediaWiki:Common.js, MediaWiki:Common.css and LocalSettings.php, but we now have it all here for several reasons:
- Simplify testing and maintenance
- Simplify documentation and discovery of new features and changes
- Simplify contributions by new developers via pull requests
- Simplify development by allowing us to make use of code editors
- Simplify CSS styling by allowing us to make use of LESS
- Improve performance by allowing us to make use of MediaWiki's Resource Loader and avoiding unnecessary web requests to MediaWiki:Common.js and MediaWiki:Common.css
- Translate strings via translatewiki.net, see Translating:Appropedia
- Further our commitment to open source code as well as content
Many features that were developed specifically for Appropedia have been turned into standalone extensions (such as CategoryLockdown, PageAuthors, StandardWikitext and SearchParserFunction) but others are so specific that can't be turned into extensions, so we clump them all together in this extension.
Note that template-specific JavaScript and CSS is still hosted at Appropedia (see Category:Template script pages and Category:Template style pages) and should remain there. This is because such scripts and styles should only be loaded on pages where the templates are used, while code in this extension gets loaded on all pages.