Editing Template:Tab/doc

From Tears of Themis Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
-->{{tab/end}}</pre>
-->{{tab/end}}</pre>
==Usage==
==Usage==
<div style="background-color:#fff;border:2px black dotted;padding:1em;>
<pre>
<pre>
{{tab/start}}
{{tab/start}}
Line 24: Line 25:
tab content 2
tab content 2
{{tab/end}}
{{tab/end}}
=== Styling tabs ===
{{Tlx|tab/start}} may optionally have inline styles applied to it:<pre>{{tab/start|style=<!-- CSS here -->}}</pre> which will show on both the JavaScript and non-Javascript versions.
{{Tlx|tab/start}} may optionally have inline styles applied to it:<pre>{{tab/start|style=<!-- CSS here -->}}</pre> which will show on both the JavaScript and non-Javascript versions.
<pre>
<pre>
Line 41: Line 40:
tab content 2
tab content 2
{{tab/end}}
{{tab/end}}
=== Setting a default tab ===
By default the first tab will be selected. To override that behavior and select a different tab, the # of the tab to be selected can be passed to {{Tlx|tab/start}} through the 'default' parameter:
<pre>
{{tab/start|default=2}}
{{tab/header|tab name 1}}
tab content 1
{{tab/header|tab name 2}}
tab content 2
{{tab/end}}
</pre>
{{tab/start|default=2}}
{{tab/header|tab name 1}}
tab content 1
{{tab/header|tab name 2}}
tab content 2
{{tab/end}}
=== Nesting tabs ===
Tabs can be nested.
Tabs can be nested.
<pre>{{tab/start}}
<pre>{{tab/start}}
Line 91: Line 71:
tab content 4
tab content 4
{{tab/end}}
{{tab/end}}
{{tab/end}}
{{tab/end}}</div>
{{doc/end}}
{{doc/end}}
Please note that all contributions to Tears of Themis Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Tears of Themis Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)