Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:TabbedWindowBegin/doc: Difference between revisions

Template page
mediawiki>Tactica
m Typos.
 
m 1 revision imported
 
(No difference)

Latest revision as of 20:28, 16 January 2025

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

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

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

Python

print("Hello World!")

JavaScript

console.log("Hello World!");
MediaWiki Appliance - Powered by TurnKey Linux