Anonymous

Template:Tabber/doc: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 51: Line 51:


  [[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. Do note that this embeds a little line break. Using this 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. Do note that this embeds a little line break. Using this is not required until you notice that something breaks.
Use like so:
{{Tabber
|$containerclass=test
|Tab 1=<dfn>{{</dfn>
{| class="wikitable"
|'''Orange'''
|'''Apple'''
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
<dfn>}}</dfn>
|Tab 2=Content of tab 2
}}
<pre>
<nowiki>{{Tabber
|$containerclass=test
|Tab 1=<dfn>{{</dfn>
{| class="wikitable"
|'''Orange'''
|'''Apple'''
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
<dfn>}}</dfn>
|Tab 2=Content of tab 2
}}</nowiki></pre>