Last modified: 2013-04-06 22:02:46 UTC
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.
This is the expected behavior. You can use <noinclude></noinclude> around the __NOEDITSECTION__ magic word to make it not be used when transcluding.
(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.