Jump to content

Manual:GetText.php: Difference between revisions

From mediawiki.org
Content deleted Content added
m dummy edit to update translation pages
mNo edit summary
Line 28: Line 28:
==See also== <!--T:8-->
==See also== <!--T:8-->
</translate>
</translate>
* {{ll|Manual:edit.php}}
* {{ll|Manual:Edit.php}}


[[Category:Maintenance scripts{{translation}}|Manual:GetText.php]]
[[Category:Maintenance scripts{{translation}}|Manual:GetText.php]]

Revision as of 08:12, 14 December 2016

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]]