Topic on Extension talk:SectionHide/Flow

SectionHide seems to be incompatible with the Header Tabs extension

3
Arcane21 (talkcontribs)

I have tested this extension on both a production wiki running mw:Header Tabs and a localhost wiki, and when both are enabled, any page with header tabs will not render properly, which results in the headers near the bottom of the page not rendering properly and the text being grossly enlarged.

I suspect the root cause is the fact that both extensions alter section behavior, and the corruption of the data results from MediaWiki trying to make both extensions work at the same time.

I'm not sure how this error could be resolved, but given it only affects pages with the headertabs parser hooks, I would suggest introducing a condition that disables SectionHide if the Header tabs parser hook is detected on the page.

Otherwise, it seems these two extensions are completely incompatible at present.

Hoggle42 (talkcontribs)

I've added a test to throw an error - it's not practical to go fishing around in the article looking for the parser tag as these two extensions are never going to be compatible. They should be viewed as alternatives.

Arcane21 (talkcontribs)

Given how they affect section behavior, that seems to be the best alternative. Thanks for your response.

Reply to "SectionHide seems to be incompatible with the Header Tabs extension"