Last modified: 2008-06-10 17:25:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7651 - problems with {{padleft:}} ({{padright:}}) and template arguments
problems with {{padleft:}} ({{padright:}}) and template arguments
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-20 21:36 UTC by Stanisław Skowron
Modified: 2008-06-10 17:25 UTC (History)
1 user (show)

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


Attachments

Description Stanisław Skowron 2006-10-20 21:36:30 UTC
Code:

  {{padleft:{{{1}}}|10|X}}

should return:
  XXX{{{1}}} (if first parameter of current template is not specified)
or for example:
  XXXXXXX123 (if first parameter of current template is 123)

but now it returns:
  XXX10

We have similar situation if we ask for second argument.
Comment 1 Steve Sanbeg 2007-06-08 16:02:49 UTC
When the parser function splits the arguments, it's clobbering its own arg list.  Calling it as 

{{padleft:{{{1}}}|10|X|1={{{1}}}}}

Should restore the clobbered arg you want, and give the expected result.

Basically the same issue as bug 5678.
Comment 2 RockMFR 2008-06-10 17:25:09 UTC
Fixed in the new parser.

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


Navigation
Links