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

           Summary: #default without value causes switch to default to
                    last argument
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: ParserFunctions
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: fp...@web.de


Example: {{#switch:a|b=c|#default|e=f|g=h}}

This currently expands to h. It would make sense for it to either ignore the
#default key without a value (i.e. treat the value as empty) or to treat it
like any other key without a value, i.e. fall through and return f. But I don't
see any rationale for returning the last value.

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