扩展:导入条目
Jump to navigation
Jump to search
ImportArticles 发布状态: 稳定版 |
|
---|---|
实现 | Ajax |
描述 | Adds an ImportArticles used for JavaScript to import multiple CSS/JS pages at once. |
作者 | Cblair91讨论 |
最新版本 | 1.3 (2015-09-11) |
MediaWiki | 1.21+ |
数据庫更改 | 否 |
许可协议 | GNU通用公眾授權條款3.0 |
下载 | |
翻譯ImportArticles擴充功能如在translatewiki.net可用 | |
问题 | 尚未完成的工作 · 回報錯誤 |
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.
安装
- 下载文件,并将其放置在您
extensions/
文件夹中的ImportArticles
目录内。 - 将下列代码放置在您的LocalSettings.php的底部:
wfLoadExtension( 'ImportArticles' );
完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。
致使用MediaWiki 1.24或更早版本的用户:
上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()
。
如果您需要在早期版本(MediaWiki 1.24和更早版本)中安装此扩展,而不是wfLoadExtension( 'ImportArticles' );
,您需要使用:
require_once "$IP/extensions/ImportArticles/ImportArticles.php";
History
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