HTML headings point to nonexistent sections when transcluded
Closed, ResolvedPublic

Description

Author: grmwnr

Description:
If a heading (created with <hX></hX>, the equal sign won't work at all for
obvious reasons) is passed as a parameter to a template, and the template
displays it as a regular section heading with an [edit] link, the edit link will
refer to a section of the template-including page, not to the template.


Version: unspecified
Severity: minor

bzimport added a project: MediaWiki-Templates.Via ConduitNov 21 2014, 8:57 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz4034.
bzimport created this task.Via LegacyNov 20 2005, 2:23 AM
bzimport added a comment.Via ConduitNov 10 2006, 11:13 PM

ssanbeg wrote:

Note this has nothing to do with parameters; HTML headings in templates *always*
produce edit section links pointing to the main page.

That's beacuse they are marked as belonging to the template when they are in
wiki syntax, but the edit section links are added later, to the HTML, while the
TOC is built.

You could probably work around this by creating a template with the equal signs,
and using that, i.e. arg={[eq|3}]text{{eq|3}}

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.