Page MenuHomePhabricator

First template argument blank -> non-parsing
Closed, ResolvedPublic

Description

Author: jnothman

Description:
A recent change to MediaWiki seems to have caused a problem where the first argument to a template was
left blank. I am failing to duplicate this with other examples (so can't really determine this properly),
but a template with a commonly-blank first argument is [[Template:Bibleverse]]. Until now, its first
argument is a bible book number, which most don't have, so {{bibleverse||Psalms|23:2|}} would've been
valid usage. It used to show an external link labelled "Psalms 23:2". Now, although the template has not
been changed, it shows as if the code produced by inserting the template has not been processed by
mediawiki. That is, it shows as [http://php.ug.cs.usyd.edu.au/~jnot4610/bibref.php?book=%
20Psalms&verse=23:2&src= Psalms 23:2] rather than just a link. See for instance [http://en.wikipedia.org/
w/index.php?title=Ten_Commandments&oldid=40883747].

Because changing this to {{bibleverse|Psalms||23:2|}} does not change the result of the template, this is
how the bug has been worked around on affected pages, but this is template-specific.


Version: unspecified
Severity: normal

Details

Reference
bz5081

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:07 PM
bzimport set Reference to bz5081.
bzimport added a subscriber: Unknown Object (MLST).

This was broken on February 22, apparently due to a misinterpretation of what one
of our parser tests meant. I've reverted the bogus "fix".