Last modified: 2014-02-12 20:53:04 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 T63248, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61248 - References shouldn't show up in the reflist unless they've been unstripped
References shouldn't show up in the reflist unless they've been unstripped
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-12 03:43 UTC by Jackmcbarn
Modified: 2014-02-12 20:53 UTC (History)
1 user (show)

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


Attachments

Description Jackmcbarn 2014-02-12 03:43:45 UTC
Suppose Template:X contained the string "{{#if:{{{1|}}}|1 was set|1 wasn't set}}". If {{X|foo<ref>bar</ref>}} is used, the reference to bar shouldn't show up in <references />, but it currently does (along with a broken backlink). The far more common case of this happening is on the English Wikipedia, where infobox labels contain a reference that should only appear if data for the label exists. Hacks in lua have been written to avoid looking at parameters to work around this problem. A much cleaner solution would be to only display references in the reference list if they've been unstripped during the page's parsing (or some equivalent way of checking that).
Comment 1 Jackmcbarn 2014-02-12 20:32:48 UTC
Note that Parsoid's parsing does not have this issue. Compare https://en.wikipedia.org/wiki/User:Jackmcbarn/61248 and http://parsoid-lb.eqiad.wikimedia.org/enwiki/User:Jackmcbarn/61248

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


Navigation
Links