Jump to content

手册:PopulateInterwiki.php

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

详情

populateInterwiki.php是一个给interwiki 表增加数据的维护脚本,用于提取在Wikipedia或其他MediaWiki维基上使用的跨维基链接。

选项

选项 说明 是否必须 默认值
--source Source wiki for interwiki table, such as https://wiki.org/w/api.php Optional https://en.wikipedia.org/w/api.php
--force Run regardless of whether the database says it has been run already. Optional


用法

php maintenance/run.php populateInterwiki [ --source| --force ]
在MediaWiki MediaWiki 1.39 及更早版本中,您必须通过php maintenance/脚本名称.php调用维护脚本,而不是php maintenance/run.php 脚本名称

使用默认英语维基百科填充

Terminal

使用用户API地址填充

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.

参见