Template:TabbedWindowBegin: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tag: Reverted |
Fix category name to match MediaWiki:Gadgets-definition Tags: Manual revert Reverted |
||
| Line 1: | Line 1: | ||
<includeonly>[[Category |
<includeonly>[[Category:TabbedWindow.js]]<div class="mw-gadget-tabbedwindow"></includeonly><noinclude> |
||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
||
Revision as of 15:57, 17 October 2024
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!");