Page MenuHomePhabricator

Nested template parameter displays incorrectly in edit preview mode
Closed, ResolvedPublic

Description

Author: mediazilla

Description:
In the following example, the template parameter displays incorrectly in edit preview mode.

The edit preview should show a TABLE followed by a LINK, but instead it shows a TABLE follwed by {{{ followed by a
LINK.

This error shows on my 1.5.5 installation but does NOT happen on the current MediaWiki site (where the templates
are). I don't know whether this was a known bug which has been fixed and MediaWiki uses a newer version than 1.5.5,
or whether this is a regression, or some other reason.

I have a template (shown in the Mediawiki workspace):
[[Template:Dmoz]]

containing

{| align="center"

{{ODPAttributioncat={{{cat}}}}}
-
[http://dmoz.org/{{{cat}}} http://dmoz.org/{{{cat}}}]
}

which includes a template:
[[Template:ODPAttribution]]

containing:

<table border="1" bgcolor="#336600" cellpadding="3" cellspacing="0">
<tr>
<td>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td>Help build the largest human-edited directory on the web.</td>
</tr>
<tr bgcolor="#CCCCCC" align="center">
<td><font face="sans-serif, Arial, Helvetica" size="2">
[http://dmoz.org/cgi-bin/add.cgi?where={{{cat}}} Submit a Site] -
'''[http://dmoz.org/about.html Open Directory Project]''' -
[http://dmoz.org/cgi-bin/apply.cgi?where={{{cat}}} Become an Editor] </font>
</td></tr>
</table>
</td>
</tr>
</table>


Version: 1.5.x
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz4703

Event Timeline

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

mediazilla wrote:

Shows how template looks in preview

Note that the template itself actually does work correctly, even though in the
preview it doesn't display correctly.

Attached:

dmoz_template_error.jpg (639×820 px, 105 KB)

gangleri wrote:

(In reply to comment #0)

... but does *NOT* happen on the current MediaWiki site (where the templates
are).

Hallo Hugh Prior!

Providing a test case in order to compare with your examples:
[[meta:user:Gangleri/tests/bugzilla/04703]]
Only the namespaces of the "''templates''" / "''inclusions''" are different.

[[meta:user:Gangleri/tests/bugzilla/04703]] shows that the error is not present
at meta; either "''no more''" or "''not yet''".

Please try to locate the files in the relevant branches, see the revision
history and / or make a diff.

best regards reinhardt [[user:gangleri]]

mediazilla wrote:

Reinhardt,

I don't know if the following comment is to me. If so, what would you like me
to try exactly?

Please try to locate the files in the relevant branches, see the revision
history and / or make a diff.

I have 1.5.5 installed on my system. Is the site you have tested it on with a
MORE recent version? If so, I suppose the bug is fixed.

regards,

Hugh

gangleri wrote:

Hi Hugh,

You may go to irc://irc.freenode.net/mediawiki and ask developers about the
different branches of MediaWiki ( http://www.mediawiki.org ) .

I refer myself mostly to the CVS branch located at
http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/ .
see
http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/RELEASE-NOTES
http://mail.wikipedia.org/pipermail/mediawiki-cvs/

Beside the CVS branch there are the HEAD branch the various branches at
sourceforge.net . Sorry but I can not provide more details. Hope that you get
either a response here, help at IRC or trough the mainling list.

reinhardt

Indeed, already fixed on HEAD. This bug may be a duplicate of another
report, but I couldn't find an equivalent in a 10-second quick look.