Podręcznik:Parse.php
Appearance
| Plik MediaWiki: parse.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| Klasy: | CLIParser |
Szczegóły
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.
Przykłady
$ php parse.php --title foo ''[[foo]]''^D <p><i><strong class="selflink">foo</strong></i> </p>
$ echo "'''bold'''" > /tmp/foo.txt $ php parse.php /tmp/foo.txt <p><b>bold</b> </p>
$ cat /tmp/foo | php parse.php <p><b>bold</b> </p>