Template talk:Item classification

From Wikidata
Jump to navigation Jump to search

Lua errors[edit]

This template causes Lua errors at: Talk:Q3848738, Talk:Q134688, Talk:Q151885, Talk:Q20477577, Talk:Q7810129 and Talk:Q84149. Can some familiar with the template fix them? --Jarekt (talk) 14:39, 19 November 2018 (UTC)[reply]

<Label> on…[edit]

Are “less” and “greater” signs (U+003C, U+003E resp.) parts of certain standardized or otherwise usable syntax in this context? If they are not, then let’s use angle brackets instead. ASCII substitution for angle brackets is ugly and misleadingly suggests markup tags. Incnis Mrsi (talk) 17:00, 26 January 2020 (UTC)[reply]

✓ Done Removing the link to Miga[edit]

If Miga only works with Google Chrome I find it weird to link to this tool in a generic template. Templates should in my opinion be neutral to user's software stack.

What about suppressing the link to this external tool? PAC2 (talk) 11:50, 18 April 2021 (UTC)[reply]

PAC2 Benoît Prieur John Samuel (talk) Jheald (talk) Lectrician1 Patsagorn Y. push-f

Notified participants of WikiProject Templates PAC2 (talk) 11:51, 18 April 2021 (UTC)[reply]

The link to miga does not work anymore, even with Chrome. I propose to remove it. I've changed the version in sandbox here. If no one disagree I'll changeiit in the main version in a few days.PAC2 (talk) 06:01, 21 April 2021 (UTC)[reply]

✓ Done Adding more generic queries[edit]

In the sandbox, I have coded more generic queries for classes. You can see the result Template:Item classification/testcases.

It adds :

  • a query to count the total number of subclasses
  • a query to count the number of instances
  • a query to count the number of instances by class
  • a query to get the list of the first 1,000 instances
  • a query to get the list of the most frequent properties for items of this class.

I think all of them are useful. If no one opposes this, I will merge it in the main page in a few days (at least 5 days).

If you want to improve my code, you're welcome. PAC2 (talk) 14:01, 25 April 2021 (UTC)[reply]

New style[edit]

I'm not a big fan of the light grey background. In the sandbox, I propose a new style with white background and a small shadow around the box. You can check the result here : Template:Item classification/testcases.

Does anyone disagree with this aesthetic change? PAC2 (talk) 05:17, 29 April 2021 (UTC)[reply]

New generic query[edit]

I propose to add a new generic query "Properties suggested for this class" : see the diff and Template:Item classification/testcases. I've discovered this query here. I know it is already included in {{PropertyForThisType}} but I think it's useful to add it in item classification. It would make it available directly in item's talk page header through {{Item documentation}}. What do you think? cc TomT0m. PAC2 (talk) 20:00, 10 July 2022 (UTC)[reply]

Show IDs[edit]

It's very frustrating (at least to me) that the superclass hierarchy displayed by this template uses a different format that {{Q}} (i.e. Universe (Q1)). Specifically, the format lacks copyable Q numbers. I've implemented this (it's quite simple) here (in the sandbox). Now we just need consensus to apply it. I've also opened a discussion at Wikidata:Project_chat/Archive/2022/08 (sadly, the direct link seems to be broken) JesseW (talk) 13:07, 1 August 2022 (UTC)[reply]

After no objections (and one support) from the Project Chat discussion, I'm going to make this change. Feel free to revert if you object, and we can discuss it. JesseW (talk) 20:14, 4 August 2022 (UTC)[reply]

Splitting the template into two templates[edit]

Following this comment Template_talk:Item_documentation#Class_information, I think it would be useful to split this templates into two different templates:

  • the first one would keep the class related visualisation
  • the second one would only include the generic queries: {{Generic queries for classes}}

Does anyone agree ? PAC2 (talk) 20:31, 9 April 2023 (UTC)[reply]

That seems like an improvement I'd be glad to see, too. JesseW (talk) 22:58, 11 April 2023 (UTC)[reply]