Last modified: 2014-06-07 23:26:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13473, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11473 - {{#insection:true|false}} function that will flag "true" if in a section (for template messages and their different context)
{{#insection:true|false}} function that will flag "true" if in a section (for...
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-27 16:58 UTC by Carl Fürstenberg
Modified: 2014-06-07 23:26 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Carl Fürstenberg 2007-09-27 16:58:32 UTC
as template messages sometimes should have different context depending if they are in a section or at the top of a page, I ask for a parserfunction {{#insection:true|false}} that will flag the true value if we are in a section, and false if not.
Comment 1 Jackmcbarn 2014-06-07 19:11:23 UTC
This is probably a WONTFIX, since templates can generate section headers, and that would then break parsing of templates in parallel.
Comment 2 Carl Fürstenberg 2014-06-07 20:58:49 UTC
(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.
Comment 3 Gabriel Wicke 2014-06-07 23:18:12 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links