Template:Tab: Difference between revisions
From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Adding float left since there are some cases of that on the wiki for this template to be able to replace them) |
No edit summary |
||
Line 14: | Line 14: | ||
===Tabs=== | ===Tabs=== | ||
*'''<code><nowiki>{{tab|Tab Name}}</nowiki></code>''' - Used to start a new tab, with the tab name as the | *'''<code><nowiki>{{tab|Tab Name}}</nowiki></code>''' - 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. <code><nowiki>{{tab|Tab Name|grey}}</nowiki></code>. | |||
===Closers=== | ===Closers=== | ||
*'''<code><nowiki>{{tab|c}}</nowiki></code>''' - Used to close each tab as well as the entire tab box. | *'''<code><nowiki>{{tab|c}}</nowiki></code>''' - Used to close each tab, as well as the entire tab box. | ||
==Example== | ==Example== |
Revision as of 08:40, 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 an additional parameter, e.g.
{{tab|o-right|250px}}
. The infobox will automatically fill the width of the tab box.
- If the tab box contains an infobox, it's preferred to define the tab box width as an additional parameter, e.g.
{{tab|o-left}}
- Used to create a tab box that floats to the left. If you don't want the page content to appear to the right of the tab box, use the general opener below.{{tab|o}}
- Used to create a general tab box that doesn't float, or a tab box contained within another tab box (whether it floats or not).
Tabs
{{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
{{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}}