Page MenuHomePhabricator

Ignore content within <noinclude> tags
Closed, ResolvedPublic


When transcluding a section with the #lsth parser function, the content within <noinclude> tags is transcluded too.


Event Timeline

Do you have an example link handy?

@Aklapper Sure, I have updated the description with a link to a demo

Sophivorus triaged this task as Medium priority.Aug 3 2017, 10:32 AM

Solving this task would allow us to do cleaner transclusions. For example, when I want to transclude the introduction of an article in a portal, I would like to use {{#lsth}} However, if the introduction contains leading templates that I don't want to transclude, I'm forced to wrap the content that I do want to transclude with <section> tags and use {{#lst}} instead. If the content within <noinclude> were ignored as it should, I could just wrap the templates with <noinclude> tags and transclude the full intro with {{#lsth}}, which would be cleaner and simpler.

Change 378817 had a related patch set uploaded (by Legoktm; owner: Sophivorus):
[mediawiki/extensions/LabeledSectionTransclusion@master] Don't transclude content within <noinclude> tags

@Tpt Hi, sorry to insist, but I'm not sure if you've forgotten about this task and fixing it would really help me continue my work on Wikipedia efficiently. I think the latest patch is super easy to review and I even created a parser test. If you're not too busy, could you take a look? Thanks !

Change 378817 merged by jenkins-bot:
[mediawiki/extensions/LabeledSectionTransclusion@master] Don't transclude content within <noinclude> tags

Sophivorus claimed this task.