Manual:getText.php

From MediaWiki.org

Jump to: navigation, search
Warning - v1.16.0 has not been released yet. This feature may be modified or removed before final release.
MediaWiki version: 1.16
MediaWiki File: getText.php
Location: /maintenance/
Source code: HEAD

1.15.11.14.11.6.12

Classes: None

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

php getText.php "page title" | sed -e '...' | php edit.php "page title"

The only parameter, in addition to standard ones, is page title. If it contains whitespace, it should be enclosed in double quotes ("), as shown in example.