Template:Description/sandbox: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
Content deleted Content added
Yurik (talk | contribs)
updated from main
Jeisenbe (talk | contribs)
Remove "wikidata" section per discussion on Talk list and Talk page at ValueDescription as well as Description template Talk page.
Line 234: Line 234:
{{!}}
{{!}}
{{{seeAlso}}}
{{{seeAlso}}}
}}<!--

# Top-level Wikidata identifier (Qnnnn) for instances of this feature
-->{{#if: {{{wikidata|}}}{{{key|}}}
| <nowiki />
{{!}}-class="d_wikidata header" style="text-align:{{#switch:{{{rtl|{{Dir|{{{lang|}}}}}}}}|rtl|yes=right|#default=left}}"
! {{DescriptionLang|Wikidata|{{{lang|}}}}}
{{!}}-class="d_wikidata content"
{{!}}class="plainlinks"{{!}}{{#if: {{{wikidata|}}}
| [https://www.wikidata.org/wiki/{{{wikidata|}}} {{{wikidata|}}}]
| [https://query.wikidata.org/#{{URLENCODE:SELECT ?item ?itemLabel ?tag WHERE {
?item wdt:P1282 ?tag .
FILTER(?tag='''{{#if:{{{value|}}}
| Tag:{{#replace:{{{key|}}}|'''|''\'}}={{#replace:{{{value|}}}|'''|''\'}}
| Key:{{#replace:{{{key|}}}|'''|''\'}}
}}''')
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en"
}
} LIMIT 200|path}} {{DescriptionLang|Search Wikidata|{{{lang|}}}}}]
}}
}}<!--
}}<!--



Revision as of 21:46, 4 May 2020

Status: : unsupported “unspecified” status