Template:Tabber/doc: Difference between revisions

no edit summary
No edit summary
Line 27: Line 27:
<pre>
<pre>
{{Tabber
{{Tabber
|$divclass=test
|Orange=Content of tab 1
|Orange=Content of tab 1
|Banana=Content of tab 2
|Banana=Content of tab 2
Line 36: Line 35:
'''Result''':
'''Result''':
{{Tabber
{{Tabber
|$divclass=test
|Orange=Content of tab 1
|Orange=Content of tab 1
|Banana=Content of tab 2
|Banana=Content of tab 2
Line 44: Line 42:


  [[File:Icon - Info.png|20px]]  '''Tip''': Nested tabs are also supported. Using '''tabber-border''' in '''$divclass''' recommended.
  [[File:Icon - Info.png|20px]]  '''Tip''': Nested tabs are also supported. Using '''tabber-border''' in '''$divclass''' recommended.
{{Tabber
 
<pre><nowiki>{{Tabber
|$divclass=tabber-border
|$divclass=tabber-border
|Tab 1=
|Tab 1=
Line 50: Line 49:
|Tab 1=Content of tab 1
|Tab 1=Content of tab 1
|Tab 2=Content of tab 2
|Tab 2=Content of tab 2
|Tab 3=Content of tab 3
|Tab 4=Content of tab 4
}}
}}
|Tab 2=Content of tab 2
|Tab 2=Content of tab 2
|Tab 3=
}}</nowiki></pre>
'''Result:'''
 
{{Tabber
|$divclass=tabber-border
|Tab 1=
{{Tabber
{{Tabber
|Tab 1=Content of tab 1
|Tab 1=Content of tab 1
|Tab 2=Content of tab 2
|Tab 2=Content of tab 2
|Tab 3=Content of tab 3
|Tab 4=Content of tab 4
}}
}}
|Tab 4=Content of tab 4
|Tab 2=Content of tab 2
}}
}}


  [[File:Icon - Warning.png|20px]]  '''Warning''': Templates do not work well with tables and other templates, but there is a workaround for that. Before providing the parameter's value that contains MediaWiki markup, use <code><nowiki><dfn>{{</dfn></nowiki></code> and insert <code><nowiki><dfn>}}</dfn></nowiki></code> at the end of the parameter's value. Using it is not required until you notice that something breaks.
  [[File:Icon - Warning.png|20px]]  '''Warning''': Templates do not work well with tables and other templates, but there is a workaround for that. Before providing the parameter's value that contains MediaWiki markup, use <code><nowiki><dfn>{{</dfn></nowiki></code> and insert <code><nowiki><dfn>}}</dfn></nowiki></code> at the end of the parameter's value. Using it is not required until you notice that something breaks.
Use like so:
Use like so:
{{Tabber
|$divclass=test
|Tab 1=<dfn>{{</dfn>
{| class="wikitable"
|'''Orange'''
|'''Apple'''
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
<dfn>}}</dfn>
|Tab 2=Content of tab 2
}}


<pre>
<pre>
<nowiki>{{Tabber
<nowiki>{{Tabber
|$divclass=test
|$divclass=tabber-vertical
|Tab 1=<dfn>{{</dfn>
|Tab 1=<dfn>{{</dfn>
{| class="wikitable"
{| class="wikitable"
Line 101: Line 85:
}}</nowiki></pre>
}}</nowiki></pre>


[[File:Icon - Info.png|20px]]  '''Tip''': You can also generate vertical tabs, as well as give them design similar to the in-game one. Use '''tabber-vertical''' and '''fancy''' classes with '''$divclass''' parameter.
'''Result:'''


{{Tabber
{{Tabber
|$divclass=tabber-vertical fancy
|$divclass=tabber-vertical
|Tab 1=<dfn>{{</dfn>
|Tab 1=<dfn>{{</dfn>
{| class="wikitable"
{| class="wikitable"
Line 117: Line 101:
|}
|}
<dfn>}}</dfn>
<dfn>}}</dfn>
|Tab 2=<dfn>{{</dfn>
|Tab 2=Content of tab 2
}}
 
[[File:Icon - Info.png|20px]]  '''Tip''': You can also style tabs with a similar design to the one that appears in-game when setting the '''$divclass''' parameter to '''fancy'''. Also recommended: '''tabber-vertical'''.
<pre><nowiki>{{Tabber
|$divclass=tabber-vertical fancy
|Latin=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|Fruits=<dfn>{{</dfn>
{| class="wikitable"
{| class="wikitable"
|'''Orange'''
|'''Orange'''
Line 129: Line 120:
|}
|}
<dfn>}}</dfn>
<dfn>}}</dfn>
|Tab 3=<dfn>{{</dfn>
}}</nowiki></pre>
 
'''Result:'''
 
{{Tabber
|$divclass=tabber-vertical fancy
|Latin=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|Fruits=<dfn>{{</dfn>
{| class="wikitable"
{| class="wikitable"
|'''Orange'''
|'''Orange'''
|'''Apple'''
|'''Apple'''
|-
|-
|Bread
|Apple
|Pie
|Grapes
|-
|-
|Butter
|Avocado
|Ice cream
|Pineapples
|}
|}
<dfn>}}</dfn>
<dfn>}}</dfn>
}}
}}
ElEditors
8,317

edits