Page MenuHomePhabricator

{{#insection:true|false}} function that will flag "true" if in a section (for template messages and their different context)
Closed, DeclinedPublic

Description


Version: unspecified
Severity: enhancement

Details

Reference
bz11473

Event Timeline

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

This is probably a WONTFIX, since templates can generate section headers, and that would then break parsing of templates in parallel.

(In reply to Jackmcbarn from comment #1)

This is probably a WONTFIX, since templates can generate section headers,
and that would then break parsing of templates in parallel.

only seven years for a reply, horray! :)

While the bug is pretty old now, if I recall, it was to allow for example maintenance templates to show different information depending on if they where placed at the top of page, or under a section.

Closing as WONTFIX for the reasons mentioned by Jackmcbarn.

(In reply to Carl Fürstenberg from comment #2)

While the bug is pretty old now, if I recall, it was to allow for example
maintenance templates to show different information depending on if they
where placed at the top of page, or under a section.

Some of this could potentially be implemented with CSS. It's fairly easy to match the first child of div#content for example.