GoogleKnowledgeGraph MediaWiki extension adds tooltips with short description about specified terms. The description received automatically from Google Knowledge Graph.
Main purpose of the extension is to show on a simple example how to develop MediaWiki extensions, that is why you see quite many comments for each and every method.
There is a Russian article with detailed description of the extension development: https://habr.com/ru/company/veeam/blog/544534/
The extension is provided only for education purposes. Using it in production is not recommended: Google provides only 100 000 requests for free.
To install the extension, place the folder in ./extensions and add in LocalSettings.php:
wfLoadExtension( 'GoogleKnowledgeGraph' );
$wgGoogleApiToken = 'your-google-token';
$wgGoogleApiLanguage = 'en';
You can get token on: https://console.cloud.google.com/flows/enableapi?apiid=kgsearch.googleapis.com&credential=client_key
To use the extension add on a page tag:
<GoogleKnowledgeGraph query="Mario">
and save the page