Manual:PopulateInterwiki.php

Category:MediaWiki code#PopulateInterwiki.php

Details

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

Options

Option Description Required Default value
--sourceSource wiki for interwiki table, such as https://wiki.org/w/api.phpOptionalhttps://en.wikipedia.org/w/api.php
--forceRun regardless of whether the database says it has been run already.Optional

Usage

php maintenance/run.php populateInterwiki [ --source| --force ]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Populate with default English Wikipedia

Terminal

Populate with custom API address

Terminal
Whenever the script runs, it makes a note in the database and will not run again. If you want to run the script again, run the command with the --force option.

See also

Category:Maintenance scripts Category:Content maintenance scripts Category:Database maintenance scripts
Category:Content maintenance scripts Category:Database maintenance scripts Category:Maintenance scripts Category:MediaWiki code