Template:Infobox/tabber: Difference between revisions

From Nguhcraft Wiki
Jump to navigation Jump to search
(wait it did work with images I was just stupid)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude>{{#invoke:Infobox/tabber|generateTabber}}</onlyinclude>
<onlyinclude>{{#invoke:Infobox/tabber|generateTabber}}</onlyinclude>
<noinclude>[[Category:Infobox templates|*]]
<noinclude>[[Category:Infobox templates|*]]
{{Infobox|
{{Infobox/above|Testing box}}
{{Infobox/tabber
|label1=Name one|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
|label3=Name three|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
}}
{{Infobox/row|xyz|uvw}}
}}
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Latest revision as of 10:16, 19 December 2024

Documentation

Tabber Example
uvwxyz
Lots of Tabs

This is a template for making infobox tabbers. Unnamed/number arguments contain the contents of the tabs, and arguments named labelN contain the labels for tabs correspoding to the number N. If a label is not specified, the number is used as a label. Below is an example of an infobox with a tabber in it, as well as stuff outside the tabber:

{{Infobox|
{{Infobox/above|Tabber Example}}
{{Infobox/tabber
|label1=Tab One|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
|label2=Tab Two|{{Infobox/image|image=Slablet_2.png|options=border{{!}}frameless{{!}}128px}}
|label3=Tab Three|{{Infobox/row|abc|def}}
|{{Infobox/row|ghi|jkl}}
}}
{{Infobox/row|uvw|xyz}}
}}