Template:Page tabs: Difference between revisions

From WikiMSK

(Created page with "{{Documentation subpage}} <noinclude>{{Page tabs/tabs|This=2}}Category:Tab Templates</noinclude><includeonly>{{Page tabs/tabs|This=1}} {{Shortcut|Template:Tabs|WP:TABS}}</...")
 
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
<templatestyles src="Template:Page tabs/styles.css" />{{#invoke:page tabs|main}}<noinclude>
<noinclude>{{Page tabs/tabs|This=2}}[[Category:Tab Templates]]</noinclude><includeonly>{{Page tabs/tabs|This=1}}
{{documentation}}
{{Shortcut|Template:Tabs|WP:TABS}}</includeonly>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
{{Lua|Module:Page tabs}}
[[Category:Tab Templates]]</noinclude>
{{TemplateStyles|Template:Page tabs/styles.css}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
This template provides a menu of tabs for linking to different pages. Any number of tabs can be specified.
 
The tab for the current page is indicated by {{para|This}}, with tab numbers starting from 1. Without this parameter, the first tab will be selected.
 
Setting {{para|NOTOC|true}} suppresses the table of contents.
 
This template '''should not''' be used in articles.
 
== Example ==
 
{{Page tabs
| NOTOC = true
| [[User:Example]]
| [[User:Example/Subpage 1]]
| [[User:Example/Subpage 2|Second subpage]]
| [[User:Example/Subpage 3]]
| This = 2
}}
 
<syntaxhighlight lang="moin">
{{Page tabs
| NOTOC = true
| [[User:Example]]
| [[User:Example/Subpage 1]]
| [[User:Example/Subpage 2|Second subpage]]
| [[User:Example/Subpage 3]]
| This = 2
}}
</syntaxhighlight>
 
== See also ==
* {{tl|Tab}}
* {{tl|Start tab}}
* {{tl|End tab}}

Latest revision as of 21:38, 7 May 2022

{{{1}}}
Template documentation[view] [edit] [history] [purge]

Template:Page tabs/tabs Template:Shortcut

Template:TemplateStyles This template provides a menu of tabs for linking to different pages. Any number of tabs can be specified.

The tab for the current page is indicated by |This=, with tab numbers starting from 1. Without this parameter, the first tab will be selected.

Setting |NOTOC=true suppresses the table of contents.

This template should not be used in articles.

Example

{{Page tabs
 | NOTOC = true
 | [[User:Example]]
 | [[User:Example/Subpage 1]]
 | [[User:Example/Subpage 2|Second subpage]]
 | [[User:Example/Subpage 3]]
 | This = 2
}}

See also


<div style="background-color:#Expression error: Unexpected = operator.;">