Last modified: 2014-11-18 18:07:11 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 T9553, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7553 - template parameters shifted for certain values
template parameters shifted for certain values
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://hu.wikipedia.org/wiki/1990-es_...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-12 12:35 UTC by Tisza Gergő
Modified: 2014-11-18 18:07 UTC (History)
1 user (show)

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


Attachments

Description Tisza Gergő 2006-10-12 12:35:51 UTC
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.
Comment 1 Fyren 2006-10-12 13:07:07 UTC
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.
Comment 2 Tisza Gergő 2006-10-12 14:16:56 UTC
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.
Comment 3 Tisza Gergő 2006-10-12 14:18:54 UTC
Is there any known hack to circumwent this behavior (something like {{!}} for
tables maybe)?
Comment 4 Brion Vibber 2006-10-12 20:23:55 UTC
1=blah
etc
Comment 5 Tisza Gergő 2006-10-13 07:21:34 UTC
Replacing = with <nowiki>=</nowiki> helped.

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


Navigation
Links