Template talk:MilAward Desc

Edit request
Hi there! Could this template be changed so it doesn't add user pages and drafts to article categories? For example: Note that my use of the templates on this page have also miscategorized this page for demonstration purposes. Thanks! GoingBatty (talk) 20:22, 11 April 2023 (UTC)
 * User:BoonDock contains, which displays as  and  and  and adds the page to Categories: Recipients of the Pro Patria Medal (South Africa), United Nations Medal, Recipients of the iPhrothiya Medals
 * User:Spinenspyker/sandbox/Spinenspyker and User:Michael.booyens/sandbox have similar issues.


 * Let me investigate and see what I can do BoonDock (talk) 20:41, 11 April 2023 (UTC)
 * If you decide that applying categories via this template is compatible with WP:TEMPLATECAT (it is probably not, if you are applying content categories), see Comparable Lua_functions to wikitext for how to return the namespace number and Namespace for a list of namespace numbers. I am seeing this template adding content categories at Magnus Malan, as an example. This template should not do that, per the guideline linked above, unless there is consensus for an exception to that guideline. – Jonesey95 (talk) 01:11, 14 April 2023 (UTC)
 * Also, what is the point of the hidden tracking categories like, which appear to duplicate what is available in the "What links here" link? – Jonesey95 (talk) 01:18, 14 April 2023 (UTC)
 * Hi,
 * Thank you for that reference. I'll study up on it asap.
 * I'm moving a large number of uses of an older template to use the new Lua based one, and while I'm working through all the pages, using the categories to track which are where. I intend to remove those categories afterwards. BoonDock (talk) 01:21, 14 April 2023 (UTC)
 * Thanks for explaining the hidden tracking categories. The WP:TEMPLATECAT problem still appears to be present. You can see the problem if you edit the section at Magnus Malan. – Jonesey95 (talk) 18:10, 16 April 2023 (UTC)
 * I don't see the problem with Malan? Could you be a little more specific please? It seems we're talking past each other and I'm trying to understand exactly what the problem is. BoonDock (talk) 18:14, 16 April 2023 (UTC)
 * The template, when it is used in that article, applies and other content categories to the article. Templates should not apply content categories to article pages. From the guideline: it is recommended that articles not be placed in ordinary content categories using templates – Jonesey95 (talk) 02:29, 17 April 2023 (UTC)
 * Ok, and yet that's a recommendation in the policy, so I didn't take it that seriously. Just how seriously should I take it? BoonDock (talk) 12:23, 17 April 2023 (UTC)
 * I have fixed the module so that it doesn't add categories which are red-linked or redirects as I indicated on the Village Pump thread. I am also checking that the namespace as delivered by the function you pointed me to is which implies it's mainspace. BoonDock (talk) 18:16, 16 April 2023 (UTC)