Manual:populateInterwiki.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

詳細

populateInterwiki.php is a maintenance script that populates the interwiki table, pulling in interwiki links that are used on Wikipedia or another MediaWiki wiki.

オプション

オプション 説明 必須かどうか 既定値
--source Source wiki for interwiki table, such as https://wiki.org/w/api.php <translate> Optional</translate> https://en.wikipedia.org/w/api.php
--force Run regardless of whether the database says it has been run already. <translate> Optional</translate>

使用法

php maintenance/populateInterwiki.php [ --source| --force ]

Populate with default English Wikipedia

Terminal

Populate with custom API address

Terminal


<translate> Whenever the script runs, it makes a note in the database and will not run again.</translate> <translate> If you want to run the script again, run the command with the <tvar name=1>--force</tvar> option.</translate>

関連項目