Last modified: 2010-06-09 09:46:33 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 T25853, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23853 - unnamed template parameters should not overwrite explicitly numbered parameters
unnamed template parameters should not overwrite explicitly numbered parameters
Status: RESOLVED DUPLICATE of bug 22686
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-09 09:41 UTC by Waldir
Modified: 2010-06-09 09:46 UTC (History)
2 users (show)

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


Attachments

Description Waldir 2010-06-09 09:41:23 UTC
[[meta:Help:Template#Mix of named and unnamed parameters]] explains this problem. The last sentence is particularly relevant: "the direct assignment of the value '1' to parameter 3 is later overwritten by the third unnamed parameter."

For instance, if you write {{example template|3=A|B|1=C|D|E}}, and the template consists simply of {{{1}}}-{{{2}}}-{{{3}}}, the result would be C-D-E rather than the more logical C-B-A (where the "first" unnamed parameter, B, takes the place of the first unassigned numbered parameter) or C-D-A (where simply explicitly numbered parameters take precedence over the implicit numbering).

I think the first alternative, C-B-A, makes most sense, but either approach would be better than the current behavior.
Comment 1 Alexandre Emsenhuber [IAlex] 2010-06-09 09:46:33 UTC

*** This bug has been marked as a duplicate of bug 22686 ***

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


Navigation
Links