Difference between revisions of "Template:Tab"

From Beasts of Bermuda
Jump to: navigation, search
m (1 revision imported)
m (Added some stlying.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><table class="noexcerpt navigation-not-searchable bg3wiki-tabbar {{#ifeq: {{{nodesktop|}}} | yes | nodesktop}}">
+
<includeonly><table class="navigation-tabbar">
<tr>
+
    <tr>
<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{one}}} | bg3wiki-tab-active}}" > [[{{{one}}}|{{{one-name}}}]]</td>
+
        <td class="tab {{#ifeq: {{FULLPAGENAME}} | {{one}} | tab-active}}" > [[{{{one}}}|{{{one-name}}}]]</td>
<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{two}}} | bg3wiki-tab-active}}" > [[{{{two}}}|{{{two-name}}}]]</td>
+
        <td class="tab {{#ifeq: {{FULLPAGENAME}} | {{two}} | tab-active}}" > [[{{{two}}}|{{{two-name}}}]]</td>
{{trim|{{#if: {{{three|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{three}}} | bg3wiki-tab-active}}" > [[{{{three}}}|{{{three-name}}}]]</td>|}}
+
        {{trim| {{#if: {{{three|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{three}}} | tab-active}}" > [[{{{three}}} |{{{three-name}}}]] </td>|}}
{{#if: {{{four|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{four}}} | bg3wiki-tab-active}}" > [[{{{four}}}|{{{four-name}}}]]</td>|}}
+
                {{#if: {{{four|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{four}}} | tab-active}}" > [[{{{four}}} |{{{four-name}}}]] </td>|}}
{{#if: {{{five|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{five}}} | bg3wiki-tab-active}}" > [[{{{five}}}|{{{five-name}}}]]</td>|}}
+
                {{#if: {{{five|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{five}}} | tab-active}}" > [[{{{five}}} |{{{five-name}}}]] </td>|}}
{{#if: {{{six|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{six}}} | bg3wiki-tab-active}}" > [[{{{six}}}|{{{six-name}}}]]</td>|}}
+
                {{#if: {{{six|}}}   |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{six}}}   | tab-active}}" > [[{{{six}}}   |{{{six-name}}}]]   </td>|}}
{{#if: {{{seven|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{seven}}} | bg3wiki-tab-active}}" > [[{{{seven}}}|{{{seven-name}}}]]</td>|}}
+
                {{#if: {{{seven|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{seven}}} | tab-active}}" > [[{{{seven}}} |{{{seven-name}}}]] </td>|}}
{{#if: {{{eight|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{eight}}} | bg3wiki-tab-active}}" > [[{{{eight}}}|{{{eight-name}}}]]</td>|}}
+
                {{#if: {{{eight|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{eight}}} | tab-active}}" > [[{{{eight}}} |{{{eight-name}}}]] </td>|}}
{{#if: {{{nine|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{nine}}} | bg3wiki-tab-active}}" > [[{{{nine}}}|{{{nine-name}}}]]</td>|}}
+
                {{#if: {{{nine|}}} |<td class="tab {{#ifeq: {{FULLPAGENAME}} | {{{nine}}} | tab-active}}" > [[{{{nine}}} |{{{nine-name}}}]] </td>|}}
{{#if: {{{ten|}}}|<td class="bg3wiki-tab {{#ifeq: {{FULLPAGENAME}} | {{{ten}}} | bg3wiki-tab-active}}" > [[{{{ten}}}|{{{ten-name}}}]]</td>|}}}}
+
                {{#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. For a combat shortcut use [[Template:CombatTab]]
+
    <!-- Creates up to ten fake tabs. -->
<pre> {{Tab
+
== Template Definition ==
|one=The Dark Urge
+
This is a template used for creating tabs and tabbars. <br>
|one-name=Story Spoiler Page
+
 
|two=The Dark Urge (Origin)
+
== Template Usage ==
|two-name=Origin Page
+
 
}}</pre>
+
    <pre>  
 +
        {{Tab
 +
        |one=       Acrocanthosaurus
 +
        |one-name=     Acrocanthosaurus
 +
        |two=       Carcharodontosaurus
 +
        |two-name=     Charcharodontosaurus
 +
        }}
 +
    </pre>
 +
 
 
{{Tab
 
{{Tab
|one=Template:Tab
+
|one=       Acrocanthosaurus
|one-name=Story Spoiler Page
+
|one-name=     Chomp-Chomp 1
|two=The Dark Urge (Origin)
+
|two=       Carcharodontosaurus
|two-name=Origin Page
+
|two-name=     Chomp-Chomp 2
 
}}
 
}}
 +
<br>
 +
== ==
 +
Or for longer Tabbars:
  
Or
+
    <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=Spells
+
|one=       page-one
|one-name=Overview
+
|one-name=     one
|two= All spells
+
|two=       page-two
|two-name=All spells
+
|two-name=     two
|three= List of cantrips
+
|three=     page-three
|three-name=Cantrips
+
|three-name=   three
|four= List of 1st level spells
+
|four=     page-four
|four-name=Level 1
+
|four-name=     four
|five= List of 2nd level spells
+
|five=     page-five
|five-name=Level 2
+
|five-name=     five
|six= List of 3rd level spells
+
|six=       page-six
|six-name=Level 3
+
|six-name=     six
|seven= List of 4th level spells
+
|seven=     page-seven
|seven-name=Level 4
+
|seven-name=   seven
|eight= List of 5th level spells
+
|eight=     page-eight
|eight-name=Level 5
+
|eight-name=   eight
|nine= List of 6th level spells
+
|nine=     page-nine
|nine-name=Level 6
+
|nine-name=     nine
 +
|ten=      page-ten
 +
|ten-name=      ten
 
}}
 
}}
  
[[Category:Templates]][[Category:Tab templates]]
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

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
        }}