Page MenuHomePhabricator

TemplateData: Hint that templates should have whitespace inserted after/before them (e.g. for message box notice templates)
Closed, ResolvedPublic0 Estimated Story Points

Description

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.

Version: unspecified
Severity: enhancement

Details

Reference
bz51334