Difference between revisions of "Template:Brochure"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
{{DISPLAYTITLE:{{#invoke:Wikidata label |getLabel |item={{{Q-nummer|}}} |lang={{{Taal|}}} |link=- }}}} | {{DISPLAYTITLE:{{#invoke:Wikidata label |getLabel |item={{{Q-nummer|}}} |lang={{{Taal|}}} |link=- }}}} | ||
{{#sparql: | {{#sparql: | ||
− | PREFIX wd: <http:// | + | PREFIX wd: <http://public-wikibase-statbel-wikibase/entity/> |
− | PREFIX wdt: <http:// | + | PREFIX wdt: <http://public-wikibase-statbel-wikibase/prop/direct/> |
− | SELECT ?DatasetLabel ?TaalLabel ?JaarLabel ?NummerLabel ?GrootteLabel ?Link ? | + | SELECT ?DatasetLabel ?TaalLabel ?JaarLabel ?NummerLabel ?GrootteLabel ?Link ?OpmLabel |
WHERE | WHERE | ||
{ | { | ||
Line 25: | Line 25: | ||
?Dataset wdt:P311 ?Nummer . | ?Dataset wdt:P311 ?Nummer . | ||
?Dataset wdt:P305 ?Dist . | ?Dataset wdt:P305 ?Dist . | ||
− | OPTIONAL {?Dataset wdt: | + | OPTIONAL {?Dataset wdt:P326 ?Opm . |
+ | filter (langmatches(lang(?Opm), "{{{Taal|}}}")) . | ||
+ | } | ||
OPTIONAL {?Dist wdt:P310 ?LinkNL . } | OPTIONAL {?Dist wdt:P310 ?LinkNL . } | ||
BIND(STRLEN(str(?LinkNL)) as ?Iets) . | BIND(STRLEN(str(?LinkNL)) as ?Iets) . | ||
BIND( SUBSTR(str( ?LinkNL), 1,?Iets-4 ) as ?IetsAnders) . | BIND( SUBSTR(str( ?LinkNL), 1,?Iets-4 ) as ?IetsAnders) . | ||
− | BIND( CONCAT( "<a target=", '"', "_blank ",'"', "href=",'"',?IetsAnders,".pdf",'"',"> | + | BIND( CONCAT( "<a target=", '"', "_blank ",'"', "href=",'"',?IetsAnders,".pdf",'"',">Link</a>" ) as ?Samen) . |
BIND(IRI(REPLACE(?Samen, '^(.+)$', ?Samen)) AS ?Link) . | BIND(IRI(REPLACE(?Samen, '^(.+)$', ?Samen)) AS ?Link) . | ||
?Dist wdt:P308 ?Code . | ?Dist wdt:P308 ?Code . | ||
Line 37: | Line 39: | ||
} | } | ||
ORDER BY ASC(?JaarLabel) ASC(?Nummer) | ORDER BY ASC(?JaarLabel) ASC(?Nummer) | ||
− | | endpoint = https://wdqs- | + | | endpoint = https://wdqs-public-wikibase-statbel.aks-prod.internal.economie.fgov.be/proxy/wdqs/bigdata/namespace/wdq/sparql |log=2 |headers={{#invoke:Wikidata label |getLabel |item=Q4130 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q6151 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q5934 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9487 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q9335 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q21725 |lang={{{Taal|}}} |link=- }},{{#invoke:Wikidata label |getLabel |item=Q2263 |lang={{{Taal|}}} |link=- }}}} |
+ | |||
+ | {{LogoEconomie}} | ||
[[Category:{{#invoke:Wikidata3|formatStatementsE|item={{{Q-nummer|}}}|property=p205|lang={{{Taal|}}}}}]] | [[Category:{{#invoke:Wikidata3|formatStatementsE|item={{{Q-nummer|}}}|property=p205|lang={{{Taal|}}}}}]] | ||
</includeonly> | </includeonly> |
Latest revision as of 13:50, 17 June 2024
Dit is het "Brochure" sjabloon.
Het moet in het volgende formaat opgeroepen worden:
{{Brochure |Q-nummer= |Taal= }}
Edit the page to see the template text.