Template:Subtabs: Difference between revisions

From Medalist Wiki
(realigned tab 1 to be the same as the other tab #s)
mNo edit summary
Line 3: Line 3:
{{#tag:tabber|
{{#tag:tabber|
<!-- Tab 1 -->
<!-- Tab 1 -->
{{#if: {{{tab1-content1|<noinclude>tab1-content1</noinclude>}}}|{{!}}-{{!}}{{{tab1-label|Tab 1}}}=
{{#if: {{{tab1-content1|<noinclude>tab1-content1</noinclude>}}}|{{{tab1-label|Tab 1}}}=
{{#if:{{{tab1-content2|}}}{{{tab1-content3|}}}{{{tab1-content4|}}}{{{tab1-content5|}}}{{{tab1-content6|}}}{{{tab1-content7|}}}{{{tab1-content8|}}}|
{{#if:{{{tab1-content2|}}}{{{tab1-content3|}}}{{{tab1-content4|}}}{{{tab1-content5|}}}{{{tab1-content6|}}}{{{tab1-content7|}}}{{{tab1-content8|}}}|
<!-- Tab 1 if it has multiple subtabs --> {{#tag:tabber|
<!-- Tab 1 if it has multiple subtabs --> {{#tag:tabber|

Revision as of 08:43, 16 February 2025

This is a basic template for nested tabs for use in this wiki. It allows for up to five main tabs, and eight subtabs per each of those main tab. This is primarily used by infoboxes.
The following code produces the following Subtabs template.

{{Subtabs
|tab1-label = Testing tab 1
|tab1-content1-label= Content 1-1
|tab1-content1= Content 1 is this... I don't really know what to say, really.
|tab1-content2-label= Content 1-2
|tab1-content2= Hello!
|tab1-content3-label= Content 1-3
|tab1-content3= Again, not sure what to say.
|tab2-label = Testing tab 2
|tab2-content1-label= Content 2-1
|tab2-content1= Hello there
|tab2-content2-label= Content 2-2
|tab2-content2= General Kenobi
|tab2-content3-label= Content 2-3
|tab2-content3= Can someone else put some placeholder text here? jeez
}}