This page is a translated version of the page Manual:Parse.php and the translation is 40% complete.


parse.php file is a maintenance script that parses some wikitext.

Wikitext can be given by stdin or using a file. The wikitext will be parsed using CLIParser as a title. This can be overridden with --title option.


$ php parse.php --title foo
<p><i><strong class="selflink">foo</strong></i>
$ echo "'''bold'''" > /tmp/foo.txt
$ php parse.php /tmp/foo.txt
$ cat /tmp/foo | php parse.php