Extension:ImportArticles
Jump to navigation
Jump to search
ImportArticles Release status: stable |
|
---|---|
Implementation | Ajax |
Description | Adds an ImportArticles used for JavaScript to import multiple CSS/JS pages at once. |
Author(s) | Cblair91talk |
Latest version | 1.3 (2015-09-11) |
MediaWiki | 1.21+ |
Database changes | No |
License | GNU General Public License 3.0 |
Download | |
Translate the ImportArticles extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The ImportArticles extension adds a JavaScript that is loaded on the page, which allows the importation of multiple JS and CSS at once. This is usable in the MediaWiki namespace for the skin, or in the users namespace for their local modifications.
Installation[edit]
- Download and place the file(s) in a directory called
ImportArticles
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'ImportArticles' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
To users running MediaWiki 1.24 or earlier:
The instructions above describe the new way of installing this extension using wfLoadExtension()
.
If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'ImportArticles' );
, you need to use:
require_once "$IP/extensions/ImportArticles/ImportArticles.php";
History[edit]
V1.3:
- Cleaned up a bunch of the code, and transfer to current PHP/MW standards
V1.2:
- Add version and licence to JavaScript definer
- Change variables to global variable
- Fixed console logging for page missing
V1.1:
- Change variables
- Fixed output formatting
V1.0:
- Initial release