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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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