Difference between revisions of "User:SciWhiz12/sandbox/codetabs"

(remove errant closing brace)
(try the tabs tag)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<tabs>
 
<tabs>
{{#if:{{{java|{{{1|}}}}}}|<tab name="Java">{{{java|{{{1|}}}}}}</tab>|}}
+
{{#if:{{{java|}}}|{{#tab:Java|{{{java|}}}}}}}
{{#if:{{{groovy|}}}|<tab name="Groovy">{{{groovy}}}</tab>|}}
+
{{#if:{{{groovy|}}}|{{#tab:Groovy|{{{groovy|}}}}}}}
{{#if:{{{kotlin|}}}|<tab name="Kotlin">{{{kotlin}}}</tab>|}}
+
{{#if:{{{kotlin|}}}|{#tab:Kotlin|{{{kotlin|}}}}}}}
{{#if:{{{scala|}}}|<tab name="Scala">{{{scala}}}</tab>|}}
+
{{#if:{{{scala|}}}|{{#tab:Scala|{{{scala|}}}}}}}
 
</tabs>
 
</tabs>
 +
 +
<tabs>
 +
{{#if:{{{java|}}}|{{#tag:tab|{{{java|''Empty Java tab contents...''}}}|name=Java|nested=true|index=1}}}}
 +
{{#if:{{{groovy|}}}|{{#tag:tab|{{{groovy|''Empty Groovy tab contents...''}}}|name=Groovy|nested=true|index=2}}}}
 +
{{#if:{{{kotlin|}}}|{{#tag:tab|{{{kotlin|''Empty Kotlin tab contents...''}}}|name=Kotlin|nested=true|index=3}}}}
 +
{{#if:{{{scala|}}}|{{#tag:tab|{{{scala|''Empty Scala tab contents...''}}}|name=Scala|nested=true|index=4}}}}
 +
</tabs>
 +
 +
{{#tag:tabs|
 +
{{#tag:tab|Foo|name={{{1|}}}}}
 +
{{#tab:{{{2|}}}|Bar}}
 +
|style=color:{{#if:{{{1|}}}|green|red}} }}

Latest revision as of 17:43, 7 April 2021


}}



Foo
Bar