<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikidataIdentifiers%2Fdoc</id>
	<title>Module:WikidataIdentifiers/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikidataIdentifiers%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:WikidataIdentifiers/doc&amp;action=history"/>
	<updated>2026-04-10T19:25:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:WikidataIdentifiers/doc&amp;diff=3775&amp;oldid=prev</id>
		<title>Wikipedia&gt;Pppery: Bump rating</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:WikidataIdentifiers/doc&amp;diff=3775&amp;oldid=prev"/>
		<updated>2021-09-25T00:25:27Z</updated>

		<summary type="html">&lt;p&gt;Bump rating&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating |protected}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Functions for use in retrieving Wikidata for use in templates that deal with identifiers&lt;br /&gt;
* getIdentifierQualifier returns the value of a qualifier for an Identifier&lt;br /&gt;
&lt;br /&gt;
== Functions ==&lt;br /&gt;
=== getIdentifierQualifier ===&lt;br /&gt;
This returns the value of a qualifier for an identifier such as {{Q|P1367}}.&lt;br /&gt;
&lt;br /&gt;
There is an assumption is that one value exists for the property, and only one qualifier exists for that value.&lt;br /&gt;
&lt;br /&gt;
Constraint violations for {{Q|P1367}} are at [[d:Wikidata:Databasereports/Constraintviolations/P1367 #Single_value]]&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Normally use like this within a template for use in the article concerned:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:WikidataIdentifiers |getIdentifierQualifier |&amp;lt;property&amp;gt; |qual=&amp;lt;qualifier&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If used outside of the related article, an expensive version of the call is available:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:WikidataIdentifiers |getIdentifierQualifier |&amp;lt;property&amp;gt; |qual=&amp;lt;qualifier&amp;gt; |qid=&amp;lt;Q-value for target in Wikidata}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
Retrieving the {{Q|P1114}} qualifier for the {{Q|P1367}} within an article:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Retrieving the {{Q|P1114}} qualifier for the {{Q|P1367}} for {{Q|Q5083334}} outside of the article:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114 |qid=Q5083334}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114 |qid=Q5083334}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Modules using data from Wikidata]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Pppery</name></author>
	</entry>
</feed>