Thread:Haldarn/@comment-193051-20180219192213/@comment-193051-20180220080500

Sorry, that's on me - I could have explained that a lot better. You got most of it, though. Replace the Item Header headers with regular headers, include Item Sections on the page, and you can get the fancy functionality of Item Header without losing section editing or experiencing any of the other quirks of Item Header.

It was poorly explained, but by explicitly, I just meant manually wrapping the sections in a div like this:

Header 1
Content As opposed to using WrapHeaderSection like this:

Header 1
Content Both will do pretty much the same thing, but the WrapHeaderSection method has worse performance (it might cause slowdowns if used too much on a single page) and the script won't run until after the page is fully loaded, so you might see some things shift after fully loading. It's probably not a big deal in most cases, but it's something to keep in mind.

RE: #1: I think it's safe to leave out the other item sections, since they don't need any special formatting like the Statistics, Other Uses, and other sections do. Collapse Sections, which is included in Item Sections, ensures that all of the header sections will still be collapsible, without having to be specified by a WrapHeaderSection in Item Sections (or otherwise). I don't think we have any other reason to wrap them in a special class, but maybe I'm forgetting something?

RE: #2: So, all WrapHeaderSection does is wrap a header and its following section in a div and add a class to the div. The wrapper class param is just the class that's being applied to the wrapper div. This can be really useful for styling purposes, but essentially all it does is turn this:

Header 1
Content Into this:

Header 1
Content