Tabber is a global Lua module to create mobile-compatible tabbers, like <tabber></tabber>
.
Installation
Usage
Every even argument is used as the tab's title, and its following argument is used as the tab's content. Example:
{{Tabber | Tab 1 | Content of tab 1 | Tab 2 | Content of tab 2 }}
- Tab 1
- Tab 2
Content of tab 1
Content of tab 2
Compared to a regular tabber:
<tabber> Tab 1= Content of tab 1 |-| Tab 2= Content of tab 2 </tabber>
Notes
- Because of the differences in how unnamed and named parameters are treated in wikitext, characters like
=
and|
within the template need to be substituted with the templates{{=}}
and{{!}}
. If you need to use a lot of equals signs (for example, with styles and classes), you can switch to using numbered named parameters instead, e.g.|1=Tab Name|2=Content
.
See also
Text above can be found here (edit)