Template:SPARQL: Difference between revisions

From DREAMS
Jump to navigation Jump to search
No edit summary
(Replaced content with "<onlyinclude><pre> {{query}} </pre> </onlyinclude> <noinclude> {{Documentation}} </noinclude>")
Tag: Replaced
Line 1: Line 1:
<onlyinclude><!--
<onlyinclude><pre>
 
{{query}}
--><!--
</pre>
 
</onlyinclude>
--><div class="wdt-sparql-container {{#if:{{{state|}}}|wdt-sparql-container-collapsible}}"><!--
 
    --><div {{#switch: {{{state|}}} | collapsed = class="mw-collapsible mw-collapsed" | expanded = class="mw-collapsible" }} ><!--
        -->{{#tag:syntaxhighlight|{{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"}}<!--
    --></div><!--
    # the link URL
    -->[{{#switch:{{{project|wd}}}|wd=//query.wikidata.org/|sdc=//commons-query.wikimedia.org/}}{{#ifeq: {{{embedded|}}} | yes |embed.html | }}#{{urlencode: {{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }} | PATH }} <!--
   
    # the link label
    {{{label|{{#if: {{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{int try it}}}}}}}]
   
    # add the short url, if any
    -->{{#if: {{{shortURL|}}} | (<nowiki />https://w.wiki/{{{shortURL}}}<nowiki />) }}<!--
 
# close outer div
--></div></onlyinclude>
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 14:08, 16 March 2022