π» MediaWiki extension adding a <query> tag to display sparql queries results inside wiki pages.
To complete
In /mediawiki-config/LocalSettings.php, add :
# Activate QueryViz extension
wfLoadExtension( 'QueryViz' );
$wgQueryVizEndpoint = "https://lingualibre.org/bigdata/namespace/wdq/sparql"; // Or your chosen default endpointFor Lingualibre, see also /operations : LinguaLibre set up repository.
Deploy:
- Go to host server : login
 cd /opt/mediawiki/x.xx/extensions/QueryViz # x.xx being your MediaWiki versiongit pull
Test on live website via private windows :
- If work : we won !
 - if breaks : roll back change 
git reset --hard a0d3fe6with the correct commit id found from Github 
  βββ bin/build.sh : building script, copies few js.
  βββ i18n/ : translation files
  |     βββ en.json : English
  |     βββ fr.json : French
  |     βββ qqq.json : guides
  βββ includes/TagHandler.php : load config, inject queryviz base html with empty loading element.
  βββ modules/
  |     βββ ext.queryViz.QueryViz.js : call the sparql, received data, built and inject corresponding html table.
  |     βββ ext.queryViz.WikidataSearchWidget.js : ? <believed to not be active>
  |     βββ ext.queryViz.js : ?
  |     βββ ext.queryViz.css : css
  βββ Hooks.php : parse page, call upon <query> the function TagHandler.php .
  
- Phabricator: Lingua-libre > Query service column β tickets manager
 - Github: Lingua-libre/QueryViz β code (JS)
 
See examples of use on LinguaLibre website: LinguaLibre:Stats, Help:SPARQL, Category:DataViz