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
 * Spoilers
 * Physical appearance
 * Other realities
 * Non-valid material
 * Promotion
 * Gallery
 * Appearances

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, or it's base page one level higher in the subpage order. If required, a different page can be specified and tabs will instead be displayed for that page. This done using |p=. For example, to generate tabs for Davros, you'd type:

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.