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:Is instance/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|beta}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == <code><nowiki>{{</nowiki>#invoke:Is instance|''main''<nowiki>|qid=|value=}}</nowiki></code> This module will use Wikidata properties {{Q|P31}} and {{Q|P279}} to determine whether or not an entity is an instance of some other entity. === Example === For example: *{{Q|Q847672}} **is an instance of {{Q|Q1185562}}, which ***is a subclass of {{Q|Q17205}}, which ****is a subclass of {{Q|Q3114762}}, which *****is a subclass of {{Q|Q177597}}, which ******is a subclass of {{Q|Q11446}}. To know that {{Q|Q847672}} is an instance of {{Q|Q11446}}, you can use: <code><nowiki>{{#invoke:Is instance|main|qid=Q847672|value=Q11446}}</nowiki></code> = {{#invoke:Is instance|main|qid=Q847672|value=Q11446}} The output number indicates the minimum recursion depth to find the value required. An output of zero indicates that the item is not an instance. === Maximum depth === For performance considerations, the module will not go on searching indefinitely. The default maximum recursion depth is 5. If you want to change this, use the {{para|maxdepth}} parameter. <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Wikidata modules]] }}</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
subclass of
: Miscellaneous (e.g. aliases, entity existence), Label: en-gb
instance of
: Miscellaneous (e.g. aliases, entity existence), Label: en-gb
ship
: Miscellaneous (e.g. aliases, entity existence), Label: en-gb
light aircraft carrier
: Miscellaneous (e.g. aliases, entity existence), Label: en-gb
Q17205
: Miscellaneous (e.g. aliases, entity existence), Label: en-gb
Q177597
: Miscellaneous (e.g. aliases, entity existence)
Q3114762
: Miscellaneous (e.g. aliases, entity existence)
Q847672
: Statement: P31, Miscellaneous (e.g. aliases, entity existence)
Templates used on this page:
Template:Module rating
(
edit
)
Template:Para
(
edit
)
Template:Q
(
edit
)
Module:Is instance
(
edit
)
Module:Wd
(
edit
)
Module:Wd/i18n
(
edit
)