Template:Navbox with collapsible groups: Difference between revisions

From Vigyanwiki
Template>Pomte
(allow for standard state param; standardize title bar size; increase content padding for readability)
Template>Ms2ger
m (titlefontcolor; cleanup)
Line 1: Line 1:
{| class="navbox collapsible {{{start|{{{state|}}}}}} nowraplinks" style="clear:both; width:100%; margin:auto;"
{| class="navbox collapsible {{{start|{{{state|}}}}}} nowraplinks" style="clear:both; width:100%; margin:auto;"
! {{#if:{{{image|}}}|colspan="2"}} style="background-color:{{{titlebgcolor|#ccf}}};" | <div style="float:left; width:6em; text-align:left;">{{Tnavbar|{{{name<noinclude>|Navigation with collapsible groups</noinclude>}}}|nodiv=1|mini=1|fontcolor={{{titlefontcolor|}}}}}</div><span style="font-size:1.1em;">{{#if:{{{titlefontcolor|}}}|<font color="{{{titlefontcolor|}}}">{{{title}}}</font>|{{{title}}} }}</span>
! {{#if:{{{image|}}}|colspan="2"}} style="background-color:{{{titlebgcolor|#ccf}}}; {{#if:{{{titlefontcolor|}}}|color:{{{titlefontcolor|}}};}}" | <div style="float:left; width:6em; text-align:left;">{{Tnavbar|{{{name<noinclude>|Navigation with collapsible groups</noinclude>}}}|nodiv=1|mini=1|fontcolor={{{titlefontcolor|}}}}}</div><span style="font-size:1.1em;">{{#if:{{{titlefontcolor|}}}|<font color="{{{titlefontcolor|}}}">{{{title}}}</font>|{{{title}}} }}</span>
|-
|-
{{#if:{{{image|}}}|{{!}} width="100" valign="middle" {{!}} {{{image}}} }}
{{#if:{{{image|}}}|{{!}} style="width:100px; vertical-align:middle;" {{!}} {{{image}}} }}
| <div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
| <div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group1}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group1}}}</font></div>

Revision as of 19:38, 2 March 2008

Template documentation