Last modified: 2014-03-06 18:21:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53334, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51334 - TemplateData: Hint that templates should have whitespace inserted after/before them (e.g. for message box notice templates)
TemplateData: Hint that templates should have whitespace inserted after/befor...
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
TemplateData (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-15 00:33 UTC by John Mark Vandenberg
Modified: 2014-03-06 18:21 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2013-07-15 00:33:23 UTC
Adding template 'unref' to the top of an article should add a new line, rather than putting {{unref}} at beginning of the existing line.

Steps to reproduce:
1. https://en.wikipedia.org/wiki/Student_Peace_Prize_Secretariat?veaction=edit
2. Position cursor at beginning of the text
3. Click Transclusion (Insert template)
4. Select template 'Unreferenced'
5. Click 'add template' and 'apply changes'

Expected results:
The template should be placed as a block above the first line.

Actual results:
The text is placed to the right of the template, on the same line.

(The same problem can be seen by creating a sandbox in VE with 'Blah', and then adding {{unref}} per the steps above.)

The {{unref}} template contains a line feed.  Wikitext '{{unref}}Blah' is not rendered with Blah on the same line as the template.

The VE is
1) displaying the wikitext incorrectly, and
2) not intelligently knowing that inserting '{{unref}}' requires the insertion of a line feed after the template.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links