Manual:fetchText.php
MediaWiki バージョン: | ≧ 1.12 |
MediaWiki ファイル: fetchText.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.43.1 • 1.42.6 • 1.39.12 |
クラス: | FetchText |
詳細
fetchText.php file is a maintenance script to fetch a particular revision text from an old_id
.
This is used by dumpTextPass.php when the --spawn
option is present.
This is an interactive script.
オプション/引数
This script does not take any options or arguments as it is an interactive script.
使用法
php maintenance/run.php fetchText
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを
php maintenance/run.php scriptName
ではなく php maintenance/scriptName.php
を使用して実行する必要があります。Provide a text id (old_id
from the text
table) or an external storage URL followed by a newline, and the script will output a string containing the following in order:
- The ID or URL provided
- length of text (-1 on error = failure to retrieve/unserialize/gunzip/etc)
- text (may be empty)
Terminal
$ php maintenance/run.php fetchText 1 tt:1 755 <strong>MediaWiki has been installed.</strong> Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software. == Getting started == * [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list] * [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ] * [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list] * [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language] * [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]
The text string itself is *not* followed by newline. スクリプトは Ctrl+C を入力することで終了できます。
Since revisions can be deleted without the actual revision text being removed, this script can also return text that is no longer associated with any revision at all (it may be a current, historic or deleted revision).