Topic on Project:Support desk

edit api adding section without a heading

6
Gryllida (talkcontribs)

In edit api, how do i add section without a title to someones talk page, while using a non-empty edit summary? i'm welcoming using a script, and the {{welcome}} template already has a heading.

Gryllida (talkcontribs)

Please let me know if a phabricator ticket should be added about this.

MarkAHershberger (talkcontribs)

You should probably just grab the contents of the page and use them in your edit. If you'd like you can create a phabricator task to have the api add a section without a heading.

Gryllida (talkcontribs)
197.218.88.98 (talkcontribs)

Err its pretty simple. Just use the API:Edit to append content to the page. You're not really adding any section at all, and in any case sections are just virtual concepts, more like a view of an existing page.

MarkAHershberger (talkcontribs)

Oops, they're right @Gryllida. I missed the appendtext parameter.

Reply to "edit api adding section without a heading"