Last modified: 2014-09-23 19:46:37 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 T28145, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26145 - Add warning message when <references> is not closed correctly
Add warning message when <references> is not closed correctly
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 46986 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-27 21:21 UTC by Umherirrender
Modified: 2014-09-23 19:46 UTC (History)
4 users (show)

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


Attachments

Description Umherirrender 2010-11-27 21:21:35 UTC
When a page has a non-closed <references> the rest of that page is not visible (except categories and interwikis)

incorrect version: http://de.wikipedia.org/w/index.php?oldid=81022314
correct version: http://de.wikipedia.org/w/index.php?oldid=81976459

You see that the correct version has a box "Normdaten" at the end of the page after the references.

Please add a message in this case, so the editor get a information about his mistake and can correct hat.

Thanks.
Comment 1 Salil 2011-04-20 19:29:19 UTC
(In reply to comment #0)
> When a page has a non-closed <references> the rest of that page is not visible
> (except categories and interwikis)
> 
> incorrect version: http://de.wikipedia.org/w/index.php?oldid=81022314
> correct version: http://de.wikipedia.org/w/index.php?oldid=81976459
> 
> You see that the correct version has a box "Normdaten" at the end of the page
> after the references.
> 
> Please add a message in this case, so the editor get a information about his
> mistake and can correct hat.
> 
> Thanks.

Hi

to solve this problem, there should be a preg to determine whether references is closed
much like the checking if someone left off the closing </ref> tag in
Cite/Cite_body.php line no 243

since am new to mediawiki. couldnt write a patch myself :(

hopefully i can solve this in near future :)
Comment 2 Mark A. Hershberger 2011-04-20 23:04:15 UTC
This might be a more general issue with the parser and getting warnings from it.
Comment 3 Sumana Harihareswara 2013-02-22 02:16:20 UTC
Brad, do you think this bug is still valid?  If so, would it be suitable for a new developer ("easy")?
Comment 4 Brad Jorsch 2013-02-22 02:33:34 UTC
Valid, yes. Easy, not really.

(In reply to comment #1)
> 
> to solve this problem, there should be a preg to determine whether references
> is closed
> much like the checking if someone left off the closing </ref> tag in
> Cite/Cite_body.php line no 243

The check for a missing </ref> just looks to see if the current tag contains another <ref> inside of it. But it's unlikely to be the case that the article would contain a second <references> to be found inside the first in the same way.
Comment 5 db [inactive,noenotif] 2013-04-20 11:32:59 UTC
*** Bug 46986 has been marked as a duplicate of this bug. ***

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


Navigation
Links