Jump to content

Manual:getText.php

From mediawiki.org
Revision as of 10:49, 17 August 2015 by Christian75 (talk | contribs) (==See also== * Manual:edit.php)

Details

MediaWiki version:
1.16

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

Usage

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.

See also

[[Category:Maintenance scriptsTemplate:Translation|Manual:GetText.php]]