To get the version, the easiest is just looking at special:version. From a script you could probably do something like
echo 'echo $wgVersion' | php eval.php If you are in the maintenance directory. Or just grep includes/DefaultSettings.php Alternatively you can use the mediawiki api (possibly using curl if from the command line) e.g. https://www.mediawiki.org/w/api.php?action=query&meta=siteinfo For replicating id suggest special:import and special:export (or the api or maintenance script equivs) You can edit pages from script by using edit.php maintenance script (or of course the api & curl) -- Brian For replicating a page i would s On Thursday, September 26, 2019, JFC Morfin <[email protected]> wrote: > Hi! > For more than a decade I publish my own working groups, personnal uses, > etc. wikis. I have hundreds of "bliks": I mean a mediawiki under SQLite + > mailman + side services. Each wiki under SQLite can be easily transfered > to other machines (privare or on line) and replicated on several local > machines (for private use and backup) in using dropbox. The configuration > is set-up with a script creating the directories, most of them being > symbolic links to a main wiki configuration, one per machine. > > This may sound crazy but it works well. Now, not being a PHP nor SQL > programmer I would need help on three issues: > > * what is the command to know the mediawiki version I use? > * on different "bliks", i.e. these SQLite supported wikis, I need to get > the same page (a glossary) to be locally present. Is there a way to > maintain a page on a single SQLight wiki and to get it replicated on others > (I just need the current version of the page, not its history) ? > * is there a command I could use (also in a script) to enter references to > pdf or image files I could then click form wikipages. > > Thanks a lot for any help. > jfcm > > > _______________________________________________ > MediaWiki-l mailing list > To unsubscribe, go to: > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
