Template:Tab: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(I wanted to both simplify this so there is only one opener for going right and one for general use as well as have infobox widths be explicitly defined in pages so it's transparent where the width is coming from in all cases)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}
|right-o=<div class="tabber goright" style="width:{{{2|auto}}}">
|o-right=<div class="tabber goright" style="width:{{{2|auto}}}">
|o-right=<div class="tabber goright" style="width:{{{2|auto}}}">
|o=<div class="tabber" style="width:{{{2|auto}}}">
|o=<div class="tabber" style="width:{{{2|auto}}}">

Revision as of 08:04, 11 March 2019

Usage

Openers

  • {{tab|o-right}} - Used to create a tab box that floats to the right.
    • If the tab box contains an infobox, it's preferred to define the tab box width as the first parameter, e.g. {{tab|o-right|250px}}. The infobox will automatically fill the width of the tab box.
  • {{tab|o}} - Used to create a general tab box that doesn't float, or a tab box contained within another tab box (even if it floats right).

Tabs

  • {{tab|Tab Name}} - Used to start a new tab.

Closers

  • {{tab|c}} - Used to close each tab as well as the entire tab box.

Example

Elder Sign: Core Set

Elder Sign: Unseen Forces

Call of Cthulhu

{{tab|o-right}}
{{tab|Elder Sign}}
{{tab|o}}
{{tab|Core Set}}
Elder Sign: Core Set
{{tab|c}}
{{tab|Unseen Forces}}
Elder Sign: Unseen Forces
{{tab|c}}
{{tab|c}}
{{tab|c}}
{{tab|Call of Cthulhu}}
Call of Cthulhu
{{tab|c}}
{{tab|c}}