Extension:WikibaseInWikitext

From Linux Web Expert

MediaWiki extensions manual
WikibaseInWikitext
Release status: beta
Implementation ContentHandler , Tag
Description Adds the "sparql" tag for rendering SPARQL with some helpful things around it such as list of entities referenced and a link to try it in a SPARQL UI.
Author(s) Adam Shorland (Addshoretalk)
MediaWiki 1.32+
License GNU General Public License 2.0 or later
Download
README
CHANGELOG
$wgWikibaseInWikitextSparqlDefaultUi
<sparql>
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

The WikibaseInWikitext extension adds the "sparql" tag for rendering SPARQL with some helpful things around it such as list of entities referenced and a link to try it in a SPARQL UI. It also hooks in with extension Syntaxhighlight if provided to make it look pretty.

Installation

  • <translate> Download and place the file(s) in a directory called <tvar name=name>WikibaseInWikitext</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'WikibaseInWikitext' );
    
  • Configure as required.
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Configuration

$wgWikibaseInWikitextSparqlDefaultUi
Location of the SPARQL UI to link to. Example: https://addshore-alpha.wiki.opencura.com/query