Template:Tabs person/doc

Tabs for Person articles

Simple form: include the following at the top of each page:
 * if Pagename/Biography exists, a "Biography" Tab will appear
 * if Pagename/Ancestors exists, a "Ancestors" Tab will appear
 * if Pagename/Pictures exists, a "Pictures" Tab will appear

Details: This template creates a tabbed layout for an article. It is designed for articles that have become very large and need to be divided into subpages. It works with up to eight tabs, but be aware that the tab names must be very short when using this many. The default setting supports 4 tabs, if subpages exist for them named, "Biography", "Ancestors", and "Pictures". Subpages must have these names (with the exception of the first tab, which is the main page for the article).

If articles in other languages exist (see Genealogy:Multilingual articles), then add the parameter: "|lang=y". The template will find pages conforming to naming conventions for multilingual articles.

Example with all options: different tab names, change the color scheme, multilingual

Up to 7 additional tab names may be indicated. Here, a tab for "Ancestors" and "Foo" will be created regardless whether subpages for them exist. Remember that the tab names must match the subpage names, and are case sensitive.

Optionally, the background color "bcolor" and the line color "lcolor" may be indicated to override the default pastel yellow tabs. This can aid in color coding various branches of a complex family tree, or the confidence of the information in the node (possible, probable, likely...).

Full list of parameters
 * bcolor = background color. Values can be hex eg #FFCC00, or by name eg bcolor=green
 * lcolor = line color. Same legal values as bcolor.
 * shortname= Useful for very long article names that make a tab too large. If specified, shortname will be used for the article's tab, instead of the full article title.
 * page1= when the first tab should link to a page other than the Base page (page name to the left of a slash)
 * lang=y if present, this will display the language links in the upper right corner of the title bar.

Example: Would display the language links in the upper right corner of the title bar. Tab1 would link to Santa Coloma/en, but display "Santa Coloma".

Further examples, requests for changes? Please leave messages on the talk page Template talk:Tabs person.

Other languages: see also
 *  Template:Tabs person (es)
 *  Template:Tabs person (fr)
 *  Template:Tabs person (ru)