Template:Tab: Difference between revisions
From Equestripedia, the Archives of Equestria!
Content added Content deleted
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:2px solid #4D4180; margin-bottom:-2px; border-radius:6px 6px 0 0; -moz-border-radius:6px 6px 0 0; padding: 3px"> |
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:2px solid #4D4180; margin-bottom:-2px; 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;">[[{{NAMESPACE}}:{{BASEPAGENAME}}{{!}}{{{tab 1}}}]]</td> |
<td style="vertical-align:center;">{{{base page|[[{{NAMESPACE}}:{{BASEPAGENAME}}{{!}}{{{tab 1}}}]]</td> |
||
</tr></table></div> |
</tr></table></div> |
||
}}{{#if:{{{tab 2| }}}| |
}}{{#if:{{{tab 2| }}}| |
Revision as of 06:47, 11 February 2020
{{#ifeq:Tab|Tab|
{{{tab 1}}} |
|
{Template:Base page
This template can be used as it is to display tabs in the subpages of an article, but it's recommended to create another template to easily modify it if necessary.
{{Tab|tab1=Main page|tab2=Gallery}}
All parameters, except tab1, are optional. |