Last modified: 2013-04-06 22:02: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 T48940, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46940 - noeditsection and templates
noeditsection and templates
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-06 07:08 UTC by Even-André Karlsson
Modified: 2013-04-06 22:02 UTC (History)
1 user (show)

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


Attachments

Description Even-André Karlsson 2013-04-06 07:08:31 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.
Comment 1 Bartosz Dziewoński 2013-04-06 19:36:52 UTC
This is the expected behavior. You can use <noinclude></noinclude> around the __NOEDITSECTION__ magic word to make it not be used when transcluding.
Comment 2 Even-André Karlsson 2013-04-06 21:59:58 UTC
(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.
Comment 3 Bartosz Dziewoński 2013-04-06 22:02:46 UTC
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.

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


Navigation
Links