Page MenuHomePhabricator

<ref> tags appear on next line when in a line of test that starts with a semicolon
Closed, InvalidPublic

Description

Author: ta.bu.shi.da.yu

Description:
The below should show the citation number at the end of the line that starts
with a semi-colon. However, the citation number appears as the first element of
the next line.

; Base Services:<ref name="msdn-base">[[Microsoft Developer Network]] (July
2005).
''[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/base_services.asp
Base Services.]'' Retrieved August 28, 2005.</ref> Provide access to the
fundamental resources available to a Windows system. Included are things like
[[file systems]], [[:Category:Computer device|devices]], [[Process
(computing)|processes]] and [[Thread (computer science)|threads]], access to the
[[Windows registry]], and [[error handling]]. These functions reside in
<tt>kernel.exe</tt>, <tt>krnl286.exe</tt> or <tt>krnl386.exe</tt> files on
16-bit Windows, and <tt>kernel32.dll</tt> and <tt>advapi32.dll</tt> on 32-bit
Windows.

See permanent link to article revision for example.


Version: 1.10.x
Severity: minor
OS: Windows XP
Platform: PC
URL: http://en.wikipedia.org/w/index.php?title=Windows_API&oldid=124805104#Overview_of_the_Windows_API_Components

Details

Reference
bz9660

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:37 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz9660.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

A colon ends the boldfaced <dt> element and begins an indented <dd> element. If
the reference is after the colon, it will be part of the latter, not the former.
Move the ref to before the colon.

ta.bu.shi.da.yu wrote:

That's not a colon... it's a semi-colon. No trying to be pendantic here, but
they do different things.

ayg wrote:

A semicolon ';' begins a <dt> element. A colon ':' begins a <dd> element. The
wikitext

; Foo : bar

produces the HTML

<dl><dt>Foo</dt><dd>bar</dd></dl>

as intended. They do different things, but they both do things, and each is
doing the correct thing in the wikitext that you presented. Move the ref before
the colon and it will be in the <dt> element as, presumably, is desired.

ta.bu.shi.da.yu wrote:

I see. I still don't see why this isn't seen as a bug though. I would have
thought that any text before a newline wouldn't be incorporated into the same
line, even if it is a cite tag.

ta.bu.shi.da.yu wrote:

Hold on... I follow now. Ignore previous comment.