Template:Tab
From Kolapedia
Jump to navigationJump to search
Usage[edit source]
The original template is from the Kingdom Hearts Wiki
Openers[edit source]
{{tab|o}}
- Used to create a general tab box that doesn't float, or any tab box contained within another tab box (whether it floats or not).{{tab|o-info}}
- Used to create a tab box with special infobox treatment. Floats to the right with a default width of 250px.- The width can be changed by adding an extra parameter, e.g.
{{tab|o-info|360px}}
. The infobox will automatically fill the width of the tab box.
- The width can be changed by adding an extra parameter, e.g.
{{tab|o-char}}
- Used to create a tab box with special infobox treatment. Floats to the right with a default width of 360px.{{tab|o-left}}
- Used to create a tab box that floats to the left. If you don't want the page content to go next to the tab box, use{{tab|o}}
.{{tab|o-right}}
- Used to create a tab box that floats to the right.{{tab|o-center}}
- Used to create a tab box centered on the page.
Tabs[edit source]
{{tab|Tab Name}}
- Used to start a new tab, with the tab name as the first parameter.- The tab's background color can changed with an optional second parameter, e.g.
{{tab|Tab Name|grey}}
.
- The tab's background color can changed with an optional second parameter, e.g.
Closers[edit source]
{{tab|c}}
- Used to close each tab, as well as the entire tab box.
Example[edit source]
{{#switch:o-right
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:Foo
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:o
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:bar
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} Lorem ipsum {{#switch:c
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:test
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} Lorem ipsum {{#switch:c
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:c
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:c
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:hello
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} Lorem ipsum {{#switch:c
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}} {{#switch:c
|o=
|o-info=
|o-char=
|o-left=
|o-right=
|o-center=
|c=
|#default=}}
{{tab|o-right}} {{tab|Foo}} {{tab|o}} {{tab|bar}} Lorem ipsum {{tab|c}} {{tab|test|yellow}} Lorem ipsum {{tab|c}} {{tab|c}} {{tab|c}} {{tab|hello}} Lorem ipsum {{tab|c}} {{tab|c}}