Difference between revisions of "Template:Tab1"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m (Move width to CSS and convert to em (1em=16px; 200/16=12.5) (1em=16px; 16/3=0.1875); make border ccc; add webkit radius)
m (→‎Usage: Corrected code error in example code.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>| style="-moz-border-radius-topleft: .8em; -moz-border-radius-topright: .8em; -webkit-border-top-right-radius: .8em; border:solid 2px #ccc; border-bottom:0; font-weight:bold; line-height:0.95em; padding: .5em; width: 12.5em" | {{{1|Tab 1}}}
<includeonly>| style="border: solid 2px #CCC; border-bottom: 0; font-weight: bold; line-height: .95em; padding: .5em; width: 12.5em; -moz-border-radius-topleft: .8em; -moz-border-radius-topright: .8em; -webkit-border-top-right-radius: .8em;" | {{{1 |Tab 1}}}
| style="border-bottom:2px solid #ccc; width: .1875;"  | &nbsp;</includeonly><noinclude>
| style="border-bottom: 2px solid #CCC; width: .1875;"  | &nbsp;</includeonly><noinclude>
<br clear="all">
 
==Usage==
== Usage ==
To create a set of tabs, use these four elements. Keep the page tabs in the same order on all pages and use "Tab1" for the current page.
To create a set of tabs, use these four elements. Keep the page tabs in the same order on all pages and use "Tab1" for the current page.


{{[[Template:TabsTop]]}}<br>
{{[[Template:TabsTop |TabsTop]]}}<br />
{{[[Template:Tab1]]|Current page name}}<br>
<nowiki>{{Tab1 |Current page name}}</nowiki><br />
{{[[Template:Tab2]]|Other page name(s)}}<br>
{{[[Template:Tab2 |Tab2]] |Other page name(s)}}<br />
{{[[Template:TabsBottom]]}}
{{[[Template:TabsBottom |TabsBottom]]}}
 
[[Category:Templates]]
 
</noinclude>
</noinclude>

Latest revision as of 21:56, 3 January 2015


Usage

To create a set of tabs, use these four elements. Keep the page tabs in the same order on all pages and use "Tab1" for the current page.

{{TabsTop}}
{{Tab1 |Current page name}}
{{Tab2 |Other page name(s)}}
{{TabsBottom}}