Difference between revisions of "Template:Tab"

From Beasts of Bermuda
Jump to: navigation, search
m (Added Tab functionality, CSS (Design) is still WIP.)
m (Added some stlying.)
 
Line 14: Line 14:
 
     </table>{{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}||[[Category:{{SUBPAGENAME}} subpages]]}}</includeonly><noinclude>
 
     </table>{{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}||[[Category:{{SUBPAGENAME}} subpages]]}}</includeonly><noinclude>
 
     <!-- Creates up to ten fake tabs. -->  
 
     <!-- Creates up to ten fake tabs. -->  
 +
== Template Definition ==
 
This is a template used for creating tabs and tabbars. <br>
 
This is a template used for creating tabs and tabbars. <br>
Usage
+
 
 +
== Template Usage ==
  
 
     <pre>  
 
     <pre>  
Line 32: Line 34:
 
|two-name=      Chomp-Chomp 2
 
|two-name=      Chomp-Chomp 2
 
}}
 
}}
 
+
<br>
<br>Or for longer Tabbars:
+
== ==
 +
Or for longer Tabbars:
  
 
     <pre>  
 
     <pre>  

Latest revision as of 00:01, 17 November 2024

Template Definition

This is a template used for creating tabs and tabbars.

Template Usage

 
        {{Tab
        |one=       Acrocanthosaurus
        |one-name=      Acrocanthosaurus
        |two=       Carcharodontosaurus
        |two-name=      Charcharodontosaurus
        }}
    



Or for longer Tabbars:

 
        {{Tab
        |one=       page-one
        |one-name=      tab-name-one
        |two=       page-two
        |two-name=      tab-name-two
        |three=     page-three
        |three-name=    tab-name-three
        |four=      page-four
        |four-name=     tab-name-four
        |five=      page-five
        |five-name=     tab-name-five
        |six=       page-six
        |six-name=      tab-name-six
        |seven=     page-seven
        |seven-name=    tab-name-seven
        |eight=     page-eight
        |eight-name=    tab-name-eight
        |nine=      page-nine
        |nine-name=     tab-name-nine
        |ten=       page-ten
        |ten-name=      tab-name-ten
        }}