Manual:GetText.php: Difference between revisions
Appearance
Content deleted Content added
Marked this version for translation |
No edit summary |
||
| Line 4: | Line 4: | ||
==Details== <!--T:1--> |
==Details== <!--T:1--> |
||
</translate> |
</translate> |
||
{{MW 1.16}} |
{{MW 1.16|and after}} |
||
<translate> |
<translate> |
||
<!--T:3--> |
<!--T:3--> |
||
Revision as of 12:29, 29 October 2015
| MediaWiki file: getText.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| Classes: | GetTextMaint |
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]]