Last modified: 2008-06-10 17:25:09 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 T9651, the corresponding Phabricator task for complete and up-to-date bug report information.
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