Template:Navbox with collapsible groups: Difference between revisions

    From Nonbinary Wiki
    (template creations; documentation comings...)
     
    (change default color to same as other navboxes)
    Line 1: Line 1:
    {| class="navbox" style="clear:both; width:100%; margin:1em auto 0 auto; font-size:.9em;"
    {| class="navbox" style="clear:both; width:100%; margin:1em auto 0 auto; font-size:.9em;"
    ! style="background-color:{{{titlebgcolor|#AAA}}}; font-size:1.1em;" | {{#if:{{{titlefontcolor|}}}|<font color={{{titlefontcolor|}}}>{{{title}}}</font>|{{{title}}} }}
    ! style="background-color:{{{titlebgcolor|#CCCCFF}}}; font-size:1.1em;" | {{#if:{{{titlefontcolor|}}}|<font color={{{titlefontcolor|}}}>{{{title}}}</font>|{{{title}}} }}
    |-
    |-
    {{#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 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section1}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section1}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section1abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section1content}}}
    {{#ifeq:{{{1|}}}|{{{section1abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section1content}}}
    </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 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section2}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section2}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section2abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section2content}}}
    {{#ifeq:{{{1|}}}|{{{section2abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section2content}}}
    </div>
    </div>
    Line 15: Line 15:
    {{#if:{{{section3|}}}|
    {{#if:{{{section3|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section3}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section3}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section3abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section3content}}}
    {{#ifeq:{{{1|}}}|{{{section3abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section3content}}}
    </div>
    </div>
    Line 21: Line 21:
    -->{{#if:{{{section4|}}}|
    -->{{#if:{{{section4|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section4}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section4}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section4abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section4content}}}
    {{#ifeq:{{{1|}}}|{{{section4abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section4content}}}
    </div>
    </div>
    Line 27: Line 27:
    -->{{#if:{{{section5|}}}|
    -->{{#if:{{{section5|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section5}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section5}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section5abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section5content}}}
    {{#ifeq:{{{1|}}}|{{{section5abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section5content}}}
    </div>
    </div>
    Line 33: Line 33:
    -->{{#if:{{{section6|}}}|
    -->{{#if:{{{section6|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section6}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section6}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section6abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section6content}}}
    {{#ifeq:{{{1|}}}|{{{section6abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section6content}}}
    </div>
    </div>
    Line 39: Line 39:
    -->{{#if:{{{section7|}}}|
    -->{{#if:{{{section7|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section7}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section7}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section7abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section7content}}}
    {{#ifeq:{{{1|}}}|{{{section7abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section7content}}}
    </div>
    </div>
    Line 45: Line 45:
    -->{{#if:{{{section8|}}}|
    -->{{#if:{{{section8|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section8}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section8}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section8abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section8content}}}
    {{#ifeq:{{{1|}}}|{{{section8abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section8content}}}
    </div>
    </div>
    Line 51: Line 51:
    -->{{#if:{{{section9|}}}|
    -->{{#if:{{{section9|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section9}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section9}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section9abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section9content}}}
    {{#ifeq:{{{1|}}}|{{{section9abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section9content}}}
    </div>
    </div>
    Line 57: Line 57:
    -->{{#if:{{{section10|}}}|
    -->{{#if:{{{section10|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDD}}};"><font color={{{sectionfontcolor|}}}>{{{section10}}}</font></div>
    <div class="NavHead" style="padding:1px; background-color:{{{sectionbgcolor|#DDDDFF}}};"><font color={{{sectionfontcolor|}}}>{{{section10}}}</font></div>
    {{#ifeq:{{{1|}}}|{{{section10abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section10content}}}
    {{#ifeq:{{{1|}}}|{{{section10abbr}}}|<div class="NavContent">|<div class="NavContent" style="display:none; line-height:1.4em;">}}{{{section10content}}}
    </div>
    </div>

    Revision as of 20:05, 17 October 2007

    Template:Template doc