Page MenuHomePhabricator

template parameters shifted for certain values
Closed, InvalidPublic

Description

The above URL contains [[hu:Template:Egyenes kiesés-16]], with lots of flag
templates (example: [[hu:Template:ARGf]]) amongst its parameters. These flag
parameters are skipped by the parser, and the next parameter gets substituted
instead, shifting left all following parameters. This behavior depends on the
HTML code used by the parameters: the XXXf templates use [[hu:Template:Zászló]],
which contains an image wrapped in a span. When the span is removed,
Template:Egyenes kiesés-16 works fine. If instead removing <span
class="framedpicture"> is changed to <span>, the templates still break. All
templates I checked seem to contain valid HTML.


Version: unspecified
Severity: normal
URL: http://hu.wikipedia.org/wiki/1990-es_labdar%C3%BAg%C3%B3-vil%C3%A1gbajnoks%C3%A1g#Egyenes_kies.C3.A9ses_szakasz

Details

Reference
bz7553

Event Timeline

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

fyrenmoo wrote:

Are you sure it doesn't work with the class removed? Did you purge the page? I
think it's breaking because the equals from class="framedpicture" is being taken
as the equals for a named template parameter, which would cause the unnamed
parameters to shift.

You are right, i meant to write that it *does* work without the class. Looks
like the behavior is according to the specs then (the missing images and text
probably get tidied out because the span has breen broken in half), but is this
a good idea? This is certainly not the behavior the users will expect.

Is there any known hack to circumwent this behavior (something like {{!}} for
tables maybe)?

Replacing = with <nowiki>=</nowiki> helped.