Module talk:InfoboxImage/Archive 4
Appearance
| This is an archive of past discussions about Module:InfoboxImage. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
| Archive 1 | Archive 2 | Archive 3 | Archive 4 |
Tracking category for URLs in image field
Discussion: Template_talk:Infobox#URLs_in_image_field
There are probably thousands of URLs in the |image= field. Would it be possible to add a tracking category? They should be removed on a regular basis and tracking them would be a big help. -- GreenC 20:49, 19 July 2024 (UTC)
- Just need to update lines 146, 149, 152, 155, 158 & 161 to return a category. What do you want to call the category? -- WOSlinker (talk) 21:33, 19 July 2024 (UTC)
- Does infobox emit tracking categories anywhere else? Following CS1|2 naming, Category:CS1_errors:_archive-url, it might be Category:Infobox_errors:_image a holding cell for all errors related to this module. -- GreenC 23:31, 19 July 2024 (UTC)
- It only emits Category:Pages using infoboxes with thumbnail images at the moment. -- WOSlinker (talk) 06:19, 20 July 2024 (UTC)
- That's a standard error category format. I would suggest Category:Pages using infoboxes with URL in image field. — hike395 (talk) 12:03, 20 July 2024 (UTC)
- Let's use the word "parameter" instead of "field", since that is the term here on Wikipedia, or just leave off the last word entirely: "Pages using infoboxes with URL in image". – Jonesey95 (talk) 13:52, 20 July 2024 (UTC)
- That's a standard error category format. I would suggest Category:Pages using infoboxes with URL in image field. — hike395 (talk) 12:03, 20 July 2024 (UTC)
- It only emits Category:Pages using infoboxes with thumbnail images at the moment. -- WOSlinker (talk) 06:19, 20 July 2024 (UTC)
- Does infobox emit tracking categories anywhere else? Following CS1|2 naming, Category:CS1_errors:_archive-url, it might be Category:Infobox_errors:_image a holding cell for all errors related to this module. -- GreenC 23:31, 19 July 2024 (UTC)
- Done: Special:Diff/1186186161/1236046032 for Category:Pages using infoboxes with URL in image parameter - I included "parameter" or it could be ambiguous, such as a URL displayed in the image, which might be a concern due to spam. -- GreenC 16:02, 22 July 2024 (UTC)
- There are currently around 1.1k pages in the category. A bot can easily remove the usages. I wonder if a bot could also upload the image from the file and set it (if we want to use those images). Checking each page individually, seems tedious for something that no one cared to fix until now. Gonnym (talk) 13:34, 7 August 2024 (UTC)
- Uploading images (automatically) is impossible due to copyright and descriptive issues. Simply deleting any URL found in the field is the correct action. The deletion is easy, the harder aspect is what the parameter names are to target. There are so many variations. -- GreenC 14:17, 7 August 2024 (UTC)
- If it's a good-faith, but malformed, attempt to bring in an existing image hosted on Commons or English Wikipedia, such as or
|image=https://en.wikipedia.org/wiki/File:Example.jpgI think we should not delete the link outright, but fix it up as in|image=https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpgwith preview before save to ensure that it's a suitable image for the context. --Redrose64 🌹 (talk) 20:52, 7 August 2024 (UTC)|image=Example.jpg
- Yeah good point could check. Do you know a way to determine what template parameter names the module is used in? We know of
|image=, there are probably dozens of others. Need to know for parsing. -- GreenC 21:49, 7 August 2024 (UTC)- There are about 1,000 pages in the category right now. I expect that if you scanned for
|image=and|logo=, you would get 90% of them, and then we could see what other parameters are being used. – Jonesey95 (talk) 22:23, 7 August 2024 (UTC)
- There are about 1,000 pages in the category right now. I expect that if you scanned for
- Yeah good point could check. Do you know a way to determine what template parameter names the module is used in? We know of
- If it's a good-faith, but malformed, attempt to bring in an existing image hosted on Commons or English Wikipedia, such as
- Uploading images (automatically) is impossible due to copyright and descriptive issues. Simply deleting any URL found in the field is the correct action. The deletion is easy, the harder aspect is what the parameter names are to target. There are so many variations. -- GreenC 14:17, 7 August 2024 (UTC)
- There are currently around 1.1k pages in the category. A bot can easily remove the usages. I wonder if a bot could also upload the image from the file and set it (if we want to use those images). Checking each page individually, seems tedious for something that no one cared to fix until now. Gonnym (talk) 13:34, 7 August 2024 (UTC)
- We should remove a couple namespaces from the tracking category: User:, User talk:, and Talk: .. these can have legitimate use cases, as a temporary scratch/working space. I would do so as in here Special:Diff/1236998268/1237154439 but I don't know the correct text string for these namespaces. Anyone know? @Hike395, Gonnym, and WOSlinker: -- GreenC 15:56, 8 August 2024 (UTC)
- Probably the names used here. I'm not sure about the impact changing this would have for other tracking if they want it or not. As an aside, it seems its still better to comment out usages in those namespaces as the URL link won't ever work anyways. Commenting it out makes it clear that such a thing isn't working. Gonnym (talk) 16:36, 8 August 2024 (UTC)
- Given the minimal population of non-mainspace pages in the category, I would just wrap the categorization in {{main other}} and not worry about User and Talk and other pages. I don't know how to do that in a module though. – Jonesey95 (talk) 17:17, 8 August 2024 (UTC)
- Probably the names used here. I'm not sure about the impact changing this would have for other tracking if they want it or not. As an aside, it seems its still better to comment out usages in those namespaces as the URL link won't ever work anyways. Commenting it out makes it clear that such a thing isn't working. Gonnym (talk) 16:36, 8 August 2024 (UTC)
- I don't see any edits made to the module, but pages with the issue are disappearing from the category. See Renato Valente. Gonnym (talk) 18:05, 8 August 2024 (UTC)
- The category is empty: Category:Pages using infoboxes with URL in image parameter. I certainly fixed a lot/most, but some should still be there eg. Renato Valente or User talk:Sundaycomedian/sandbox. Something weird. -- GreenC 18:36, 8 August 2024 (UTC)
- The issue was a bug with the boolean check. WOSlinker fixed it before I got to it. Gonnym (talk) 19:22, 8 August 2024 (UTC)
- Ah ok cool. I processed what was remaining in the tracking category,
it should be cleared out. Ahh, it's filling up with new pages.-- GreenC 19:26, 8 August 2024 (UTC)
- Ah ok cool. I processed what was remaining in the tracking category,
- The issue was a bug with the boolean check. WOSlinker fixed it before I got to it. Gonnym (talk) 19:22, 8 August 2024 (UTC)
- The category is empty: Category:Pages using infoboxes with URL in image parameter. I certainly fixed a lot/most, but some should still be there eg. Renato Valente or User talk:Sundaycomedian/sandbox. Something weird. -- GreenC 18:36, 8 August 2024 (UTC)
Add |style for customising CSS style of the image
Useful for dark mode compatibility. It would allow setting |class=notheme |style=background-color: #f8f9fa; to add a white background to a image. Template:Infobox provides |imageclass= |imagestyle= but it also changes the class and style of the caption, which is not desired.
Example with ISBN:
Example 13-digit ISBN | |
| Initialism | ISBN |
|---|---|
| Organisation | International ISBN Agency |
| Introduced | 1970 |
| No. of digits | 13 (formerly 10) |
| Check digit | Weighted sum |
| Example | ISBN 978-3-16-148410-0 |
| Website | isbn-international |
Example 13-digit ISBN | |
| Initialism | ISBN |
|---|---|
| Organisation | International ISBN Agency |
| Introduced | 1970 |
| No. of digits | 13 (formerly 10) |
| Check digit | Weighted sum |
| Example | ISBN 978-3-16-148410-0 |
| Website | isbn-international |
Susko3 (talk) 00:48, 26 November 2024 (UTC)
- @Susko3: Why are you prototyping this here, and not at the appropriate sandbox and testcases pages? --Redrose64 🌹 (talk) 07:51, 26 November 2024 (UTC)
- Also, style is not listed as an image parameter at Wikipedia:Extended image syntax. -- WOSlinker (talk) 08:10, 26 November 2024 (UTC)