Manual:populateInterwiki.php

From mediawiki.org
This page is a translated version of the page Manual:PopulateInterwiki.php and the translation is 75% complete.

詳細

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 省略可能 https://en.wikipedia.org/w/api.php
--force Run regardless of whether the database says it has been run already. 省略可能

使用法

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

Populate with default English Wikipedia

Terminal

Populate with custom API address

Terminal


スクリプトが実行されるたびに、データベース内にメモが作成され、二度と実行されないようになります。 このスクリプトをもう一度実行したい場合は、コマンドに --force オプションを付けて実行してください。

関連項目