Dilib, module MediaWiki, commande MediaWikiExportCommand

De Wicri Outils
Révision datée du 19 août 2020 à 09:53 par imported>Jacques Ducloy (Exemple)
LogoDilib.gif
Panneau travaux.png
Bibliothèque Dilib (ressources numériques)
Module MediaWiki

Cette commande, en cours de développement, permet de générer des pages wikis importables.

 

Synopsis

MediaWikiExportCommand -c command > pageGénérée

Exemple

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