Template:Navbox with collapsible groups: Difference between revisions

    From Nonbinary Wiki
    (change default color to same as other navboxes)
     
    (57 intermediate revisions by 20 users not shown)
    Line 1: Line 1:
    {| class="navbox" style="clear:both; width:100%; margin:1em auto 0 auto; font-size:.9em;"
    {{#invoke:Navbox with collapsible groups|navbox}}<noinclude>
    ! style="background-color:{{{titlebgcolor|#CCCCFF}}}; font-size:1.1em;" | {{#if:{{{titlefontcolor|}}}|<font color={{{titlefontcolor|}}}>{{{title}}}</font>|{{{title}}} }}
    {{documentation}}
    |-
    </noinclude>
    {{#if:{{{image|}}}|{{!}} width="100" valign="middle" {{!}} [[{{{image}}}]] }}
    | <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div>
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div>
    {{#if:{{{section3|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}<!--
    -->{{#if:{{{section4|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}<!--
    -->{{#if:{{{section5|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}<!--
    -->{{#if:{{{section6|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}<!--
    -->{{#if:{{{section7|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}<!--
    -->{{#if:{{{section8|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}<!--
    -->{{#if:{{{section9|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}<!--
    -->{{#if:{{{section10|}}}|
    <div class="NavFrame" style="border:0; margin:-1px -1px 2px -1px; padding:0">
    <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}}}
    </div>
    </div> }}
    |}
    {{template doc}}

    Latest revision as of 11:40, 21 May 2021

    Template documentation[create]