Template:SPARQL: Difference between revisions
m 1 revision imported: Import templates and modules from Wikidata |
m try |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
--><templatestyles src="SPARQL/styles.css" /><!-- | --><!--<templatestyles src="SPARQL/styles.css" />--><!-- | ||
--><div class="wdt-sparql-container {{#if:{{{state|}}}|wdt-sparql-container-collapsible}}"><!-- | --><div class="wdt-sparql-container {{#if:{{{state|}}}|wdt-sparql-container-collapsible}}"><!-- | ||
| Line 10: | Line 10: | ||
# the link URL | # the link URL | ||
-->[{{#switch:{{{project| | -->[{{#switch:{{{project|wb}}}|wb=//query.echoimages.labs.wikimedia.pt/|wd=//query.wikidata.org/|sdc=//commons-query.wikimedia.org/|{{{project}}}}}{{#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 | # the link label | ||
-->{{{label|{{#if: {{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{int try it}}}}}}}] <!-- | -->{{{label|{{#if: {{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{int try it}}}}}}}] <!-- | ||
<!-- | |||
# add the short url, if any | # add the short url, if any | ||