Template:Subpage tabs/doc

 creates a series of tab-like links to the subpages of the page they're placed on. Basic usage is very simple. Simply place   at the top of the page, above any other templates. This will automatically produce links to the following standardised subpages, if they exist for this page, in this order:
 * Biography
 * Physical appearance
 * Other realities
 * Non-valid material
 * Promotion
 * Gallery

If the page you are using the template on uses non-standard subpages, these can be specified as follows: You can specify as many additional subpages as necassary. Note that additional subpages always display after custom ones.

By default, tabs are created for the current page. If required, a different page can be specified and tabs will instead be displayed for that page. This is useful when using the template on a subpage as it lets you generate the links for the parent page. This done using |p=. For example, to generate tabs for Davros, you'd type: You might use this on Davros/Gallery.

The following code produces the series of tabs shown below:

Technical documentation
All heavy lifting for this template is done in Module:Subpage tabs. One important part is the table defined on line 3: this controls which subpages are looked for automatically and in what order they are displayed.

Note that this template is complete and fully functional. It is marked with purely so that editors don't use it before the propper forum thread to decide on its use has occured.