Jump to content

Manual:getText.php

From mediawiki.org
This page is a translated version of the page Manual:GetText.php and the translation is 80% complete.
MediaWiki バージョン:
1.16

詳細

getText.php file is a maintenance script that outputs content of a given page (wikitext) to stdout. スクリプト作成に使えます。

オプション/引数

オプション/引数 説明 必須かどうか
<title> ページ名 必須
--revision 版 ID 省略可能
--show-private Show the text even if it's not available to the public 省略可能


使用法

php maintenance/run.php getText <title> [ --revision| --show-private ]
Terminal
MediaWiki バージョン 1.43.6 以前では、メンテナンス スクリプトを php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。

高度な使用法

Terminal

If page title contains whitespace, it should be enclosed in double quotes ("), as shown in example.

関連項目