Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:WikidataIdentifiers/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Module rating |protected}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> 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 == === getIdentifierQualifier === This returns the value of a qualifier for an identifier such as {{Q|P1367}}. There is an assumption is that one value exists for the property, and only one qualifier exists for that value. Constraint violations for {{Q|P1367}} are at [[d:Wikidata:Databasereports/Constraintviolations/P1367 #Single_value]] == Usage == Normally use like this within a template for use in the article concerned: * <code><nowiki>{{#invoke:WikidataIdentifiers |getIdentifierQualifier |<property> |qual=<qualifier>}}</nowiki></code> If used outside of the related article, an expensive version of the call is available: * <code><nowiki>{{#invoke:WikidataIdentifiers |getIdentifierQualifier |<property> |qual=<qualifier> |qid=<Q-value for target in Wikidata}}</nowiki></code> === Examples === Retrieving the {{Q|P1114}} qualifier for the {{Q|P1367}} within an article: * <code><nowiki>{{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114}}</nowiki></code> Retrieving the {{Q|P1114}} qualifier for the {{Q|P1367}} for {{Q|Q5083334}} outside of the article: * <code><nowiki>{{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114 |qid=Q5083334}}</nowiki></code> β {{#invoke:WikidataIdentifiers |getIdentifierQualifier |P1367 |qual=P1114 |qid=Q5083334}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Modules using data from Wikidata]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Stockhub entities used in this page
quantity
: Label: en-gb, Miscellaneous (e.g. aliases, entity existence)
Art UK artist identifier
: Label: en-gb, Miscellaneous (e.g. aliases, entity existence)
Q5083334
: Statement: P1367, Label: en-gb, Miscellaneous (e.g. aliases, entity existence)
Templates used on this page:
Template:Module rating
(
edit
)
Template:Q
(
edit
)
Module:Wd
(
edit
)
Module:Wd/i18n
(
edit
)
Module:WikidataIdentifiers
(
edit
)