Jump to content

Template:TabbedWindowBegin

From mediawiki.org
Revision as of 21:28, 13 December 2025 by NguoiDungKhongDinhDanh (talk | contribs) (Reverted edits by Alisiphone (talk) to last version by Pppery)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation

This template is used, together with {{TabbedWindowEnd }}, to create 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 be used in the API, Help, Manual and main namespaces.

Example

[edit]
{{TabbedWindowBegin}}
=== Python ===
<syntaxhighlight lang="Python" line='line'>
print("Hello World!")
</syntaxhighlight>

=== JavaScript ===
<syntaxhighlight lang="javascript" line='line'>
console.log("Hello World!");
</syntaxhighlight>
{{TabbedWindowEnd}}

Python

[edit]
print("Hello World!")

JavaScript

[edit]
console.log("Hello World!");