Template:Navbox with collapsible groups: Difference between revisions

    From Nonbinary Wiki
    (allow for standard state param; standardize title bar size; increase content padding for readability)
     
    (37 intermediate revisions by 16 users not shown)
    Line 1: Line 1:
    {| class="navbox collapsible {{{start|{{{state|}}}}}} nowraplinks" style="clear:both; width:100%; margin:auto;"
    {{#invoke:Navbox with collapsible groups|navbox}}<noinclude>
    ! {{#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>
    {{documentation}}
    |-
    {{#if:{{{image|}}}|{{!}} width="100" valign="middle" {{!}} {{{image}}} }}
    | <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>
    {{#ifeq:{{{param|}}}|{{{group1abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group1content}}}
    </div>
    </div>
    <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|}}}">{{{group2}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group2abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group2content}}}
    </div>
    </div>
    {{#if:{{{group3|}}}|
    <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|}}}">{{{group3}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group3abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group3content}}}
    </div>
    </div> }}<!--
     
    -->{{#if:{{{group4|}}}|
    <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|}}}">{{{group4}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group4abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group4content}}}
    </div>
    </div> }}<!--
     
    -->{{#if:{{{group5|}}}|
    <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|}}}">{{{group5}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group5abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group5content}}}
    </div>
    </div> }}<!--
     
    -->{{#if:{{{group6|}}}|
    <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|}}}">{{{group6}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group6abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group6content}}}
    </div>
    </div> }}<!--
     
    -->{{#if:{{{group7|}}}|
    <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|}}}">{{{group7}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group7abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group7content}}}
    </div>
    </div> }}<!--
     
    -->{{#if:{{{group8|}}}|
    <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|}}}">{{{group8}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group8abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group8content}}}
    </div>
    </div> }}<!--
     
    -->{{#if:{{{group9|}}}|
    <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|}}}">{{{group9}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group9abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group9content}}}
    </div>
    </div> }}<!--
     
    -->{{#if:{{{group10|}}}|
    <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|}}}">{{{group10}}}</font></div>
    {{#ifeq:{{{param|}}}|{{{group10abbr}}}|<div class="NavContent" style="padding:2px;">|<div class="NavContent" style="display:none; padding:2px;">}}{{{group10content}}}
    </div>
    </div> }}
    |}<noinclude>
    {{template doc}}
    </noinclude>
    </noinclude>

    Latest revision as of 11:40, 21 May 2021

    Template documentation[create]