Difference between revisions of "Template:Tabbed infobox/doc"

From Underrail Wiki
Jump to navigation Jump to search
(template documentation)
 
Line 6: Line 6:
 
<pre>
 
<pre>
 
{{Tabbed infobox
 
{{Tabbed infobox
| tab1 = Name for first example
+
| tab1 = Name for first tab
| tab2 = Name for second example
+
| tab2 = Name for second tab
| tab3 =
+
| tab3 =  
| tab4 =
+
| tab4 =  
| tab5 =
+
| tab5 =  
| tab6 =
+
| tab6 =  
| tab7 =
+
| tab7 =  
| tab8 =
+
| tab8 =  
 
}}</pre>
 
}}</pre>
  
And so on. Up to 8 tabs are supported for now. Leave the ones you don't need empty.
+
And so on. Up to '''16''' tabs are supported, but keep in mind that many tabs with long names won't fit in the space above infobox.
  
; Creating new examples
+
; Creating new tabs
 
: Once you have a page with {{t|Tabbed infobox}} saved/previewed, use the red links to create the new examples. Simply add the infobox (nothing else!) to the example page.
 
: Once you have a page with {{t|Tabbed infobox}} saved/previewed, use the red links to create the new examples. Simply add the infobox (nothing else!) to the example page.
  
; Editing existing examples
+
; Editing existing tabs
 
: Use the v-d-e (view-discuss-edit) links at the top right corner of the tabbed infoboxes to edit existing examples.
 
: Use the v-d-e (view-discuss-edit) links at the top right corner of the tabbed infoboxes to edit existing examples.
  
 
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 10:41, 10 May 2015

Description

This template is used for making tabbed interface for infoboxes. Useful for multiple examples of items or other things without cluttering the page.

Syntax

Insert this template using

{{Tabbed infobox
| tab1 = Name for first tab
| tab2 = Name for second tab
| tab3 = 
| tab4 = 
| tab5 = 
| tab6 = 
| tab7 = 
| tab8 = 
}}

And so on. Up to 16 tabs are supported, but keep in mind that many tabs with long names won't fit in the space above infobox.

Creating new tabs
Once you have a page with {{Tabbed infobox}} saved/previewed, use the red links to create the new examples. Simply add the infobox (nothing else!) to the example page.
Editing existing tabs
Use the v-d-e (view-discuss-edit) links at the top right corner of the tabbed infoboxes to edit existing examples.