Nuvola apps important.png Attention, suite à une faille de sécurité, les liens vers les serveurs d'exploration sont désactivés.

-

Wicri:HypertextV5/Génération wiki

De H2PTM

Cette page introduit un test de génération de pages wiki contenant des cartes avec géolocalisation.

Commandes génération

cat <<... > HypertextV5/export.xml
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.8/ http://www.mediawiki.org/xml/export-0.8.xsd"    
    version="0.8"
    xml:lang="fr">
...

HfdCat HypertextV5/Data/France/Analysis/AffRegion.i.hfd \
   | SxmlCut idx/l        \
   | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/France/localisationRegionFrance.dict \
                         -m France -f "France location map-Regions.svg" -s 650  \
                         -a HypertextV5 -t "Carte France"                        \
                         -u HypertextV5/Site/fr/France/AnalysisRegion \
     >>HypertextV5/export.xml

HfdCat HypertextV5/Data/Allemagne/Analysis/AffRegion.i.hfd \
   | SxmlCut idx/l        \
   | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Allemagne/localisationLandsAllemagne.dict \
                         -m Allemagne -f "Germany location map.svg" -s 650  \
                         -a HypertextV5 -t "Carte Allemagne lands"                        \
                         -u HypertextV5/Site/fr/Allemagne/AnalysisRegion \
     >>HypertextV5/export.xml

HfdCat HypertextV5/Data/Main/Exploration/AffRegion.i.hfd \
    | SxmlCut idx/l        \
    | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Espagne/localisationRegionEspagneNuts2.dict \
                          -m Espagne -f "Spain location map.svg" -s 650  \
                          -a HypertextV5 -t "Carte Espagne"                    \
                          -u HypertextV5/Site/fr/Main/ExplorationRegion \
      >>HypertextV5/export.xml

HfdCat HypertextV5/Data/Main/Exploration/AffPays.i.hfd \
    | SxmlCut idx/l        \
    | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \
            -m Europe -f "Europe laea location map.svg" -s 650  \
            -a HypertextV5 -t "Carte Europe"                        \
            -u HypertextV5/Site/fr/Main/ExplorationPays \
     >> HypertextV5/export.xml

HfdCat HypertextV5/Data/Main/Exploration/AffPays.i.hfd \
    | SxmlCut idx/l        \
    | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \
                             -g $DILIB/data/Wicri/Amerique/localisationPaysAmerique.dict \
                             -g $DILIB/data/Wicri/Asie/localisationPaysAsie.dict \
                             -g $DILIB/data/Wicri/Afrique/localisationPaysAfrique.dict \
                             -g $DILIB/data/Wicri/Oceanie/localisationPaysOceanie.dict \
              -m Monde -f "1000pxWorld location map (equirectangular 180).svg.png" -s 1000  \
               -a HypertextV5 -t "Carte Monde"                        \
            -u HypertextV5/Site/fr/Main/ExplorationPays \
     >> HypertextV5/export.xml



cat <<... >> HypertextV5/export.xml
</mediawiki>
...