This is a continuation of other non-nice interactive aspects of use of <ref> tag and other mediawiki tags.
Broken when transcluded:
<ref>text text text text <noinclude> more text more text more</noinclude></ref> <ref>text text text text <includeonly>less text less text less </includeonly></ref>
Demo test cases
Real use case with noinclude
Real use case with includeonly
Actually:
The transcluded version mimicking the non-transcluded version.
Expected:
Content inside <noinclude> should not be displayed while visiting transcluder page.
Content inside <includeonly> should not be displayed while visiting transcluded page.
Both these are resolved with
{{#tag:ref|<noinclude></noinclude><includeonly></includeonly> }}
Two pages transcluded can be seen (and tested) at https://en.wikisource.org/w/index.php?title=Wikisource:Sandbox&oldid=6370282