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

       Web browser: ---
            Bug ID: 49739
           Summary: Template Inspector uses nowiki tags instead of
                    preserving explicitly declared positional parameters
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Editing Tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

If you explicitly declare positional parameters in a template, and then edit it
with the Visual Editor, the Template Inspector converts it to implicitly
declared positional parameters - i.e. {{some template|1= foo |2= bar }} becomes
{{some template|foo|bar}}.

Now, if an explicit positional parameter contains an equals sign, then the
Template Inspector puts nowiki tags around it. So {{some template|1= foo=bar
|2= baz }} becomes {{some template|<nowiki>foo=bar</nowiki>|baz}}. However,
"foo=bar" and "<nowiki>foo=bar</nowiki>" are not equivalent wikitext. For
example, nowiki tags will break wikilinks.

There's an example of the difference in this diff:
https://www.mediawiki.org/w/index.php?title=VisualEditor:Template_test&diff=712906&oldid=712905

See the effects for the revisions before and after (look at the "Inline
template" section).

Before:
https://www.mediawiki.org/w/index.php?title=VisualEditor:Template_test&oldid=712905
After:
https://www.mediawiki.org/w/index.php?title=VisualEditor:Template_test&oldid=712906

-- 
You are receiving this mail because:
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