Template:TabsHeader

From comp.tf
Revision as of 14:27, 18 August 2014 by Muriloricci (talk | contribs) (Created page with "{{Tabs |[[{{{link1}}}|{{{name1}}}]] |{{#ifeq: {{{name2|}}}||| [[{{{link2}}}|{{{name2}}}]] }} |{{#ifeq: {{{name3|}}}||| [[{{{link3}}}|{{{name3}}}]] }} |{{#ifeq: {{{name4|}}}|||...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[[{{{link1}}}|{{{name1}}}]]    

This page is used to make the tabs consistent on all pages. To understand how to do this directly, see any of the following:

(view - edit) Documentation

Usage

{{TabsHeader
|name1=
|link1=
|name2=
|link2=
|This=
}}

Varibles:

  • |name1= name of the 1st tab. Use   if you want the name to be one line
  • |link1= 1st tab's page goes here
  • |name2= name of the 2nd tab. Use   if you want the name to be one line
  • |link2= 2nd tab's page goes here
  • |This=

Add more name# and link# for more tabs.

Example

{{TabsHeader
|name1=Overview
|link1=GIGABYTE_Cup
|name2=Season 1
|link2=GIGABYTE_Cup/Season_1
|name3=Season 2
|link3=GIGABYTE_Cup/Season_2
|This=3}}

*Used with  


Will look like this:


Overview   Season 1   Season 2    
{{TabsHeader
|name1=Overview
|link1=GIGABYTE_Cup
|name2=Season 1
|link2=GIGABYTE_Cup/Season_1
|name3=Season 2
|link3=GIGABYTE_Cup/Season_2
|This=3}}

*Used without  

Will look like this:


Overview   Season 1   Season 2    

To use this page, set This=n where n is the tab number of the page that calls this macro, e.g This=5 or This=8