Manual:View.php
MediaWiki file: view.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Classes: | ViewCLI |
Details
The view.php maintenance script outputs article contents to the command line in Wikitext format.
Arguments
view.php takes the title of the page as an argument.
Tip: Spaces inside a title must be replaced with underscores ( _ ), or use double quotation marks like "Foo Bar"
Usage
php maintenance/run.php view pageName
Terminal
{{#parsoid\0fragment:0}}
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.