Difference between revisions of "Template:Tab"
m (1 revision imported) |
m (Added Tab functionality, CSS (Design) is still WIP.) |
||
Line 1: | Line 1: | ||
− | <includeonly><table class=" | + | <includeonly><table class="navigation-tabbar"> |
− | <tr> | + | <tr> |
− | <td class=" | + | <td class="tab {{#ifeq: {{FULLPAGENAME}} | {{one}} | tab-active}}" > [[{{{one}}}|{{{one-name}}}]]</td> |
− | <td class=" | + | <td class="tab {{#ifeq: {{FULLPAGENAME}} | {{two}} | tab-active}}" > [[{{{two}}}|{{{two-name}}}]]</td> |
− | {{trim|{{#if: {{{three|}}}|<td class=" | + | {{trim| {{#if: {{{three|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{three}}} | tab-active}}" > [[{{{three}}} |{{{three-name}}}]] </td>|}} |
− | {{#if: {{{four|}}}|<td class=" | + | {{#if: {{{four|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{four}}} | tab-active}}" > [[{{{four}}} |{{{four-name}}}]] </td>|}} |
− | {{#if: {{{five|}}}|<td class=" | + | {{#if: {{{five|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{five}}} | tab-active}}" > [[{{{five}}} |{{{five-name}}}]] </td>|}} |
− | {{#if: {{{six|}}}|<td class=" | + | {{#if: {{{six|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{six}}} | tab-active}}" > [[{{{six}}} |{{{six-name}}}]] </td>|}} |
− | {{#if: {{{seven|}}}|<td class=" | + | {{#if: {{{seven|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{seven}}} | tab-active}}" > [[{{{seven}}} |{{{seven-name}}}]] </td>|}} |
− | {{#if: {{{eight|}}}|<td class=" | + | {{#if: {{{eight|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{eight}}} | tab-active}}" > [[{{{eight}}} |{{{eight-name}}}]] </td>|}} |
− | {{#if: {{{nine|}}}|<td class=" | + | {{#if: {{{nine|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{nine}}} | tab-active}}" > [[{{{nine}}} |{{{nine-name}}}]] </td>|}} |
− | {{#if: {{{ten|}}}|<td class=" | + | {{#if: {{{ten|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{ten}}} | tab-active}}" > [[{{{ten}}} |{{{ten-name}}}]] </td>|}}}} |
− | </tr> | + | </tr> |
− | </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. --> |
− | <pre> {{Tab | + | This is a template used for creating tabs and tabbars. <br> |
− | + | Usage: | |
− | + | ||
− | + | <pre> | |
− | + | {{Tab | |
− | + | |one= Acrocanthosaurus | |
+ | |one-name= Acrocanthosaurus | ||
+ | |two= Carcharodontosaurus | ||
+ | |two-name= Charcharodontosaurus | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
{{Tab | {{Tab | ||
− | |one= | + | |one= Acrocanthosaurus |
− | |one-name= | + | |one-name= Chomp-Chomp 1 |
− | |two= | + | |two= Carcharodontosaurus |
− | |two-name= | + | |two-name= Chomp-Chomp 2 |
}} | }} | ||
− | Or | + | <br>Or for longer Tabbars: |
+ | |||
+ | <pre> | ||
+ | {{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 | ||
+ | }} | ||
+ | </pre><br> | ||
{{Tab | {{Tab | ||
− | |one= | + | |one= page-one |
− | |one-name= | + | |one-name= one |
− | |two= | + | |two= page-two |
− | |two-name= | + | |two-name= two |
− | |three= | + | |three= page-three |
− | |three-name= | + | |three-name= three |
− | |four= | + | |four= page-four |
− | |four-name= | + | |four-name= four |
− | |five= | + | |five= page-five |
− | |five-name= | + | |five-name= five |
− | |six= | + | |six= page-six |
− | |six-name= | + | |six-name= six |
− | |seven= | + | |seven= page-seven |
− | |seven-name= | + | |seven-name= seven |
− | |eight= | + | |eight= page-eight |
− | |eight-name= | + | |eight-name= eight |
− | |nine= | + | |nine= page-nine |
− | |nine-name= | + | |nine-name= nine |
+ | |ten= page-ten | ||
+ | |ten-name= ten | ||
}} | }} | ||
− | [[Category:Templates | + | [[Category:Templates]] |
</noinclude> | </noinclude> |
Revision as of 22:55, 16 November 2024
This is a template used for creating tabs and tabbars.
Usage:
{{Tab |one= Acrocanthosaurus |one-name= Acrocanthosaurus |two= Carcharodontosaurus |two-name= Charcharodontosaurus }}
Chomp-Chomp 1 | Chomp-Chomp 2 |
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 }}
one | two | three | four | five | six | seven | eight | nine | ten |