The current interface to BookletLayout is very low-level and requires its caller to have knowledge of its children and perform some of its logic.
- Introduce a class that will eventually encapsulate some of this interface, giving it a high-level interface like, addPart(id), which creates a sidebar item and content page.
- Start with the simplest possible interface, just take over one method.
- Do not wire to the transcluded wikitext if possible, this can stay a TemplateDialog responsibility.