Template:Navbox with collapsible groups: Difference between revisions

    From Nonbinary Wiki
    (selected/abbrN comparisons now case-insensitive; made above/below pipes includeonly)
     
    (6 intermediate revisions by 2 users not shown)
    Line 1: Line 1:
    {{#invoke:Navbox|navbox
    {{#invoke:Navbox with collapsible groups|navbox}}<noinclude>
    | name = {{{name|<noinclude>Navbox with collapsible groups</noinclude>}}}
    {{documentation}}
    | state = {{{state|<noinclude>uncollapsed</noinclude>}}}
    </noinclude>
    | border = {{{border|{{{1|}}}}}}
    | bodyclass = {{{bodyclass|}}}
    | bodystyle = {{{style|}}}{{{bodystyle|}}}
    | basestyle = {{{basestyle|}}}
     
    <!-------titlebar------->
    | navbar = {{{navbar|}}}
    | titleclass = {{{titleclass|}}}
    | titlestyle = {{{titlestyle|}}}
    | title = {{{title<includeonly>|</includeonly>}}}
     
    <!-------image/s-------->
    | imageclass = {{{imageclass|}}}
    | imagestyle = {{{imagestyle|}}}
    | image = {{{image|}}}
    | imageleftstyle = {{{imageleftstyle|}}}
    | imageleft = {{{imageleft|}}}
     
    <!--------above--------->
    | aboveclass = {{{aboveclass|}}}
    | abovestyle = {{{abovestyle|}}}
    | above = {{{above<includeonly>|</includeonly>}}}
     
    <!---groups/sections---->
    | groupclass = {{{groupclass|}}}
    | listclass = {{{listclass|}}}
     
    | list1 =
    {{#if:{{{group1<includeonly>|</includeonly>}}}{{{section1|}}}{{{sect1|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr1}}}}} |uncollapsed |{{{state1|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group1style|}}}{{{sect1titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list1style|}}}{{{content1style|}}}
        | title = {{{group1<includeonly>|</includeonly>}}}{{{sect1|}}}{{{section1|}}}<noinclude> or {{{section1}}} or {{{sect1}}}</noinclude>
        | list1 = {{{list1<includeonly>|</includeonly>}}}{{{content1|}}}<noinclude> or {{{content1}}}</noinclude>
        | image = {{{image1|}}}
        | imageleft = {{{imageleft1|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list1|}}}{{{content1|}}}
    }}
     
    | list2 =
    {{#if:{{{group2<includeonly>|</includeonly>}}}{{{section2|}}}{{{sect2|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr2}}}}} |uncollapsed |{{{state2|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group2style|}}}{{{sect2titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list2style|}}}{{{content2style|}}}
        | title = {{{group2<includeonly>|</includeonly>}}}{{{sect2|}}}{{{section2|}}}<noinclude> or {{{section2}}} or {{{sect2}}}</noinclude>
        | list1 = {{{list2<includeonly>|</includeonly>}}}{{{content2|}}}<noinclude> or {{{content2}}}</noinclude>
        | image = {{{image2|}}}
        | imageleft = {{{imageleft2|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list2|}}}{{{content2|}}}
    }}
     
    | list3 =
    {{#if:{{{group3<includeonly>|</includeonly>}}}{{{section3|}}}{{{sect3|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr3}}}}} |uncollapsed |{{{state3|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group3style|}}}{{{sect3titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list3style|}}}{{{content3style|}}}
        | title = {{{group3<includeonly>|</includeonly>}}}{{{sect3|}}}{{{section3|}}}<noinclude> or {{{section3}}} or {{{sect3}}}</noinclude>
        | list1 = {{{list3<includeonly>|</includeonly>}}}{{{content3|}}}<noinclude> or {{{content3}}}</noinclude>
        | image = {{{image3|}}}
        | imageleft = {{{imageleft3|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list3|}}}{{{content3|}}}
    }}
     
    | list4 =
    {{#if:{{{group4<includeonly>|</includeonly>}}}{{{section4|}}}{{{sect4|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr4}}}}} |uncollapsed |{{{state4|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group4style|}}}{{{sect4titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list4style|}}}{{{content4style|}}}
        | title = {{{group4<includeonly>|</includeonly>}}}{{{sect4|}}}{{{section4|}}}<noinclude> or {{{section4}}} or {{{sect4}}}</noinclude>
        | list1 = {{{list4<includeonly>|</includeonly>}}}{{{content4|}}}<noinclude> or {{{content4}}}</noinclude>
        | image = {{{image4|}}}
        | imageleft = {{{imageleft4|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list4|}}}{{{content4|}}}
    }}
     
    | list5 =
    {{#if:{{{group5<includeonly>|</includeonly>}}}{{{section5|}}}{{{sect5|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr5}}}}} |uncollapsed |{{{state5|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group5style|}}}{{{sect5titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list5style|}}}{{{content5style|}}}
        | title = {{{group5<includeonly>|</includeonly>}}}{{{sect5|}}}{{{section5|}}}<noinclude> or {{{section5}}} or {{{sect5}}}</noinclude>
        | list1 = {{{list5<includeonly>|</includeonly>}}}{{{content5|}}}<noinclude> or {{{content5}}}</noinclude>
        | image = {{{image5|}}}
        | imageleft = {{{imageleft5|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list5|}}}{{{content5|}}}
    }}
     
    | list6 =
    {{#if:{{{group6|}}}{{{section6|}}}{{{sect6|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr6}}}}} |uncollapsed |{{{state6|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group6style|}}}{{{sect6titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list6style|}}}{{{content6style|}}}
        | title = {{{group6|}}}{{{sect6|}}}{{{section6|}}}
        | list1 = {{{list6|}}}{{{content6|}}}
        | image = {{{image6|}}}
        | imageleft = {{{imageleft6|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list6|}}}{{{content6|<noinclude>''(...etc, to group20/sect20/section20 and list20/content20)''</noinclude>}}}
    }}
     
    | list7 =
    {{#if:{{{group7|}}}{{{section7|}}}{{{sect7|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr7}}}}} |uncollapsed |{{{state7|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group7style|}}}{{{sect7titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list7style|}}}{{{content7style|}}}
        | title = {{{group7|}}}{{{sect7|}}}{{{section7|}}}
        | list1 = {{{list7|}}}{{{content7|}}}
        | image = {{{image7|}}}
        | imageleft = {{{imageleft7|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list7|}}}{{{content7|}}}
    }}
     
    | list8 =
    {{#if:{{{group8|}}}{{{section8|}}}{{{sect8|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr8}}}}} |uncollapsed |{{{state8|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group8style|}}}{{{sect8titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list8style|}}}{{{content8style|}}}
        | title = {{{group8|}}}{{{sect8|}}}{{{section8|}}}
        | list1 = {{{list8|}}}{{{content8|}}}
        | image = {{{image8|}}}
        | imageleft = {{{imageleft8|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list8|}}}{{{content8|}}}
    }}
     
    | list9 =
    {{#if:{{{group9|}}}{{{section9|}}}{{{sect9|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr9}}}}} |uncollapsed |{{{state9|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group9style|}}}{{{sect9titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list9style|}}}{{{content9style|}}}
        | title = {{{group9|}}}{{{sect9|}}}{{{section9|}}}
        | list1 = {{{list9|}}}{{{content9|}}}
        | image = {{{image9|}}}
        | imageleft = {{{imageleft9|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list9|}}}{{{content9|}}}
    }}
     
    | list10 =
    {{#if:{{{group10|}}}{{{section10|}}}{{{sect10|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr10}}}}} |uncollapsed |{{{state10|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group10style|}}}{{{sect10titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list10style|}}}{{{content10style|}}}
        | title = {{{group10|}}}{{{sect10|}}}{{{section10|}}}
        | list1 = {{{list10|}}}{{{content10|}}}
        | image = {{{image10|}}}
        | imageleft = {{{imageleft10|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list10|}}}{{{content10|}}}
    }}
     
    | list11 =
    {{#if:{{{group11|}}}{{{section11|}}}{{{sect11|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr11}}}}} |uncollapsed |{{{state11|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group11style|}}}{{{sect11titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list11style|}}}{{{content11style|}}}
        | title = {{{group11|}}}{{{sect11|}}}{{{section11|}}}
        | list1 = {{{list11|}}}{{{content11|}}}
        | image = {{{image11|}}}
        | imageleft = {{{imageleft11|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
      | {{{list11|}}}{{{content11|}}}
    }}
     
    | list12 =
    {{#if:{{{group12|}}}{{{section12|}}}{{{sect12|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr12}}}}} |uncollapsed |{{{state12|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group12style|}}}{{{sect12titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list12style|}}}{{{content12style|}}}
        | title = {{{group12|}}}{{{sect12|}}}{{{section12|}}}
        | list1 = {{{list12|}}}{{{content12|}}}
        | image = {{{image12|}}}
        | imageleft = {{{imageleft12|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list12|}}}{{{content12|}}}
    }}
     
    | list13 =
    {{#if:{{{group13|}}}{{{section13|}}}{{{sect13|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr13}}}}} |uncollapsed |{{{state13|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group13style|}}}{{{sect13titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list13style|}}}{{{content13style|}}}
        | title = {{{group13|}}}{{{sect13|}}}{{{section13|}}}
        | list1 = {{{list13|}}}{{{content13|}}}
        | image = {{{image13|}}}
        | imageleft = {{{imageleft13|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list13|}}}{{{content13|}}}
    }}
     
    | list14 =
    {{#if:{{{group14|}}}{{{section14|}}}{{{sect14|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr14}}}}} |uncollapsed |{{{state14|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group14style|}}}{{{sect14titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list14style|}}}{{{content14style|}}}
        | title = {{{group14|}}}{{{sect14|}}}{{{section14|}}}
        | list1 = {{{list14|}}}{{{content14|}}}
        | image = {{{image14|}}}
        | imageleft = {{{imageleft14|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list14|}}}{{{content14|}}}
    }}
     
    | list15 =
    {{#if:{{{group15|}}}{{{section15|}}}{{{sect15|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr15}}}}} |uncollapsed |{{{state15|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group15style|}}}{{{sect15titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list15style|}}}{{{content15style|}}}
        | title = {{{group15|}}}{{{sect15|}}}{{{section15|}}}
        | list1 = {{{list15|}}}{{{content15|}}}
        | image = {{{image15|}}}
        | imageleft = {{{imageleft15|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list15|}}}{{{content15|}}}
    }}
     
    | list16 =
    {{#if:{{{group16|}}}{{{section16|}}}{{{sect16|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr16}}}}} |uncollapsed |{{{state16|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group16style|}}}{{{sect16titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list16style|}}}{{{content16style|}}}
        | title = {{{group16|}}}{{{sect16|}}}{{{section16|}}}
        | list1 = {{{list16|}}}{{{content16|}}}
        | image = {{{image16|}}}
        | imageleft = {{{imageleft16|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list16|}}}{{{content16|}}}
    }}
     
    | list17 =
    {{#if:{{{group17|}}}{{{section17|}}}{{{sect17|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr17}}}}} |uncollapsed |{{{state17|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group17style|}}}{{{sect17titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list17style|}}}{{{content17style|}}}
        | title = {{{group17|}}}{{{sect17|}}}{{{section17|}}}
        | list1 = {{{list17|}}}{{{content17|}}}
        | image = {{{image17|}}}
        | imageleft = {{{imageleft17|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list17|}}}{{{content17|}}}
    }}
     
    | list18 =
    {{#if:{{{group18|}}}{{{section18|}}}{{{sect18|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr18}}}}} |uncollapsed |{{{state18|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group18style|}}}{{{sect18titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list18style|}}}{{{content18style|}}}
        | title = {{{group18|}}}{{{sect18|}}}{{{section18|}}}
        | list1 = {{{list18|}}}{{{content18|}}}
        | image = {{{image18|}}}
        | imageleft = {{{imageleft18|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list18|}}}{{{content18|}}}
    }}
     
    | list19 =
    {{#if:{{{group19|}}}{{{section19|}}}{{{sect19|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr19}}}}} |uncollapsed |{{{state19|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group19style|}}}{{{sect19titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list19style|}}}{{{content19style|}}}
        | title = {{{group19|}}}{{{sect19|}}}{{{section19|}}}
        | list1 = {{{list19|}}}{{{content19|}}}
        | image = {{{image19|}}}
        | imageleft = {{{imageleft19|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list19|}}}{{{content19|}}}
    }}
     
    | list20 =
    {{#if:{{{group20|}}}{{{section20|}}}{{{sect20|}}}
      | {{#invoke:Navbox|navbox |child
        | navbar = plain
        | state = {{#ifeq:{{lc:{{{selected}}}}}|{{lc:{{{abbr20}}}}} |uncollapsed |{{{state20|collapsed}}}}}
        | titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group20style|}}}{{{sect20titlestyle|}}}
        | liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list20style|}}}{{{content20style|}}}
        | title = {{{group20|}}}{{{sect20|}}}{{{section20|}}}
        | list1 = {{{list20|}}}{{{content20|}}}
        | image = {{{image20|}}}
        | imageleft = {{{imageleft20|}}}
        | {{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
        }}
      | {{{list20|}}}{{{content20|}}}
    }}
     
    <!--------below--------->
    | belowclass = {{{belowclass|}}}
    | belowstyle = {{{belowstyle|}}}
    | below = {{{below<includeonly>|</includeonly>}}}
     
    }}<noinclude>{{Documentation}}</noinclude>

    Latest revision as of 11:40, 21 May 2021

    Template documentation[create]