Template:Navbox with collapsible groups: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter
Rm redundant parameter
meta>Pomte
allow for standard state param; standardize title bar size; increase content padding for readability
Line 1: Line 1:
{| class="navbox collapsible {{{start|}}} nowraplinks" style="clear:both; width:100%; margin:auto; font-size:.9em;"
{| class="navbox collapsible {{{start|{{{state|}}}}}} nowraplinks" style="clear:both; width:100%; margin:auto;"
! {{#if:{{{image|}}}|colspan="2"}} style="background-color:{{{titlebgcolor|#CCCCFF}}}; font-size:1.1em;" | <div style="float:left; width:6em; text-align:left;">{{Tnavbar|{{{name<noinclude>|Navigation with collapsible groups</noinclude>}}}|nodiv=1|mini=1|fontcolor={{{titlefontcolor|}}}}}</div>{{#if:{{{titlefontcolor|}}}|<font color={{{titlefontcolor|}}}>{{{title}}}</font>|{{{title}}} }}
! {{#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|}}}|{{!}} width="100" valign="middle" {{!}} {{{image}}} }}
{{#if:{{{image|}}}|{{!}} width="100" valign="middle" {{!}} {{{image}}} }}
| <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
| <div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><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>
{{#ifeq:{{{param|}}}|{{{group1abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group1content}}}
{{#ifeq:{{{param|}}}|{{{group1abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group1content}}}
</div>
</div>
</div>
</div>
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group2}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group2}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group2abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group2content}}}
{{#ifeq:{{{param|}}}|{{{group2abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group2content}}}
</div>
</div>
</div>
</div>
{{#if:{{{group3|}}}|
{{#if:{{{group3|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group3}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group3}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group3abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group3content}}}
{{#ifeq:{{{param|}}}|{{{group3abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group3content}}}
</div>
</div>
</div> }}<!--
</div> }}<!--
-->{{#if:{{{group4|}}}|
-->{{#if:{{{group4|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group4}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group4}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group4abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group4content}}}
{{#ifeq:{{{param|}}}|{{{group4abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group4content}}}
</div>
</div>
</div> }}<!--
</div> }}<!--
-->{{#if:{{{group5|}}}|
-->{{#if:{{{group5|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group5}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group5}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group5abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group5content}}}
{{#ifeq:{{{param|}}}|{{{group5abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group5content}}}
</div>
</div>
</div> }}<!--
</div> }}<!--
-->{{#if:{{{group6|}}}|
-->{{#if:{{{group6|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group6}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group6}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group6abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group6content}}}
{{#ifeq:{{{param|}}}|{{{group6abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group6content}}}
</div>
</div>
</div> }}<!--
</div> }}<!--
-->{{#if:{{{group7|}}}|
-->{{#if:{{{group7|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group7}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group7}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group7abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group7content}}}
{{#ifeq:{{{param|}}}|{{{group7abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group7content}}}
</div>
</div>
</div> }}<!--
</div> }}<!--
-->{{#if:{{{group8|}}}|
-->{{#if:{{{group8|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group8}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group8}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group8abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group8content}}}
{{#ifeq:{{{param|}}}|{{{group8abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group8content}}}
</div>
</div>
</div> }}<!--
</div> }}<!--
-->{{#if:{{{group9|}}}|
-->{{#if:{{{group9|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group9}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group9}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group9abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group9content}}}
{{#ifeq:{{{param|}}}|{{{group9abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group9content}}}
</div>
</div>
</div> }}<!--
</div> }}<!--
-->{{#if:{{{group10|}}}|
-->{{#if:{{{group10|}}}|
<div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
<div class="NavFrame" style="border:0; margin:-1px -1px 3px -1px; padding:0;">
<div class="NavHead" style="padding:1px; background-color:{{{groupbgcolor|#DDDDFF}}};"><font color={{{groupfontcolor|}}}>{{{group10}}}</font></div>
<div class="NavHead" style="padding:0 0 1px 0; background-color:{{{groupbgcolor|#ddf}}};"><font color="{{{groupfontcolor|}}}">{{{group10}}}</font></div>
{{#ifeq:{{{param|}}}|{{{group10abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{group10content}}}
{{#ifeq:{{{param|}}}|{{{group10abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group10content}}}
</div>
</div>
</div> }}
</div> }}
|}<noinclude>{{template doc}}</noinclude>
|}<noinclude>
{{template doc}}
</noinclude>

Revision as of 02:29, 2 January 2008