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:Sandbox/Thayts/Wd/doc
(section)
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!
=== Claim class === The claim class commands can be combined, meaning that multiple commands of different types from this class can be given at one time ([[#Usage|see above for usage]]). Combine multiple commands into one call to this {{lcfirst:{{NAMESPACE}}}}, instead of making multiple calls to this {{lcfirst:{{NAMESPACE}}}} with one command each, to be sure that all the returned pieces of information belong to each other ([[#Examples|see also the examples below]]). {| class="wikitable" |- ! Type ! Command ! Returns ! Basic usage ! Description |- | rowspan="2" style="text-align:right;" | I ! style="text-align:left;" | <code>property</code> | <small>first match{{efn|Returns only a single value instead of multiple (if multiple claims or statements match). The returned value is the first match found from the best-ranked claims.|name=fmc}}</small> | {{nowrap|<code><nowiki>{{</nowiki>{{#ifeq:{{NAMESPACENUMBER}}|828|{{hash}}invoke:}}{{#titleparts:{{PAGENAME}}|3}}<nowiki>|property|P1</nowiki>{{#if:{{{fetch|}}}|<nowiki>|fetch=</nowiki>{{{fetch}}}}}<nowiki>}}</nowiki></code>}} | rowspan="2" | Returns the requested property β or list of properties β from the current item-entity or from a given entity. This command can be given only once in one call. |- ! style="text-align:left;" | <code>properties</code> | <small>all matches</small> | {{nowrap|<code><nowiki>{{</nowiki>{{#ifeq:{{NAMESPACENUMBER}}|828|{{hash}}invoke:}}{{#titleparts:{{PAGENAME}}|3}}<nowiki>|properties|P1</nowiki>{{#if:{{{fetch|}}}|<nowiki>|fetch=</nowiki>{{{fetch}}}}}<nowiki>}}</nowiki></code>}} |- | colspan="5" | |- | rowspan="2" style="text-align:right;" | II ! style="text-align:left;" | <code>qualifier</code> | <small>first match{{efn|name=fmc}}</small> | {{nowrap|<code><nowiki>{{</nowiki>{{#ifeq:{{NAMESPACENUMBER}}|828|{{hash}}invoke:}}{{#titleparts:{{PAGENAME}}|3}}<nowiki>|qualifier|P1|P2</nowiki>{{#if:{{{fetch|}}}|<nowiki>|fetch=</nowiki>{{{fetch}}}}}<nowiki>}}</nowiki></code>}} | rowspan="2" | Returns the requested qualifier β or list of qualifiers β from the given property of the current item-entity or of a given entity. Unlike the other claim class commands, this command can be given multiple times to retrieve different qualifiers in one call. |- ! style="text-align:left;" | <code>qualifiers</code> | <small>all matches</small> | {{nowrap|<code><nowiki>{{</nowiki>{{#ifeq:{{NAMESPACENUMBER}}|828|{{hash}}invoke:}}{{#titleparts:{{PAGENAME}}|3}}<nowiki>|qualifiers|P1|P2</nowiki>{{#if:{{{fetch|}}}|<nowiki>|fetch=</nowiki>{{{fetch}}}}}<nowiki>}}</nowiki></code>}} |- | colspan="5" | |- | rowspan="2" style="text-align:right;" | III ! style="text-align:left;" | <code>reference</code> | <small>first match{{efn|name=fmc}}</small> | {{nowrap|<code><nowiki>{{</nowiki>{{#ifeq:{{NAMESPACENUMBER}}|828|{{hash}}invoke:}}{{#titleparts:{{PAGENAME}}|3}}<nowiki>|reference|P1</nowiki>{{#if:{{{fetch|}}}|<nowiki>|fetch=</nowiki>{{{fetch}}}}}<nowiki>}}</nowiki></code>}} | rowspan="2" | Returns a reference β or list of references β from the given property of the current item-entity or of a given entity.{{efn|Only references that are valid according to the [[d:Help:Sources|Wikidata guideline on sources]] are returned (i.e. those that have at least a property {{wpl|P248}} or {{wpl|P854}}).}} This command can be given only once in one call. |- ! style="text-align:left;" | <code>references</code> | <small>all matches</small> | {{nowrap|<code><nowiki>{{</nowiki>{{#ifeq:{{NAMESPACENUMBER}}|828|{{hash}}invoke:}}{{#titleparts:{{PAGENAME}}|3}}<nowiki>|references|P1</nowiki>{{#if:{{{fetch|}}}|<nowiki>|fetch=</nowiki>{{{fetch}}}}}<nowiki>}}</nowiki></code>}} |- | colspan="5" | |- | colspan="5" style="text-align:left;" | {{notelist}} |}
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)