Page MenuHomePhabricator

allow to add section with no heading and custom edit summary
Open, LowestPublic

Description

Steps to reproduce:

  1. I want to add {{welcome}} template to someone's user page. This template has a heading already, so I am not filling in the name of the heading. Yet I want to specify an edit summary.

Expected results:

  1. The API provides a means to specify an edit summary, which does add any headings.

Actual results:

  1. The API does not provide any means to specify an edit summary, which does add any headings.

Event Timeline

Thanks for structuring your task!
Which specific API call with which parameters have you tried which comes closest? Probably something on https://www.mediawiki.org/wiki/API:Edit ? What exactly?

Anomie added a project: MediaWiki-Page-editing.
Anomie subscribed.

The API action=edit simply passes the 'summary' and 'sectiontitle' in to EditPage's 'wpSummary' and 'wpSectionTitle'. The behavior would need to be changed there.

As someone else noted on the support desk, there is already an "appendtext" parameter.

image.png (60×546 px, 7 KB)

Restricted Application added a subscriber: Liuxinyu970226. · View Herald Transcript