Module talk:Check for clobbered parameters
Appearance
| This module does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
Preview warning and hatnotes moving to templatestyles
[edit]Page watchers may be interested in MediaWiki talk:Common.css § Preview warning and hatnotes moving to TemplateStyles Izno (talk) 00:22, 29 April 2021 (UTC)
Preview?
[edit]Any chance of adding a {{{preview}}} option, in the same way as Module:Check for unknown parameters. Alternatively, add a link to the template being checked to the error message shown in preview mode. See the use made for preview in the {{Infobox website}} template — GhostInTheMachine talk to me 14:12, 23 October 2023 (UTC)
Rename
[edit]Given that the categories and error messages all describe "conflicting" parameters, does it make sense to rename this module Module:Check for conflicting parameters? Zackmann (Talk to me/What I been doing) 19:38, 15 December 2025 (UTC)
- clobber has a very specific meaning that kinda fits this module, but even the module's documentation created by the original module's author has called it "conflicting parameters" since the beginning. The tracking category tree is under Category:Conflicting parameters with most of it under Category:Infoboxes with conflicting parameters (115).
- So we have:
- Module:Check for unknown parameters and Category:Unknown parameters – consistent.
- Module:Check for deprecated parameters and Category:Deprecated parameters. A subcategory Anime and manga articles using obsolete and incorrect infobox parameters calls them "obsolete", but otherwise the used terminology is fairly consistent.
- Module:Check for clobbered parameters + Category:Conflicting parameters
- Based on this, I support renaming to Module:Check for conflicting parameters.
- Side note: we also have Category:Articles using duplicate arguments in template calls and Category:Pages using duplicate arguments in template calls. Both are defined by MediaWiki:Duplicate-args-category, but they are for exact duplicates, not for the stuff this module checks like
{{{founders|(example 1 in /doc). —andrybak (talk) 20:33, 15 December 2025 (UTC){{{founder|}}}}}}- To be clear, I totally understand why it was called clobbered initially. I just think it would be helpful to keep consistent. Can the Module namespace support redirects? I've never tried that before... If you
{{#invoke:check for clobbered parameters|check}}after a move is decided upon, would that still work or will we have to change every call to this? Zackmann (Talk to me/What I been doing) 20:44, 15 December 2025 (UTC)- MediaWiki automatically creates Module redirects, and they work as you'd expect. Example: Module:Location map/data/Dili. —andrybak (talk) 21:02, 15 December 2025 (UTC)
- Stellar! Thanks. Zackmann (Talk to me/What I been doing) 21:52, 15 December 2025 (UTC)
- MediaWiki automatically creates Module redirects, and they work as you'd expect. Example: Module:Location map/data/Dili. —andrybak (talk) 21:02, 15 December 2025 (UTC)
- Rename but also make sure to replace the redirect. This module, unlike Check for unknown parameters, should be temporarily until the parameters can be replaced. It would be good to go over every usage and see if the job was completed and remove the module or update the link. Category:Infoboxes with conflicting parameters has too many empty categories. Gonnym (talk) 09:55, 17 December 2025 (UTC)
- I don't think such parameters are meant to be removed from the wikitext of the templates. As far as I understand, these are regular maintenance categories, not aids in template refactoring. E.g. if someone adds
|founder=by accident to a transclusion of a template not realizing that|founders=is already present. The corresponding categories are meant to be empty most of the time. In the particular example (Module:Check for clobbered parameters#Example 1), the two different parameters have slightly different effect: the plural parameter turns the label in the infobox into plural, which avoids having unsightly "Founder(s)" as the label. - Or am I misunderstanding something? —andrybak (talk) 12:54, 17 December 2025 (UTC)
- I don't think such parameters are meant to be removed from the wikitext of the templates. As far as I understand, these are regular maintenance categories, not aids in template refactoring. E.g. if someone adds
- To be clear, I totally understand why it was called clobbered initially. I just think it would be helpful to keep consistent. Can the Module namespace support redirects? I've never tried that before... If you