A bug in this template[edit]

At the bottom of the article titled Chlorine dioxide under "External links", the first time says "Media related to Chlorine dioxide at Wikimedia Commons". The capitalization of the initial "C" in "chlorine" appears to be inconsistent with the conventions of WP:MOS, so I clicked on "edit" and found this: ((Commonscatinline)) I had not seen this template before. Can and should this template be edited to fix this? Michael Hardy (talk) 04:56, 1 February 2022 (UTC)Reply[reply]

It's not a bug: it's an inherent ambiguity of the article title. The Lua code cannot know whether the article title is a proper noun or not, so it simply uses the capitalized form. This has been true for many years. For any article where the title is not a proper noun and shouldn't be capitalized, you can supply a second parameter to the template to display the correct form. set |lcfirst=1. I've fixed Chlorine dioxide. — hike395 (talk) 09:01, 1 February 2022 (UTC)Reply[reply]

I might've encountered the same thing editing at Violet Keene. When using |1= and explicitly beginning with a lowercase character, the template apparently triggers Pi bot (talk · contribs) to think there's no matching category. Can a fix be implememted to unconfuse lowercase capitalization of the variable in |1=? — Fourthords | =Λ= | 14:46, 23 May 2022 (UTC)Reply[reply]

It triggered Pi bot because the category is not "Category:photographs by Violet Keene", it's "Category:Photographs by Violet Keene". I changed the page to use ((Commons category-inline|Photographs by Violet Keene|photographs by Violet Keene)), which I think is what you were looking for? —Joeyconnick (talk) 19:59, 27 May 2022 (UTC)Reply[reply]
I think so, essentially. I just don't understand why ((Commons category-inline|photographs by Violet Keene)) is a problem when (I thought) MediaWiki was capitalization-agnostic. Thank you very much for the assist, regardless! — Fourthords | =Λ= | 21:59, 27 May 2022 (UTC)Reply[reply]

((Wikisourcecat inline))[edit]

FYI Template:Wikisourcecat inline (edit | talk | history | links | watch | logs) has been nominated for deletion. It appears to also be a commons category inline link template -- 65.92.246.142 (talk) 05:21, 12 March 2022 (UTC)Reply[reply]

only contains Commons category-inline in external links, delete?[edit]

i come across external links which contain only this template. i assumed this template was created to mingle with other links in external links section instead of seperate box (commons category template). is it reasonable to delete external links section with Commons category-inline template and update template commons category in other section?<_>jindam, vani (talk) 16:57, 18 January 2023 (UTC)Reply[reply]

Please don't do that. The usage you are referring to is explicitly encouraged in the Manual of Style:
If box-type templates are not good, either because they result in a long sequence of right-aligned boxes hanging off the bottom of the article, or because there are no external links except sister project ones, then consider using "inline" templates, such as ((Commons category-inline)) in the "External links" section, so that links to sister projects appear as list items
hike395 (talk) 03:43, 19 January 2023 (UTC)Reply[reply]
User:Hike395 henceforth, i will not remove or edit. <_>jindam, vani (talk) 05:34, 19 January 2023 (UTC)Reply[reply]

"Inconsistent wikidata for Commons category"[edit]

This template places some pages into Category:Inconsistent wikidata for Commons category, while ((Commons category)) with the same arguments does not. Compare cc and cci. jlwoodwa (talk) 22:29, 18 December 2023 (UTC)Reply[reply]

This category uses a Lua implementation of error checking at Module:Commons link that may be slightly stricter than the template implementation at ((Commons category)). I'll investigate and tell you what I find. — hike395 (talk) 01:31, 19 December 2023 (UTC)Reply[reply]
Here's the deal. ((Commons category)) uses Module:WikidataIB to look up wikidata entries. It looks sequentially at a number of properties in the associated Wikidata page, stopping when it finds one. ((Commons category-inline)) uses Module:Commons link, which doesn't stop at the first working property, but looks at all of them. If there is any inconsistency between them, it gives up and flags a warning message.
Wikimedian of the Year has an associated Wikidata entry d:Q17525053. That data entry is inconsistent. The Commons sitelink is c:Category:Wikimedian of the Year, but the "Commons Category" properties is c:Category:Wikipedian of the Year (the latter is the parent category of the former). This warning is easily fixed by cleaning up Wikidata, which I can do. But I wanted to explain where the warning message came from. — hike395 (talk) 01:49, 19 December 2023 (UTC)Reply[reply]