Manual:getText.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MediaWiki Version:
<translate> ≥</translate> 1.16

Details

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

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

Usage

php maintenance/getText.php <title> [ --revision| --show-private ]
Terminal

Advanced usage

Terminal

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

See also