Difference between revisions of "Template:Tabs"

From Team Fortress Wiki
Jump to: navigation, search
(Undo edit by BerryAVGN (Talk) (3111187))
(Tag: Undo)
m (+ some documentation)
Line 72: Line 72:
 
<!-- Poot translation switching here so that the text inside poot-tabs-showhide says "show;hide" (with this format) in the current language) -->
 
<!-- Poot translation switching here so that the text inside poot-tabs-showhide says "show;hide" (with this format) in the current language) -->
 
<div class="poot-tabs-showhide">show;hide</div>
 
<div class="poot-tabs-showhide">show;hide</div>
</div>
+
</div><noinclude>
 +
{{Doc begin}}
 +
== Parameters ==
 +
; title
 +
: Title of the Tabs
 +
 
 +
; orientation
 +
: Orientation of the tabs/buttons
 +
 
 +
; icon<sub>n</sub>
 +
: Name displayed on the tabs/buttons, replace <sub>n</sub> with a number
 +
 
 +
; content<sub>n</sub>
 +
: Content displayed when clicking on the tabs/buttons, replace <sub>n</sub> with a number
 +
 
 +
== Example ==
 +
<pre>
 +
{{Tabs
 +
| title = Tabs example
 +
| orientation = vertical
 +
| icon1 = Tab #1
 +
| icon2 = Tab #2
 +
| content1 =
 +
Hello Wiki! Look at my cool hat!
 +
<gallery>
 +
File:Engineer Wiki Cap.png
 +
</gallery>
 +
| content2 =
 +
I lost my hat :(
 +
<gallery>
 +
File:Engineerhumiliation
 +
</gallery>
 +
}}
 +
</pre>
 +
generates:
 +
{{Tabs
 +
| title = Tabs example
 +
| orientation = vertical
 +
| icon1 = Tab #1
 +
| icon2 = Tab #2
 +
| content1 =
 +
Hello Wiki! Look at my cool hat!
 +
<gallery>
 +
File:Engineer Wiki Cap.png
 +
</gallery>
 +
| content2 =
 +
I lost my hat :(
 +
<gallery>
 +
File:Engineerhumiliation
 +
</gallery>
 +
}}
 +
</noinclude>

Revision as of 13:45, 8 September 2023

[hide]{{{title}}}
  • {{{icon1}}}
{{{content1}}}
show;hide

Documentation for Tabs

Parameters

title
Title of the Tabs
orientation
Orientation of the tabs/buttons
iconn
Name displayed on the tabs/buttons, replace n with a number
contentn
Content displayed when clicking on the tabs/buttons, replace n with a number

Example

{{Tabs
| title = Tabs example
| orientation = vertical
| icon1 = Tab #1
| icon2 = Tab #2
| content1 =
Hello Wiki! Look at my cool hat!
<gallery>
File:Engineer Wiki Cap.png
</gallery>
| content2 =
I lost my hat :(
<gallery>
File:Engineerhumiliation
</gallery>
}}

generates:

[hide]Tabs example
  • Tab #1
  • Tab #2
Hello Wiki! Look at my cool hat!
I lost my hat :(
show;hide