https://bugzilla.wikimedia.org/show_bug.cgi?id=9584





--- Comment #4 from P.Copp <paul.copper...@googlemail.com>  2009-11-26 13:49:31 
UTC ---
(In reply to comment #3)
> Test case:
> Template code:
> 1<nowiki>2<onlyinclude>3'''nowiki -> onlyinclude'''</onlyinclude>4</nowiki>5
> 
> Expected result on template page and page calling template:
> 12<onlyinclude>3'''nowiki -> onlyinclude'''</onlyinclude>45
> 
> Result on template page is OK.
> 
> Result on page calling template:
> 3nowiki -> onlyinclude (with nowiki -> onlyinclude in bold)
> 

Frankly, I think onlyinclude is a quite strange feature, working a bit
different from the other tags. As I understand it,

Foo<onlyinclude>Bar</onlyinclude>Baz

is supposed to work similar to

<noinclude>Foo</noinclude>Bar<noinclude>Baz</noinclude>

So your test case would translate to

<noinclude>1<nowiki>2</noinclude>3'''nowiki ->
onlyinclude'''<noinclude>4</nowiki>5</noinclude>

which renders as

3nowiki -> onlyinclude

when included, so the result you mention actually seems to be the expected
output.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to