Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:DisambigTab: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
m →‎Styling: + g80 in the org list
Joe Beaudoin Jr. (talk | contribs)
mNo edit summary
Line 49: Line 49:
[[Category:Battlestar Wiki Templates]]
[[Category:Battlestar Wiki Templates]]
</noinclude>
</noinclude>
<includeonly>{{disambig}}{{clear}}&nbsp;
<includeonly>{{disambig}}__NOEDITSECTION__{{clear}}&nbsp;
{{#tag:tabber|{{#fornumargs: number|value|{{#var:value}}={{:{{#var:value}}}}{{!}}-{{!}}}}}}
{{#tag:tabber|{{#fornumargs: number|value|{{#var:value}}={{:{{#var:value}}}}{{!}}-{{!}}}}}}
For direct navigation sans the tabbed navigational aid above, please select one of the following article links:
For direct navigation sans the tabbed navigational aid above, please select one of the following article links:
<ul>
<ul>
{{#fornumargs: number|value|<li>[[{{#var:value}}]]</li>}}
{{#fornumargs: number|value|<li>[[{{#var:value}}]]</li>}}
</ul>__NOEDITSECTION__
</ul>
</includeonly>
</includeonly>

Revision as of 00:56, 9 January 2023

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.

Documentation[edit]

{{DisambigTab|article|article2|article3}}

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

Example[edit]

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

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

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.