Last modified: 2014-03-20 23:14:19 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 T54032, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52032 - VisualEditor: No easy way to add content before a template at the start of a line
VisualEditor: No easy way to add content before a template at the start of a ...
Status: RESOLVED DUPLICATE of bug 49784
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-25 15:14 UTC by Chris McKenna
Modified: 2014-03-20 23:14 UTC (History)
5 users (show)

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


Attachments

Description Chris McKenna 2013-07-25 15:14:07 UTC
PamD at the English Wikipedia reports that there is no easy way to add new content between a reflist and a template that follows it before you save the page.

This is a problem if your workflow is to add the stub template before adding the external links, which is entirely reasonable.

Steps to reproduce (option 1): 
1. create page with references and a reflist.
2. add a template (e.g. a stub template) after the reflist
3. add content between the references list and the template (e.g. an external links section).

Steps to reproduce (option 2):
1. Go to a page with no content between a reflist block and a template (e.g. https://en.wikipedia.org/w/index.php?title=Tyson_R._Roberts&oldid=565739822&veaction=edit )
2. Delete all content after the reflist:
3. Add a template (e.g. a stub template)
4. Add content between the references list and the template (e.g. an external links section).

There is a workaround: select the reflist, press the right cursor key once, press enter. This gets you a blank line with which to work from.

Desired behaviour: 
There should be somewhere to click between the reflist and the stub template, just as there is after the page has been saved and reopened in VE.
Comment 1 Chris McKenna 2013-09-01 12:14:01 UTC
Whatamidoing comments that the issue is that there is no way easy to select a line starting with a template:

So someone added a book to a ==Further reading== section.  Book #1 used a citation template.  Book #2 did not.  Neither had bullet list formatting.

Selecting them was hard.  I ended up selecting the header, the template, and the plain-text citation.  Then I clicked the 'list' button.  Then I went back and repaired the formatting for the section heading.  This isn't necessary, but it was easier than trying to figure out the exact stop to place the cursor. 

[...]

[The] problem is that it's hard to select just the line that contains the template.  You have to find the magic spot in the middle of "==Heading==<nowiki>{{template}}</nowiki>" to select the template without picking up the entire section heading.  I managed it later in testing, but only if I'm selecting text with arrow keys.  With the trackpad, it's still beyond me.
Comment 2 James Forrester 2014-03-20 23:14:19 UTC
This is caused by bug 49784; if we knew that the template you'd just added was a block, we would insert a slug above the template (which exists precisely for this reason). Merging.

*** This bug has been marked as a duplicate of bug 49784 ***

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


Navigation
Links