Page MenuHomePhabricator

Labelled section transclusion appears incorrectly, but only for user that added it and only immediately after it is added
Open, LowestPublic

Description

When using the new wikitext editor, if we transclude a fraction of an article using {{#lsth}}, a link to the article is shown, rather than the transcluded content. Strangely enough though, the references do seem to get transcluded correctly. In order to transclude the rest of the content correctly, the page needs to be purged. This bug doesn't happen when using {{#lst}}.

Attaching a screenshot of the bug in my Wikipedia sandbox. The offending wikitext is just {{#lsth:Philosophy}} but the bug only happens when using the new wikitext editor.

lsth.png (734×1 px, 311 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Deskana subscribed.

I had to search for this to find out what it is. For the benefit of others, this syntax is from Extension:Labeled Section Transclusion.

Firstly, contrary to the description, a purge doesn't seem to be required; simply refreshing the page was enough for me to see it correctly. Secondly, this visual glitch only affects the user that made the change, and only affects them when viewing the page right after saving; any other user that goes to the page sees it correctly. Thirdly, this kind of syntax is incredibly rare in the article namespace of most wikis.

This is something we'd want to fix eventually, but given the above it doesn't seem to be pressing.

Deskana renamed this task from Purge is needed for correct transclusion when using the new wikitext editor to Labelled section transclusion appears incorrectly, but only for user that added it and only immediately after it is added.Aug 7 2017, 11:09 AM
Deskana moved this task from To Triage to Freezer on the VisualEditor board.
Deskana lowered the priority of this task from Low to Lowest.Feb 23 2018, 5:13 PM

For what it's worth, I ran into this today and spent about 30 minutes trying to figure out what was happening.