Jump to content

Manual:getText.php

From mediawiki.org
MediaWiki version:
1.16

Details

[edit]

getText.php file is a maintenance script that outputs content of a given page (wikitext) to stdout. It could be used for scripting.

Options/Arguments

[edit]
Option/Argument Description Required?
<title> Page title Required
--revision Revision ID Optional
--show-private Show the text even if it's not available to the public Optional

Usage

[edit]
php maintenance/run.php getText <title> [ --revision| --show-private ]
Terminal
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Advanced usage

[edit]
Terminal

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

See also

[edit]