Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a224dbfced583e6e

Jump to content

Module:WikidataIdentifiers/doc

From Wikipedia, the free encyclopedia


Functions for use in retrieving Wikidata for use in templates that deal with identifiers

  • getIdentifierQualifier returns the value of a qualifier for an Identifier

Functions

[edit]

getIdentifierQualifier

[edit]

This returns the value of a qualifier for an identifier such as Art UK artist ID (P1367).

There is an assumption is that one value exists for the property, and only one qualifier exists for that value.

Constraint violations for Art UK artist ID (P1367) are at d:Wikidata:Databasereports/Constraintviolations/P1367 #Single_value

Usage

[edit]

Normally use like this within a template for use in the article concerned:

  • {{#invoke:WikidataIdentifiers |getIdentifierQualifier |<property> |qual=<qualifier>}}

If used outside of the related article, an expensive version of the call is available:

  • {{#invoke:WikidataIdentifiers |getIdentifierQualifier |<property> |qual=<qualifier> |qid=<Q-value for target in Wikidata}}

Examples

[edit]

Retrieving the quantity (P1114) qualifier for the Art UK artist ID (P1367) within an article:

  • {{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114}}

Retrieving the quantity (P1114) qualifier for the Art UK artist ID (P1367) for Charles Walter Simpson (Q5083334) outside of the article:

  • {{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114 |qid=Q5083334}}