Template:PAGEQID/doc

Usage
Returns the QID of the linked wikidata item associate with this page. If no wikidata item is linked, returns nothing.

Formatted parameter
If the formatted is set, then the QID will have the additional behaviour: If the page already has a wikidata item associated with it If the page doesn't have a wikidata item associated with it
 * display that QID
 * Example:
 * display a link to create a new QID for the page (assuming that it is a preprint (Q580922), and that today is its submission date)
 * add it to Category:Articles lacking a Wikidata item
 * Example:

The item type and submission date can be manually set with instance_of and submitted respectively. If the article is based on a Wikipedia page, including an et_al parameter will also add a contributors = Wikipedia community statement and add the relevant CCBYSA license.