Manual:ImportSiteScripts.php
Appearance
Outdated translations are marked like this.
Versão MediaWiki: | ≥ 1.17 |
Arquivo MediaWiki: importSiteScripts.php | |
---|---|
Local: | maintenance/ |
Código fonte: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | ImportSiteScripts |
Detalhes
O arquivo importSiteScripts.php é um script de manutenção para importar todos os scripts no namespace MediaWiki a partir de um site local.
Options/Arguments
Argument | Description | Required |
---|---|---|
api | API (api.php) base url | Required |
index | Index (index.php) base url | Required |
Usage
php 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
.