Manuel:Parse.php
Appearance
Outdated translations are marked like this.
| Fichier MediaWiki : parse.php | |
|---|---|
| Emplacement : | maintenance/ |
| Code source : | master • 1.45.1 • 1.44. • 1.39.16 |
| Classes : | CLIParser |
Détails
Le fichier parse.php est un script de maintenance qui analyse du wikitetxe.
Le wikitetxe peut être donné par stdin (l'entrée) ou en utilisant un fichier. Le wikitexte sera analysé en utilisant CLIParser comme titre. Ceci peut être changé avec l'option --titre.
The wikitext will be parsed using CLIParser as a title.
This can be overridden with --title option.
Exemples
$ 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>