Manual:importSiteScripts.php
MediaWiki version: | ≥ 1.17 |
MediaWiki file: importSiteScripts.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | ImportSiteScripts |
Details
editimportSiteScripts.php file is a maintenance script to import all scripts in the MediaWiki namespace from a local site.
Options/Arguments
editArgument | Description | Required |
---|---|---|
api | API (api.php) base url | Required |
index | Index (index.php) base url | Required |
Usage
editphp maintenance/run.php importSiteScripts apiUrl indexUrl
Terminal
$ php maintenance/run.php importSiteScripts https://hi.wikiversity.org/w/api.php https://hi.wikiversity.org/w/ Fetched list up to मीडियाविकि:Visualeditor-cite-tool-definition.json Importing 36 pages Importing Common.js Importing Common.js/Slideshows.js Importing Common.js/WatchlistNotice.js Importing Common.js/addin-mooc-config.js Importing Common.js/addin-mooc-localization.js Importing Common.js/addin-mooc.js Importing DebateTree.js Importing Displayname.js Importing EditToolbar.js Importing ExtraTabs.js Importing Gadget-GoogleTrans.js Importing Gadget-HotCat.js Importing Gadget-Numeral converter.js Importing Gadget-ShortUrl.js Importing Gadget-ShortUrlShare.js Importing Gadget-Twinkle.js Importing Gadget-XTools-ArticleInfo.js Importing Gadget-charinsert.js Importing Gadget-defaultsummaries.js Importing Gadget-morebits.js Importing Gadget-refToolbar.js Importing Gadget-refToolbarBase.js Importing Gadget-removeAccessKeys.js Importing Gadget-searchFocus.js Importing Gadget-twinklediff.js Importing Gadget-twinklefluff.js Importing Gadget-twinkleunlink.js Importing Navigation.js Importing Purge.js Importing RefToolbar.js Importing RefToolbarConfig.js Importing RefToolbarLegacy.js Importing RefToolbarMessages-en.js Importing RefToolbarMessages-hi.js Importing Sidebar.js Importing Tables.js
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.