Page MenuHomePhabricator

Creating a new section with a substituted template in the heading, causes incorrect anchor in edit summary
Open, MediumPublic

Description

When a new section is created using ?action=edit&section=new , the text of templates substituted is used as the edit summary. Is it possible to replace that with the actual text before saving?

Example:
http://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Articles_for_creation/feedback&diff=prev&oldid=471753133

should really have the edit summary "Feedback from 41.202.195.239 (16 January 2012)" because that's the actual section heading.

See Also:
T36266: Support substitution of localisation in edit summaries when saving
T57307: Section headers with templates are not correctly recognised

Details

Reference
bz33765

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:03 AM
bzimport set Reference to bz33765.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 48044 has been marked as a duplicate of this bug. ***
  • Bug 43914 has been marked as a duplicate of this bug. ***

In fact, this doesn't happen only when the template is inserted, but also if you create a new page, put the substituted template on it, and save without filling the edit summary: the automatic edit summary will display the original wikicode (like "created the page with {{subst:...")

Also, if you put a signature on it, it will have the same behavior, the ~~~~ will be displayed instead of the actual signature (or timestamp)

Perhelion added a project: MediaWiki-Templates.
Perhelion set Security to None.
Aklapper renamed this task from creating a new section with a subststituted tempate in the heading, or a new page with the substitued template and no edit summary, causes the edit summary to display the template code to Edit summary displays template code when creating a new section with a substituted template in the heading, or a new page with the substituted template and no edit summary.Feb 1 2017, 2:33 PM
Krinkle renamed this task from Edit summary displays template code when creating a new section with a substituted template in the heading, or a new page with the substituted template and no edit summary to Creating a new section with a substituted template in the heading, causes incorrect anchor in edit summary.Feb 9 2019, 7:25 PM
Matthewrbowker raised the priority of this task from Low to Medium.Mar 16 2019, 5:31 PM
Matthewrbowker moved this task from Inbox to Created on the User-Matthewrbowker board.