Template:Query/doc
This is a documentation subpage for Template:Query. It contains usage information, categories, and other content that is not part of the original template page. |
Template:Query is deprecated. Please use Template:Wdquery instead. |
Similar to {{WDQ}}
, but optimized for entering the query as a plain text string.
Usage
editParameters
edit- 1 (optional): The query string
- 2 (optional): Link caption
- props (optional): A comma-separated list of property numbers to get the values for
- output (optional): If set to
json
resp.jsonp
, the linked result will be in the JSON resp. JSONP format. Otherwise the AutoList GUI will be used - lang (optional): AutoList GUI language code. Defaults to user's language
examples
edit{{Query|CLAIM[31:5]}}
{{Query|{{WDQ/has value|613|{{WDQ/instances|Q5}}}}}}
Query: CLAIM[613613:CLAIM[31:(TREE[5[][279279])]]]
See also
edit{{WDQ2}}
{{WDQ}}
- Wikidata:SPARQL query service