Template:TabbedWindowBegin

From MediaWiki.org
Jump to navigation Jump to search
Template documentation

This template is used, together with {{TabbedWindowEnd}}, to create the a tabbed window interface in documentation, e.g. for code snippets in multiple programming languages. The tabs will be created from the level 3 headings between the start/end templates.

The template relies on Gadget-tabbedwindow.js. It can only be used in the Help and API namespaces.

Example[edit]

{{TabbedWindowBegin}}
=== Python ===
<syntaxhighlight lang="Python" line='line'>
code
</syntaxhighlight>

=== JavaScript ===
<syntaxhighlight lang="javascript" line='line'>
code
</syntaxhighlight>

{{TabbedWindowEnd}}