Template:Infobox/tabber: Difference between revisions

From Nguhcraft Wiki
Jump to navigation Jump to search
(this doesn't work for images but I need to sleep soon also something's weird with the alignment)
 
(wait it did work with images I was just stupid)
Line 4: Line 4:
{{Infobox/above|Testing box}}
{{Infobox/above|Testing box}}
{{Infobox/tabber
{{Infobox/tabber
|name1=Name one|{{Infobox/row|abc|def}}
|label1=Name one|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
|{{Infobox/row|ghi|jkl}}
|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
|name3=Name three|{{Infobox/image|image={{{image2|}}}|caption={{{image-label2|}}}|options=border{{!}}frameless{{!}}128px}}
|label3=Name three|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
|{{Infobox/image|image={{{image2|}}}|caption={{{image-label2|}}}|options=border{{!}}frameless{{!}}128px}}
|{{Infobox/image|image=Slablet_1.png|options=border{{!}}frameless{{!}}128px}}
}}
}}
{{Infobox/row|xyz|uvw}}
{{Infobox/row|xyz|uvw}}
}}
}}
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Revision as of 08:45, 19 December 2024

Testing box
xyzuvw

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}}
}}