Page MenuHomePhabricator

noeditsection and templates
Closed, InvalidPublic

Description

Author: evenak

Description:
I have a template with noeditsection that i instantiate to a page. This works fine. But when i transclude this page in another page, all editsections disappear from the including page, also for section native in the including page.
This is not a big problem, just a bit annoying.


Version: unspecified
Severity: normal

Details

Reference
bz46940

Event Timeline

bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz46940.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Apr 6 2013, 7:08 AM

This is the expected behavior. You can use <noinclude></noinclude> around the NOEDITSECTION magic word to make it not be used when transcluding.

evenak wrote:

(In reply to comment #1)

This is the expected behavior. You can use <noinclude></noinclude> around the
NOEDITSECTION magic word to make it not be used when transcluding.

I think you misunderstood my bug. I have Three Pages, a template with noeditsection, a page x that uses this template, and a page y that transclude page x as a section, but also contains other sections with ordinary text. All sections in page y are without the edit button when I use noeditsection in the template. I thought the noeditsection only worked Per section, and that it was not a global variable for the whole page. But if it is a global variable I understand that you do not consider this a bug, although I would have prefered that the noeditsection worked pr section. Thanks for the fast response.

No, it's global. But you can use the HTML syntax to create non-section headings: e.g. <h2>Test</h2> looks just like ==Test==, but doesn't create a new section.