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

       Web browser: ---
             Bug #: 31781
           Summary: In a #switch, default result not shown if it contains
                    a tag with an attribute and #default is not used
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ParserFunctions
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Using the #switch ParserFunction, if the default result contains a tag with an
attribute, the whole default result is not shown. That problem is not present
if the ''#default ='' case is present, or if the tag used does not contain any
attribute. 


Tested live on wikipedia.org
MediaWiki 1.18wmf1 (with ParserFunctions Version 1.4.0)
and on a private installation
MediaWiki 1.17.0 (with ParserFunctions Version 1.4.0)


In the following tests, the 5) will not display anything. 
1) {{#switch: TEST | TEST = one | #default = <span
style="background-color:pink">DEFAULT</span>}}
2) {{#switch: TEST | TEST = one | <span
style="background-color:pink">DEFAULT</span>}}
3) {{#switch: TEST1 | TEST = one | #default = <span
style="background-color:pink">DEFAULT</span>}}
4) {{#switch: TEST1 | TEST = one | <span>DEFAULT</span>}}
5) {{#switch: TEST1 | TEST = one | <span
style="background-color:pink">DEFAULT</span>}}

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

Reply via email to