Template talk:Autoflight Navigation
Automatic categorization seem broken
I was adding the template to Howto:Add procedures to the route manager, and noted that the page did not get automatically categorized. Looking at the other pages it seems automatic categorization for some reason do not work with this template, and I can not figure out why.
—Johan G (Talk | contribs) 05:18, 9 September 2020 (EDT)
Looking at this again today, I see that articles in the Main namespace is categorized automatically, but not pages in the Howto namespace. For the categorization the templates {{main other}} and {{howto other}} are used, and I can not see any significant difference. In fact, looking at them with Special:ComparePages the only difference in the templates themselves (in essence not the documentation), is the namespaces: See the comparison.
—Johan G (Talk | contribs) 09:53, 10 September 2020 (EDT)
- I have a little memory of some issue to do with the order in which things are parsed. I haven't been able to find the reference for this. This is very distant (5 year old) memory, but I think there is a trick with parser functions to be used here. I have to investigate more.
- This is quite strange. I've made a test at User:Bugman/transclusion test. I have transcluded both {{infobox aircraft}} and {{Autoflight Navigation}}. The first inserts categories, the second does not!
- There actually seems to be issues with the nested transclusion of {{main other}} and {{howto other}}. I suggest you remove this and simply have <includeonly>[[Category:Autoflight]]</includeonly>. If needed you could also introduce a pararmeter into this template called categorise, which if set to 0 will cause the category to not be transcluded. That would allow template usage in non main namespaces while allows for suppression of the category.
- Actually, this appears to be a bug in the {{howto other}} template. I've bypassed it by using the more logical and cleaner {{namespace detect}} template. This should now be fixed.
- Thank you so much for looking into this. I thought I was going mad, in particular as {{main other}} and {{howto other}} by the looks of it should work just the same.
- To be honest, from the start I have considered the Howto namespace to be an abomination. There is absolutely no need for it, as one could simply have articles in the main namespace with a Howto: prefix (IIRC they call this "user administered namespaces" or "pseudo namespaces" on Wikipedia). To not have to type the prefix, one could simply create redirects. Creating a separate Howto namespace have caused issues in the past, like that the search function per default only looks for articles in the Main namespace. It is not entirely unlikely that what we see here might be some configuration issue as well.
- Sorry for the rant. And thanks again.
- —Johan G (Talk | contribs) 06:29, 11 September 2020 (EDT)
- I wouldn't call that a rant. It would be better on FlightGear wiki:Village pump though. To me 'Howto' here is simply a categorisation. Why is that categorisation even needed in the page title? I never liked this namespace, specifically because the default search misses it, and there is a significant grey area of what you would categorise as a 'howto' or not. I think it would be better managed with a basic {{howto}} template at the start of each of these articles which automatically adds Category:Howto. If you take your discussion above over to the village pump, I'll copy this over there as well.
- Copied both of the last comments, about the Howto namespace, over to FlightGear wiki:Village pump.
- —Johan G (Talk | contribs) 01:58, 12 September 2020 (EDT)