Module talk:documentation

From Wiktionary, the free dictionary
Latest comment: 2 years ago by Erutuon in topic Duplicated functionality
Jump to navigation Jump to search

Duplicated functionality[edit]

@Erutuon Hi. How come we have both Module:documentation and Module:module categorization? It seems really ugly to have two modules doing similar things. Benwing2 (talk) 03:32, 27 July 2021 (UTC)Reply

@Benwing2: Well, I probably didn't understand Module:documentation enough at the time, and thought it would be odd to make that the home of a module categorization function. We could merge Module:module categorization into this, but we would still need {{module cat}} because this module doesn't automatically categorize when the documentation page exists. Or perhaps we could remove the need for {{module cat}} by making this module always automatically categorize, but there might be a few pages in the wrong categories because the automatic categorization was designed under the assumption that it doesn't run on modules with documentation pages. It could be tested by gathering all module documentation pages, expanding the contents of MediaWiki:Scribunto-doc-page-show with the ExpandTemplates API with the title set to their corresponding module page using the old and new versions of Module:documentation, and checking for any undesired new categories. — Eru·tuon 05:18, 27 July 2021 (UTC)Reply
@Erutuon I think the right thing to do is keep {{module cat}} and require that modules with documentation place it at the bottom of the page to get automatic categorization, but merge Module:module categorization into this module. That way, module documentation pages can override the default automatic categorization but can still request it easily. Benwing2 (talk) 06:06, 27 July 2021 (UTC)Reply
@Benwing2: Yeah, that would be fine by me. I'm not set in my old opinions. — Eru·tuon 19:23, 27 July 2021 (UTC)Reply