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

       Web browser: ---
            Bug ID: 60827
           Summary: Unnecessary newline added to lists and tables when
                    invoked through a template
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Scribunto
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: pub...@matt-russell.com
                CC: bjor...@wikimedia.org, tstarl...@wikimedia.org,
                    vasi...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 14480
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=14480&action=edit
Screenshot showing both cases in Special:ExpandTemplates

Bug 529 added the "feature" of adding a newline to templates when they are not
at the start of the line if they start with wikitext which has to be at the
start of the line (tables, lists, etc.). When using a plain template or
invoking a module directly, this works fine. However, when using a template
which invokes a module, the newline is ALWAYS added, regardless of if it is
necessary.
This often results in nasty <p>s coming along and ruining everything, like they
always do. :(

This is easy to test: create a module and a template which starts with a list
or table. When using the module through a template you'll always get an extra
newline, unlike direct invocation or plain templates, which only add it when
necessary.

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