Hi, I got a notification of the deletion of {{Q|127514921}} with the mention "Empty item: content was: "Template:European political organisation"". I am surprised, because I created this template (to supplement {{Q|10707879}}, which focused on registered European political parties, while the other one contained entities not registered at the EU level). Do you know why this was marked as empty? Last I checked it contained six entities. Thanks!
Topic on User talk:MisterSynergy
Jump to navigation
Jump to search
A template item needs at least one sitelink to a page in template namespace in any Wikimedia project. This one never had any sitelinks, and is thus considered empty. If you just forgot to add these sitelinks, please let me know and we restore the item.
Hi, thanks for the quick reply. I am rather new and was not aware of this. I can take care of this if you restore the page!
It is restored. Please work on it, in order to avoid that it is being deleted again.
Thanks a lot. Quick question before we wrap this up: the most relevant template is [https://en.wikipedia.org/wiki/Template:Political_organisations_at_European_Union_level this one]. However, it refers both to entities that are registered as European parties and entities that are not registered. As a result, it is already used by Q10707879, which leads me to an error when I try to add it to the template you just restored. Indeed, both template refer to quite similar entities -- some registered, some not -- that it kind of makes sense to add on a common template on Wikipedia. Any recommendation?
Any idea?
You cannot add a given Wikipedia page (here: that enwiki template) to more than one Wikidata item page as a sitelink.
Usually, we use template items as in this case for sitelinks only, with rather limited data that at best helps to organize these items internally. Actual data should not be organized inside template items. Could you maybe look into other ways to represent this information in Wikidata, specifically distributed over the items listed on the template item we initially looked at?
Thanks. I actually think you are right. I came across the other template and figured I could use it to quickly have a list of specific pages, but that doesn't seem to be the proper use of templates. What it a better way to quickly have a list of specific items? I guess a SPARQL query could work. Maybe by adding the specific elements (say European parties) under "has instances" on the page of the page of the item "European political party"? Is that an ok way to do this?
Yes, roughly like this. I have no domain knowledge here, thus I am not aware which property to use and which values. If all parties are properly tagged, you can create a list with SPARQL, and even write it to the Wiki using ListeriaBot. I could assist with the SPARQL query once the statements have been added to the items in question.
Hey, would this be it?
# list of European parties
SELECT ?item ?itemLabel
WHERE {
?item wdt:P31 wd:Q24649 . #the item is a European party
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb". }
}
ORDER BY ?itemLabel
Hey, any suggestions to retain an easy-ish way to access all elements of a given category?