Template section edit issues: ghost sections and lost sections
Closed, ResolvedPublic


When a section header is displayed through a template, numbers in section edit links will become misaligned. See example URL. For section titles displayed through templates, the scope of numbering seems to be restricted to the template, and for other titles, numbering skips those inside templates. Because of this, when a section header is used in a template, edit links of all subsequent sections refer to a wrong secton, which can be quite annoying on long pages.

Version: unspecified
Severity: minor
URL: http://hu.wikipedia.org/wiki/User:Tgr/sectionedit

bzimport added a project: MediaWiki-Parser.Via ConduitNov 21 2014, 9:55 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz11911.
Tgr created this task.Via LegacyNov 9 2007, 2:07 PM
bzimport added a comment.Via ConduitNov 9 2007, 7:30 PM

ssanbeg wrote:

Passing wiki sections into a template gives weird results, since the heading is produced by the template, even though there's no section there.

Currently, the best option is just to use HTML syntax, since that avoids the problem with misinterpreting =, and prevents the edit links from getting associated with the template.

tstarling added a comment.Via ConduitNov 13 2007, 10:18 AM

The test case demostrates two separate issues:

  1. Templates may generate sections in the output which don't exist in the template, thus giving invalid section edit links pointing to the template
  2. Apparent sections in the page wikitext may be lost by passing them through to a template. The heading may reappear as a ghost template section (as per 1. above), or it may be removed altogether.

Changing the bug title to describe these two issues.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.