Tɛmplet:Wikidata list/doc: Waligimsim din be labiteei balibu ni.

Lahabali din nyahi Lahabali din pahi
No edit summary
SPARQL
Kuligu 5:
This template defines a bot-generated list based on Wikidata ([http://magnusmanske.de/wordpress/?p=301 original blog post]). It must be "closed" with {{tl|Wikidata list end}}; the text between these two templates will be periodically (once every 24h) replaced by the bot-generated list. At this moment, only one list per page is possible. Example:
<nowiki>{{</nowiki>'''{{BASEPAGENAME}}'''
|'''sparql'''=SELECT ?item WHERE { ?item wdt:P31 wd:Q39715 . ?item wdt:P131 ?sub0 . ?sub0 (wdt:P131)* wd:Q55 }
|'''wdq'''=claim[31:39715] and claim[131:(tree[55][][131])]
|'''section'''=131
Line 16 ⟶ 17:
 
Parameters:
;wdqsparql:A [https://wdq.wmflabs.orgSPARQL WikiDataQuery]''SELECT'' query string. TheNeeds resultingto itemsreturn will<code>?item</code> be usedas tothe build theitem listnumber. TryYou yourcan queryuse outa [https://tools.wmflabs.org/autolistwdq2sparql/w2s.php hereconversion tool] to convert WDQ to SPARQL, but always [https://query.wikidata.org/ check your query] to make sure it works. '''Mandatory''', unless WDQ is used.
;wdq:A [https://wdq.wmflabs.org WikiDataQuery] query string. The resulting items will be used to build the list. Try your query out [https://tools.wmflabs.org/autolist/ here]. '''Mandatory''', unless SPARQL is used.
;columns:Defines the columns of the list table. Allowed values are :
:* <code>number</code>, a serial row number (per section), increasing from 1, according to the initial sorting