If you don't like the default template, you can use your own design. Therefore, you must just create a new subpage /section resolved module, based on the root page. This page will be included on your page automatically.
For Commons:Example/Subpage A/Subsubpage AB the root is Commons:Example. So, you must create Commons:Example/section resolved module to make it work.
For User talk:Simon Sample the root is User:Simon Sample (without talk)