Template:Tab: Difference between revisions
From Pixar Cars Wiki
no edit summary
RodRedlineM1 (talk | contribs) |
RodRedlineM1 (talk | contribs) |
||
(9 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; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}{{!}}{{{tab1}}}]]</td> | <td style="vertical-align:center; color:white">[[{{NAMESPACE}}:{{BASEPAGENAME}}{{!}}{{{tab1}}}]]</td> | ||
Line 104: | Line 104: | ||
</tr></table></div> | </tr></table></div> | ||
}} | }} | ||
}}<br style="clear:both;" /></div><noinclude> | }}<div class="desktop-only"><br style="clear:both;" /></div></div><noinclude> | ||
==Documentation== | ==Documentation== |