https://bugzilla.wikimedia.org/show_bug.cgi?id=19093
Happy-melon <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #4 from Happy-melon <[email protected]> 2009-06-05 15:40:20 UTC --- Wow, edit conflicts on bugzilla! But as we're all so fond of saying, wikimarkup is not a programming language :P The clear intention for the layman is for the "#default" to act as a marker for 'none of the above' (or indeed 'none of the below' as the #default case doesn't have to be the last in the sequence). If we replaced "#default" by "foo" in the example, then we'd get <{{#switch: foo | bar = bar | foo | baz = quok }}> --> <quok> as expected. The implication of the "#default" marker is that it *always* matches the test string, unless another explicit marker matches. The bug is that this universal-matching is position-dependent: <{{#switch: foo | bar | baz = ABC | #default = DEF }}> --> <DEF> <{{#switch: foo | bar | #default = DEF | baz = ABC }}> --> <DEF> <{{#switch: foo | #default | bar = DEF | baz = ABC }}> --> <> That doesn't look very intuitive to me. -- 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 [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
