Template:DisambigTab

Template page

This is a user interface aid for integration of subjects with the same name over different articles, i.e. Celestra, thus allowing any user to go between them without needing to click through multiple different pages.

This template allows for nested tabs, for disambiguations that have multiple subjects sharing the same name, i.e. Adama.

Documentation[edit]

For unnested tabs

{{DisambigTab|article|article2|article3}}

For nested tabs
{{DisambigTab
|tab1=Grouping 1
|subtab1_1=Article One
|subtab1_2=Article Two
|tab2=Grouping 2
|subtab2_1=Article Three}}

This template supports multiple article arguments, but please limit the number 10 for performance reasons.

Example[edit]

For unnested tabs

{{DisambigTab|Celestra (TOS)|Celestra (RDM)|Celestra (TOS-RH)}}

Will generate this example (linked separately for demonstration reasons).

For nested tabs
{{DisambigTab
     |tab1=Original Series
          |subtab1_1=Adama (TOS)
          |subtab1_2=Adama's Medallion
          |subtab1_3=Adama's quarters
     |tab2=Galactica 1980
          |subtab2_1=Adama (1980)
     |tab3=Re-imagined Series
          |subtab3_1=Carolanne Adama
          |subtab3_2=Joseph Adama
          |subtab3_3=Lee Adama
          |subtab3_4=William Adama
          |subtab3_5=Zak Adama
}}

Will generate this example (linked separately for demonstration reasons).

Nested Tabs[edit]

To group nested tabs properly you MUST mirror the numbering, i.e. for tabs being grouped in tab1, you must declare a tab1, and then subtab1_XXX.

For multiple tabs within a grouping, define a separate subtab with a unique identifier after the underscore (_). The example below will help.

Also, it is best to organize them for human readability when editing:

|tab1=SUBJECT 1
    |subtab1_1=Article 1
    |subtab1_2=Article 2
    |subtab1_3=Article 3
|tab2=SUBJECT 2
    |subtab2_1=Article 4
|tab3=SUBJECT 3
    |subtab3_1=Article 5
    |subtab3_2=Article 6

Notes and Caveats[edit]

Styling[edit]

By default, the organization of each link should be thus:

For the Celestra disambiguation example, the organization is thus:

Redirects[edit]

Should you point to a redirect within this template call, it will show the page the redirect points to, instead of the redirect page itself.

Further, if the redirect has an anchor to it, e.g. The Fleet (TOS-RH)#Celestra, browsers will probably not "jump" you to that anchor when the tab is selected.

The Footer[edit]

When used on a disambiguation page, the footer of this template prints out a list of links that are called. This may be helpful to those who have older and outdated browsers, or perhaps are on mobile devices with smaller screens.

Categorization[edit]

Due to MediaWiki technical limitations, categories from each page called within the template are reproduced on the page that this template is deployed on. Thus, it will also list the disambiguation page within those categories... there's no way around it, presently. C'est la vie.


No description.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Page nameoptional
22

no description

Page nameoptional
33

no description

Page nameoptional
44

no description

Page nameoptional
tab1tab1

no description

Unknownoptional
subtab1_1subtab1_1

no description

Page nameoptional
subtab1_2subtab1_2

no description

Page nameoptional
subtab1_3subtab1_3

no description

Page nameoptional
subtab1_4subtab1_4

no description

Page nameoptional
subtab1_5subtab1_5

no description

Page nameoptional
tab2tab2

no description

Unknownoptional
subtab2_1subtab2_1

no description

Page nameoptional
subtab2_2subtab2_2

no description

Page nameoptional
subtab2_3subtab2_3

no description

Page nameoptional
subtab2_4subtab2_4

no description

Page nameoptional
subtab2_5subtab2_5

no description

Page nameoptional
tab3tab3

no description

Unknownoptional
subtab3_1subtab3_1

no description

Page nameoptional
subtab3_2subtab3_2

no description

Page nameoptional
subtab3_3subtab3_3

no description

Page nameoptional
subtab3_4subtab3_4

no description

Page nameoptional
subtab3_5subtab3_5

no description

Page nameoptional
tab4tab4

no description

Unknownoptional
subtab4_1subtab4_1

no description

Page nameoptional
subtab4_2subtab4_2

no description

Page nameoptional
subtab4_3subtab4_3

no description

Page nameoptional
subtab4_4subtab4_4

no description

Page nameoptional
subtab4_5subtab4_5

no description

Page nameoptional