Page MenuHomePhabricator

edit sections by name and allow to create sections with previously nonexistent names
Open, LowPublic

Description

Author: Bernhard.Fastenrath

Description:
Allow to edit sections by name (instead of by number) and allow to create
sections with previously nonexistent names as first or last sub-section of
existing sections.

This would, for example, allow to link to generic section names on talk pages.

A template like http://en.wikiversity.org/wiki/Template:Comments could link
to a nonexistent section and the section would be created on demand.

Allowing to create nonexistent sections as sub-sections would allow to put all
responses through "Template:Comments" under a common header.


Version: unspecified
Severity: enhancement

Details

Reference
bz9239

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:35 PM
bzimport set Reference to bz9239.
bzimport added a subscriber: Unknown Object (MLST).

Bernhard.Fastenrath wrote:

Bug #9240: A parser function to query the name of enclosing sections (like
{{#section-name:<section level>}})
would be useful in connection with this feature.

Just out of curiosity, where would the newly created (sub)sections be placed?
Presumably at the end of a page. But that might not be the convenient/desired place.

Bernhard.Fastenrath wrote:

see Bug #9242.

robchur wrote:

I'm not sure I see a clear use case for this. I also see some possible problems with respect to complex section names, non-unique section names, and I don't see how this would be presented to the user.

*** Bug 14877 has been marked as a duplicate of this bug. ***

wyvernoid wrote:

(In reply to comment #4)

I'm not sure I see a clear use case for this. I also see some possible problems
with respect to complex section names, non-unique section names, and I don't
see how this would be presented to the user.

Complex section names isn't really a problem as far as I'm concerned, as long as there exists a way to simplify them (which is always true since we do the same for section <a name=" anchors). As for non-unique section names, we could again use the way section anchors handle it (use section_name_2, section_name_3, section_name_n... etc.).

demon added a comment.May 6 2009, 8:52 PM
  • Bug 15575 has been marked as a duplicate of this bug. ***
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptAug 31 2019, 6:18 PM