Include support for number in MediaWiki API to address section id that changes from subsections
Open, Stalled, LowPublic

Description

Apologies, initial submission mixed up 'level' and 'number', my mistake!

Updated:

The section index used for an edit action in the Mediawiki API has a flaw, a given section's index will change if a prior section, that was already established, gets a new subsection.

An improvement would be to make available the 'number' value for an edit as well. It will still change if a new section at the same level is added prior to this section, but will not be impacted by new subsections in prior section.

This would also allow an edit request to address a single specific section instead having to account for any possible subsections in an edit.

Example:

Section 1

sub 1

Section 2

Section 2 section index is 3. Adding a sub 2 in Section 1 causes Section 2's index to increase to 4. Being able to use number values instead would help, Section 2's number remains 2.0.

I think it would be best that an edit request for level includes no subsections, so edit level 1.0 only gets the content of Section 1, stopping at sub 1 header.

Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptFeb 20 2016, 10:58 PM
Anomie changed the task status from Open to Stalled.Feb 21 2016, 5:45 PM
Anomie added a subscriber: Anomie.

Blocked on this sort of thing being supported in MediaWiki's core section-handling code.

Anomie moved this task from Unsorted to Blocked on the MediaWiki-API board.Feb 21 2016, 5:45 PM
Anomie triaged this task as Low priority.
kai.ekael renamed this task from Include support for level in Mediwiki API to address section id that changes from subsections to Include support for number in Mediwiki API to address section id that changes from subsections.Feb 22 2016, 1:25 PM
kai.ekael changed the task status from Stalled to Open.
kai.ekael updated the task description. (Show Details)
Aklapper renamed this task from Include support for number in Mediwiki API to address section id that changes from subsections to Include support for number in MediaWiki API to address section id that changes from subsections.Feb 22 2016, 2:52 PM
Aklapper changed the task status from Open to Stalled.