Template:Tabber/doc: Difference between revisions
Jump to navigation
Jump to search
HyperNervie (talk | contribs) (Created page with "(Caution: This template requires JavaScript codes that haven't been applied site-wide and is not ready for use in articles. See User:HyperNervie/sandbox to learn more.) This template creates a tabber. == Paramenters == * {{param|tab-''n''}} where ''n'' is a positive integer: Content of label #''n''. Unlike <code><tabber></code> provided by Extension:TabberNeue, you can pass any wikitext here - images, HTML tags,...") |
HyperNervie (talk | contribs) No edit summary |
||
| Line 7: | Line 7: | ||
* {{param|content-''n''}} where ''n'' is a positive integer: Content of panel #''n''. | * {{param|content-''n''}} where ''n'' is a positive integer: Content of panel #''n''. | ||
* {{param|shown}}: Index of the tab that is shown at first. If missing or not a positive integer no greater than the number of actual tabs, show the first tab at first. | * {{param|shown}}: Index of the tab that is shown at first. If missing or not a positive integer no greater than the number of actual tabs, show the first tab at first. | ||
* {{param|tab- | * {{param|tab-centered}} and {{param|content-centered}}: Pass a string with any non-space characters to center-align labels and panels respectively. | ||
== Example == | == Example == | ||
| Line 13: | Line 13: | ||
{{tabber | {{tabber | ||
|shown=3 | |shown=3 | ||
|tab-centered=yes | |||
|content-centered=yes | |||
|tab-1=<span title="Rhythm Tengoku">[[File:ConsoleGBA Icon.png|32px|link=]]</span> | |tab-1=<span title="Rhythm Tengoku">[[File:ConsoleGBA Icon.png|32px|link=]]</span> | ||
|content-1=[[File:Prologue GBA The Clappy Trio 2.png|240px]] | |content-1=[[File:Prologue GBA The Clappy Trio 2.png|240px]] | ||
| Line 25: | Line 27: | ||
Creates a tabber as below: | Creates a tabber as below: | ||
{{tabber | {{tabber | ||
|shown=3 | |shown=3 | ||
|tab-centered=yes | |||
|content-centered=yes | |||
|tab-1=<span title="Rhythm Tengoku">[[File:ConsoleGBA Icon.png|32px|link=]]</span> | |tab-1=<span title="Rhythm Tengoku">[[File:ConsoleGBA Icon.png|32px|link=]]</span> | ||
|content-1=[[File:Prologue GBA The Clappy Trio 2.png|240px]] | |content-1=[[File:Prologue GBA The Clappy Trio 2.png|240px]] | ||
Latest revision as of 19:45, 29 August 2025
(Caution: This template requires JavaScript codes that haven't been applied site-wide and is not ready for use in articles. See User:HyperNervie/sandbox to learn more.)
This template creates a tabber.
Paramenters
{{{tab-n}}}where n is a positive integer: Content of label #n. Unlike<tabber>provided by Extension:TabberNeue, you can pass any wikitext here - images, HTML tags, anything that contains "=" (which in<tabber>leads to text before it parsed as tab content and text after it parsed as panel content), etc. Be careful when adding a link to a label: clicking on the link directs you to another page instead of opening the tab.{{{content-n}}}where n is a positive integer: Content of panel #n.{{{shown}}}: Index of the tab that is shown at first. If missing or not a positive integer no greater than the number of actual tabs, show the first tab at first.{{{tab-centered}}}and{{{content-centered}}}: Pass a string with any non-space characters to center-align labels and panels respectively.
Example
{{tabber
|shown=3
|tab-centered=yes
|content-centered=yes
|tab-1=<span title="Rhythm Tengoku">[[File:ConsoleGBA Icon.png|32px|link=]]</span>
|content-1=[[File:Prologue GBA The Clappy Trio 2.png|240px]]
|tab-2=<span title="Rhythm Tengoku (Arcade)">[[File:ConsoleArcade Icon.png|32px|link=]]</span>
|content-2=[[File:Prologue Arcade The Clappy Trio 2.png|240px]]
|tab-3=<span title="Rhythm Heaven Fever">[[File:ConsoleWii Icon.png|32px|link=]]</span>
|content-3=[[File:Prologue Wii The Clappy Trio 2.png|240px]]
|tab-4=<span title="Rhythm Heaven Megamix">[[File:Console3DS Icon.png|32px|link=]]</span>
|content-4=[[File:Prologue 3DS The Clappy Trio 2.png|240px]]
}}
Creates a tabber as below:
