Page MenuHomePhabricator

Add wikitext variable for a page's Wikibase qid
Closed, DuplicatePublic

Description

It would be useful if there was a wikitext variable (https://www.mediawiki.org/wiki/Help:Magic_words#Variables) for a page's Wikibase qid. This would make it possible to dynamically create links to Wikidata using templates, without using Lua.

According to Daniel Kinzler (https://www.mediawiki.org/w/index.php?diff=2328019), the place to start looking is at onParserGetVariableValueSwitch in WikibaseClient.hooks.php