https://bugzilla.wikimedia.org/show_bug.cgi?id=23853

           Summary: unnamed template parameters should not overwrite
                    explicitly numbered parameters
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Templates
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: wal...@email.com


[[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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to