Page MenuHomePhabricator

<nowiki> doesn't deactivate <onlyinclude> when transcluding
Closed, DuplicatePublic

Description

<nowiki><onlyinclude>Text</onlyinclude></nowiki> results in transcluding "Text" on target page.

Expected result: whole wikitext is transcluded as it is, "<onlyinclude>Text</onlyinclude>" is displayed.

Moreover, <nowiki><onlyinclude></nowiki><nowiki></onlyinclude></nowiki> results in transcluding everything starting from </nowiki><nowiki></onlyinclude></nowiki> up to the next </onlyinclude> tag on page if one is present ("</nowiki></onlyinclude>..." is displayed). The issue disappears if one writes <nowiki><onlyinclude></onlyinclude></nowiki>.

Full demonstration:
Transcluding page: https://ru.wikipedia.org/wiki/Участник:Jack_who_built_the_house/transcluder
Transcluded page: https://ru.wikipedia.org/w/index.php?title=Участник:Jack_who_built_the_house/transcluded&action=edit