https://bugzilla.wikimedia.org/show_bug.cgi?id=18994
Summary: When template evaluated, extraneous line break
introduced
Product: MediaWiki
Version: 1.14.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Templates
AssignedTo: [email protected]
ReportedBy: [email protected]
I don't know exactly what is the cause, but there is a definite problem. I can
only explain the problem, not the solution. Do this: Use three Sandboxes. In
the first save the following template
definition:<nowiki><includeonly>'/n'{{#switch: {{{OP}}}'/n' | nop'/n' | note =
<ref group=fn name=first></ref>}}'/n'</includeonly>'/n'</nowiki> (I am using
the line break character here, because I don't know the rules for Bugzilla
markup. Obviously, don't put in the nowiki tags. I am including them because I
don't know whether Bugzilla parses wiki markup). In the second save the
following <nowiki>{{subst:First Sandbox}}</nowiki>. In the third save:
<nowiki>==Chapter 1{{Second Sandbox | OP = note}}==</nowiki>. In the Third
Sandbox, the text between "Chapter 1" and the transcluded text from Second
Sandbox is separated by a line break. Now, go back and edit the Second Sandbox.
At the end is a line break character that was added when the Second Sandbox was
saved. Delete this line break character (moving the cursor from the blank line
at the end of the Sandbox to the end of the first non-blank line). Save the
Second Sandbox. Now edit the Third Sandbox and again save <nowiki>==Chapter
1{{Second Sandbox | OP = note}}==</nowiki>. The result is there is no line
break between "Chapter 1" and the text transcluded from the Second Sandbox. The
Header line renders properly.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l