Template:Tab: Difference between revisions

From Pixar Cars Wiki
Jump to navigation Jump to search
RodRedlineM1
RodRedlineM1 (talk | contribs) (Created page with "<div style="font-weight:bold; text-align:center; margin:0 0 10px 0; border-bottom:1px solid #ccc"> {{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}| <!-- main page --> <div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px"> <table style="height:100%;width:100%;"><tr> <td style="vertical-align:center; c...")
 
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="font-weight:bold; text-align:center; margin:0 0 10px 0; border-bottom:1px solid #ccc">
<div class="tab" style="font-weight:bold; text-align:center; margin:0 0 10px 0; border-bottom:1px solid #ccc">
{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}| <!-- main page -->
{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}| <!-- main page -->
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
Line 5: Line 5:
<td style="vertical-align:center; color:white">{{{tab1}}}</td></tr></table></div>
<td style="vertical-align:center; color:white">{{{tab1}}}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" id="t-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}{{!}}{{{tab1}}}]]</font></td>
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}{{!}}{{{tab1}}}]]</td>
</tr></table></div>
</tr></table></div>
}}{{#if:{{{tab2| }}}|
}}{{#if:{{{tab2| }}}|
Line 13: Line 13:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title2| }}}|{{{title2}}}|{{{tab2}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title2| }}}|{{{title2}}}|{{{tab2}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab2}}}{{!}}{{#if:{{{title2| }}}|{{{title2}}}|{{{tab2}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab2}}}{{!}}{{#if:{{{title2| }}}|{{{title2}}}|{{{tab2}}} }}]]</td>
</font></td>
</tr></table></div>
</tr></table></div>
}}
}}
Line 25: Line 24:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title3| }}}|{{{title3}}}|{{{tab3}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title3| }}}|{{{title3}}}|{{{tab3}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab3}}}{{!}}{{#if:{{{title3| }}}|{{{title3}}}|{{{tab3}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab3}}}{{!}}{{#if:{{{title3| }}}|{{{title3}}}|{{{tab3}}} }}]]
</font></td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
Line 37: Line 36:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title4| }}}|{{{title4}}}|{{{tab4}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title4| }}}|{{{title4}}}|{{{tab4}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab4}}}{{!}}{{#if:{{{title4| }}}|{{{title4}}}|{{{tab4}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab4}}}{{!}}{{#if:{{{title4| }}}|{{{title4}}}|{{{tab4}}} }}]]
</font></td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
Line 49: Line 48:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title5| }}}|{{{title5}}}|{{{tab5}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title5| }}}|{{{title5}}}|{{{tab5}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab5}}}{{!}}{{#if:{{{title4| }}}|{{{title5}}}|{{{tab5}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab5}}}{{!}}{{#if:{{{title4| }}}|{{{title5}}}|{{{tab5}}} }}]]
</font></td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
Line 61: Line 60:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title6| }}}|{{{title6}}}|{{{tab6}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title6| }}}|{{{title6}}}|{{{tab6}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab6}}}{{!}}{{#if:{{{title6| }}}|{{{title6}}}|{{{tab6}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab6}}}{{!}}{{#if:{{{title6| }}}|{{{title6}}}|{{{tab6}}} }}]]
</font></td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
Line 73: Line 72:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title7| }}}|{{{title7}}}|{{{tab7}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title7| }}}|{{{title7}}}|{{{tab7}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab7}}}{{!}}{{#if:{{{title7| }}}|{{{title7}}}|{{{tab7}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab7}}}{{!}}{{#if:{{{title7| }}}|{{{title7}}}|{{{tab7}}} }}]]
</font></td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
Line 85: Line 84:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title8| }}}|{{{title8}}}|{{{tab8}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title8| }}}|{{{title8}}}|{{{tab8}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab8}}}{{!}}{{#if:{{{title8| }}}|{{{title8}}}|{{{tab8}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab8}}}{{!}}{{#if:{{{title8| }}}|{{{title8}}}|{{{tab8}}} }}]]
</font></td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
Line 97: Line 96:
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">{{#if:{{{title9| }}}|{{{title9}}}|{{{tab9}}} }}</font></td></tr></table></div>
<td style="vertical-align:center; color:white">{{#if:{{{title9| }}}|{{{title9}}}|{{{tab9}}} }}</td></tr></table></div>
|
|
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<div class="tab-top" style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1px solid #ccc; margin-bottom:-1px; background:#9C1A18; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px">
<table style="height:100%;width:100%;"><tr>
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;"><font face="Flange">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab9}}}{{!}}{{#if:{{{title9| }}}|{{{title9}}}|{{{tab9}}} }}]]
<td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{tab9}}}{{!}}{{#if:{{{title9| }}}|{{{title9}}}|{{{tab9}}} }}]]
</font></td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
}}<br style="clear:both;" /></div><noinclude>
}}<div class="desktop-only"><br style="clear:both;" /></div></div><noinclude>
[[Category:Formatting tempplates]]
 
==Documentation==
This is used at the very top of articles, to provide easy navigation between any sub-pages that exist for it.
 
Parameters example (up to 9)
<pre>{{tab|tab1=|tab2=|tab3=}}</pre>
<code>tab1=</code> will always link to the base article page: Therefore, the text you input determines only what the link text will say. For all other parameters, the inputted text must match the existing sub-page you wish to link to. For instance, if wanting to link to [[Doug Crankel/Merchandise]], add <code>|tab2=Merchandise</code>.
 
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 23:42, 7 April 2024

{{{tab1}}}

Documentation

This is used at the very top of articles, to provide easy navigation between any sub-pages that exist for it.

Parameters example (up to 9)

{{tab|tab1=|tab2=|tab3=}}

tab1= will always link to the base article page: Therefore, the text you input determines only what the link text will say. For all other parameters, the inputted text must match the existing sub-page you wish to link to. For instance, if wanting to link to Doug Crankel/Merchandise, add |tab2=Merchandise.