Difference between revisions of "Template:Tabs"
(Tag: Undo) |
GrampaSwood (talk | contribs) 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
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: