Template:Navbox with collapsible groups: Difference between revisions

    From Nonbinary Wiki
    (pass listclass for Template:Navbox Canada)
    (use lua version; will temporarily save the old version in the sandbox for comparison in the testcases)
    Line 1: Line 1:
    {{#invoke:navbox|navbox
    {{#invoke:Navbox with collapsible groups|navbox}}<noinclude>
    |name = {{{name|<noinclude>Navbox with collapsible groups</noinclude>}}}
    |navbar = {{{navbar|}}}
    |state = {{{state|<noinclude>uncollapsed</noinclude>}}}
    |border = {{{border|{{{1|}}}}}}
     
    |title = {{{title<includeonly>|</includeonly>}}}
    |above = {{{above|}}}
    |image = {{{image|}}}
    |imageleft = {{{imageleft|}}}
     
    |bodyclass = {{{bodyclass|}}}
    |titleclass = {{{titleclass|}}}
    |aboveclass = {{{aboveclass|}}}
    |belowclass = {{{belowclass|}}}
    |groupclass = {{{groupclass|}}}
    |listclass = {{{listclass|}}}
    |imageclass = {{{imageclass|}}}
     
    |style = {{{style|}}}{{{bodystyle|}}}
    |basestyle = {{{basestyle|}}}
    |titlestyle = {{{titlestyle|}}}
    |abovestyle = {{{abovestyle|}}}
    |belowstyle = {{{belowstyle|}}}
    |imagestyle = {{{imagestyle|}}}
    |imageleftstyle = {{{imageleftstyle|}}}
     
    |list1 =
    {{#if:{{{group1<includeonly>|</includeonly>}}}{{{sect1|}}}{{{section1|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr1}}} |uncollapsed |{{{state1|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group1style|}}}{{{sect1titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list1style|}}}{{{content1style|}}}
        |listclass = {{{list1class|}}}
        |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>}}}{{{sect2|}}}{{{section2|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr2}}} |uncollapsed |{{{state2|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group2style|}}}{{{sect2titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list2style|}}}{{{content2style|}}}
        |listclass = {{{list2class|}}}
        |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>}}}{{{sect3|}}}{{{section3|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr3}}} |uncollapsed |{{{state3|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group3style|}}}{{{sect3titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list3style|}}}{{{content3style|}}}
        |listclass = {{{list3class|}}}
        |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>}}}{{{sect4|}}}{{{section4|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr4}}} |uncollapsed |{{{state4|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group4style|}}}{{{sect4titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list4style|}}}{{{content4style|}}}
        |listclass = {{{list4class|}}}
        |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>}}}{{{sect5|}}}{{{section5|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr5}}} |uncollapsed |{{{state5|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group5style|}}}{{{sect5titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list5style|}}}{{{content5style|}}}
        |listclass = {{{list5class|}}}
        |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|}}}{{{sect6|}}}{{{section6|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr6}}} |uncollapsed |{{{state6|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group6style|}}}{{{sect6titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list6style|}}}{{{content6style|}}}
        |listclass = {{{list6class|}}}
        |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|}}}{{{sect7|}}}{{{section7|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr7}}} |uncollapsed |{{{state7|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group7style|}}}{{{sect7titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list7style|}}}{{{content7style|}}}
        |listclass = {{{list7class|}}}
        |title = {{{group7|}}}{{{sect7|}}}{{{section7|}}}
        |list1 = {{{list7|}}}{{{content7|}}}
        |image = {{{image7|}}}
        |imageleft = {{{imageleft7|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list7|}}}{{{content7|}}}
    }}
     
    |list8 =
    {{#if:{{{group8|}}}{{{sect8|}}}{{{section8|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr8}}} |uncollapsed |{{{state8|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group8style|}}}{{{sect8titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list8style|}}}{{{content8style|}}}
        |listclass = {{{list8class|}}}
        |title = {{{group8|}}}{{{sect8|}}}{{{section8|}}}
        |list1 = {{{list8|}}}{{{content8|}}}
        |image = {{{image8|}}}
        |imageleft = {{{imageleft8|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list8|}}}{{{content8|}}}
    }}
     
    |list9 =
    {{#if:{{{group9|}}}{{{sect9|}}}{{{section9|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr9}}} |uncollapsed |{{{state9|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group9style|}}}{{{sect9titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list9style|}}}{{{content9style|}}}
        |listclass = {{{list9class|}}}
        |title = {{{group9|}}}{{{sect9|}}}{{{section9|}}}
        |list1 = {{{list9|}}}{{{content9|}}}
        |image = {{{image9|}}}
        |imageleft = {{{imageleft9|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list9|}}}{{{content9|}}}
    }}
     
    |list10 =
    {{#if:{{{group10|}}}{{{sect10|}}}{{{section10|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr10}}} |uncollapsed |{{{state10|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group10style|}}}{{{sect10titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list10style|}}}{{{content10style|}}}
        |listclass = {{{list10class|}}}
        |title = {{{group10|}}}{{{sect10|}}}{{{section10|}}}
        |list1 = {{{list10|}}}{{{content10|}}}
        |image = {{{image10|}}}
        |imageleft = {{{imageleft10|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list10|}}}{{{content10|}}}
    }}
     
    |list11 =
    {{#if:{{{group11|}}}{{{sect11|}}}{{{section11|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr11}}} |uncollapsed |{{{state11|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group11style|}}}{{{sect11titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list11style|}}}{{{content11style|}}}
        |listclass = {{{list11class|}}}
        |title = {{{group11|}}}{{{sect11|}}}{{{section11|}}}
        |list1 = {{{list11|}}}{{{content11|}}}
        |image = {{{image11|}}}
        |imageleft = {{{imageleft11|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list11|}}}{{{content11|}}}
    }}
     
    |list12 =
    {{#if:{{{group12|}}}{{{sect12|}}}{{{section12|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr12}}} |uncollapsed |{{{state12|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group12style|}}}{{{sect12titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list12style|}}}{{{content12style|}}}
        |listclass = {{{list12class|}}}
        |title = {{{group12|}}}{{{sect12|}}}{{{section12|}}}
        |list1 = {{{list12|}}}{{{content12|}}}
        |image = {{{image12|}}}
        |imageleft = {{{imageleft12|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list12|}}}{{{content12|}}}
    }}
     
    |list13 =
    {{#if:{{{group13|}}}{{{sect13|}}}{{{section13|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr13}}} |uncollapsed |{{{state13|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group13style|}}}{{{sect13titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list13style|}}}{{{content13style|}}}
        |listclass = {{{list13class|}}}
        |title = {{{group13|}}}{{{sect13|}}}{{{section13|}}}
        |list1 = {{{list13|}}}{{{content13|}}}
        |image = {{{image13|}}}
        |imageleft = {{{imageleft13|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list13|}}}{{{content13|}}}
    }}
     
    |list14 =
    {{#if:{{{group14|}}}{{{sect14|}}}{{{section14|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr14}}} |uncollapsed |{{{state14|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group14style|}}}{{{sect14titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list14style|}}}{{{content14style|}}}
        |listclass = {{{list14class|}}}
        |title = {{{group14|}}}{{{sect14|}}}{{{section14|}}}
        |list1 = {{{list14|}}}{{{content14|}}}
        |image = {{{image14|}}}
        |imageleft = {{{imageleft14|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list14|}}}{{{content14|}}}
    }}
     
    |list15 =
    {{#if:{{{group15|}}}{{{sect15|}}}{{{section15|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr15}}} |uncollapsed |{{{state15|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group15style|}}}{{{sect15titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list15style|}}}{{{content15style|}}}
        |listclass = {{{list15class|}}}
        |title = {{{group15|}}}{{{sect15|}}}{{{section15|}}}
        |list1 = {{{list15|}}}{{{content15|}}}
        |image = {{{image15|}}}
        |imageleft = {{{imageleft15|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list15|}}}{{{content15|}}}
    }}
     
    |list16 =
    {{#if:{{{group16|}}}{{{sect16|}}}{{{section16|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr16}}} |uncollapsed |{{{state16|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group16style|}}}{{{sect16titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list16style|}}}{{{content16style|}}}
        |listclass = {{{list16class|}}}
        |title = {{{group16|}}}{{{sect16|}}}{{{section16|}}}
        |list1 = {{{list16|}}}{{{content16|}}}
        |image = {{{image16|}}}
        |imageleft = {{{imageleft16|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list16|}}}{{{content16|}}}
    }}
     
    |list17 =
    {{#if:{{{group17|}}}{{{sect17|}}}{{{section17|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr17}}} |uncollapsed |{{{state17|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group17style|}}}{{{sect17titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list17style|}}}{{{content17style|}}}
        |listclass = {{{list17class|}}}
        |title = {{{group17|}}}{{{sect17|}}}{{{section17|}}}
        |list1 = {{{list17|}}}{{{content17|}}}
        |image = {{{image17|}}}
        |imageleft = {{{imageleft17|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list17|}}}{{{content17|}}}
    }}
     
    |list18 =
    {{#if:{{{group18|}}}{{{sect18|}}}{{{section18|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr18}}} |uncollapsed |{{{state18|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group18style|}}}{{{sect18titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list18style|}}}{{{content18style|}}}
        |listclass = {{{list18class|}}}
        |title = {{{group18|}}}{{{sect18|}}}{{{section18|}}}
        |list1 = {{{list18|}}}{{{content18|}}}
        |image = {{{image18|}}}
        |imageleft = {{{imageleft18|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list18|}}}{{{content18|}}}
    }}
     
    |list19 =
    {{#if:{{{group19|}}}{{{sect19|}}}{{{section19|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr19}}} |uncollapsed |{{{state19|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group19style|}}}{{{sect19titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list19style|}}}{{{content19style|}}}
        |listclass = {{{list19class|}}}
        |title = {{{group19|}}}{{{sect19|}}}{{{section19|}}}
        |list1 = {{{list19|}}}{{{content19|}}}
        |image = {{{image19|}}}
        |imageleft = {{{imageleft19|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list19|}}}{{{content19|}}}
    }}
     
    |list20 =
    {{#if:{{{group20|}}}{{{sect20|}}}{{{section20|}}}
    | {{#invoke:navbox|navbox|child
        |navbar = plain
        |state = {{#ifeq:{{{selected}}}|{{{abbr20}}} |uncollapsed |{{{state20|collapsed}}}}}
        |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group20style|}}}{{{sect20titlestyle|}}}
        |liststyle  = {{{liststyle|}}}{{{contentstyle|}}}{{{list20style|}}}{{{content20style|}}}
        |listclass = {{{list20class|}}}
        |title = {{{group20|}}}{{{sect20|}}}{{{section20|}}}
        |list1 = {{{list20|}}}{{{content20|}}}
        |image = {{{image20|}}}
        |imageleft = {{{imageleft20|}}}
        |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
      }}
    | {{{list20|}}}{{{content20|}}}
    }}
     
    |below = {{{below|}}}
     
    }}<noinclude>
    {{documentation}}
    {{documentation}}
    </noinclude>
    </noinclude>

    Revision as of 16:36, 26 October 2018

    Template documentation[create]