Template talk:Autoflight Navigation: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 04:11, 11 September 2020 (EDT)
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 04:11, 11 September 2020 (EDT)


: This is quite strange.  I've made a test at [[User:Bugman/transclusion test]].  I have transcluded both {{tl:infobox aircraft}} and {{tl:Autoflight Navigation}}.  The first inserts categories, the second does not!
: This is quite strange.  I've made a test at [[User:Bugman/transclusion test]].  I have transcluded both {{tl|infobox aircraft}} and {{tl|Autoflight Navigation}}.  The first inserts categories, the second does not!


: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 04:32, 11 September 2020 (EDT)
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 04:32, 11 September 2020 (EDT)
: There actually seems to be issues with the nested transclusion of {{tl|main other}} and {{tl|howto other}}.  I suggest you remove this and simply have <nowiki><includeonly>[[Category:Autoflight]]</includeonly></nowiki>.  If needed you could also introduce a pararmeter into this template called {{param|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.
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 04:55, 11 September 2020 (EDT)

Revision as of 08:55, 11 September 2020

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.
Bugman (talk) 04:11, 11 September 2020 (EDT)
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!
Bugman (talk) 04:32, 11 September 2020 (EDT)
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.
Bugman (talk) 04:55, 11 September 2020 (EDT)