Last modified: 2007-04-25 04:36:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T11660, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9660 - <ref> tags appear on next line when in a line of test that starts with a semicolon
<ref> tags appear on next line when in a line of test that starts with a semi...
Status: CLOSED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.10.x
PC Windows XP
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-22 06:51 UTC by Chris Sherlock
Modified: 2007-04-25 04:36 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris Sherlock 2007-04-22 06:51:28 UTC
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.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-04-22 13:50:51 UTC
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.
Comment 2 Chris Sherlock 2007-04-24 07:53:07 UTC
That's not a colon... it's a semi-colon. No trying to be pendantic here, but 
they do different things. 
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-04-24 16:10:02 UTC
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.
Comment 4 Chris Sherlock 2007-04-25 04:33:53 UTC
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. 
Comment 5 Chris Sherlock 2007-04-25 04:36:17 UTC
Hold on... I follow now. Ignore previous comment. 

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links