Panduan:PopulateInterwiki.php
Berkas MediaWiki: populateInterwiki.php | |
---|---|
Lokasi: | maintenance/ |
Kode sumber: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Kelas: | PopulateInterwiki |
Rincian
populateInterwiki.php is a maintenance script that populates the interwiki table, pulling in interwiki links that are used on Wikipedia or another MediaWiki wiki.
Pilihan
Pilihan | Deskripsi | Diperlukan | Nilai tetapan |
---|---|---|---|
--source | Source wiki for interwiki table, such as https://wiki.org/w/api.php | Opsional | https://en.wikipedia.org/w/api.php |
--force | Run regardless of whether the database says it has been run already. | Opsional |
Penggunaan
php maintenance/populateInterwiki.php [ --source| --force ]
Populate with default English Wikipedia
Terminal
$ php maintenance/populateInterwiki.php Interwiki links are populated.
Populate with custom API address
Terminal
$ php maintenance/populateInterwiki.php --source "https://www.mediawiki.org/w/api.php" Interwiki links are populated.
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.