Dilib, module MediaWiki, commande MediaWikiExportCommand
De Wicri Outils
Module MediaWiki |
Cette commande, en cours de développement, permet de générer des pages wikis importables.
Sommaire |
Liste des modules Dilib
Module MediaWiki
|
Synopsis
MediaWikiExportCommand -c command > pageGénérée
Exemple
Les commandes ci-dessous permettent de générer les pages Modèle:Hello World et Test Hello World.
MediaWikiExportCommand -c fileBegin > exportSample.xml
MediaWikiExportCommand -c pageBegin -p "Modèle:Hello World" >> exportSample.xml
echo "==Hello World==" >> exportSample.xml
MediaWikiExportCommand -c pageEnd >> exportSample.xml
MediaWikiExportCommand -c pageBegin -p "Test Hello World" >> exportSample.xml
echo "{{Hello World}}" >> exportSample.xml
MediaWikiExportCommand -c pageEnd >> exportSample.xml
MediaWikiExportCommand -c fileEnd >> exportSample.xml