Template:Navbox with collapsible groups: Difference between revisions
(fix 10 & 11 liststyle) |
(add new parameters for sections, per request) |
||
Line 1: | Line 1: | ||
{{Navbox | {{Navbox | ||
|name = {{{name|<noinclude>Navbox with collapsible | |name = {{{name|<noinclude>Navbox with collapsible groups</noinclude>}}} | ||
|navbar = {{{navbar|}}} | |navbar = {{{navbar|}}} | ||
|state = {{{state|<noinclude>uncollapsed</noinclude>}}} | |state = {{{state|<noinclude>uncollapsed</noinclude>}}} | ||
Line 23: | Line 23: | ||
|list1 = | |list1 = | ||
{{#if:{{{group1<includeonly>|</includeonly>}}}{{{sect1|}}} | {{#if:{{{group1<includeonly>|</includeonly>}}}{{{sect1|}}}{{{section1|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr1}}} |uncollapsed |{{{state1|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr1}}} |uncollapsed |{{{state1|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group1style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group1style|}}}{{{sect1titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list1style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list1style|}}}{{{content1style|}}} | ||
|title = {{{group1<includeonly>|</includeonly>}}}{{{sect1|}}} | |title = {{{group1<includeonly>|</includeonly>}}}{{{sect1|}}}{{{section1|}}}<noinclude> or {{{section1}}} or {{{sect1}}}</noinclude> | ||
|list1 = {{{list1<includeonly>|</includeonly>}}} | |list1 = {{{list1<includeonly>|</includeonly>}}}{{{content1|}}}<noinclude> or {{{content1}}}</noinclude> | ||
|image = {{{image1|}}} | |image = {{{image1|}}} | ||
|imageleft = {{{imageleft1|}}} | |imageleft = {{{imageleft1|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list1|}}} | | {{{list1|}}}{{{content1|}}} | ||
}} | }} | ||
|list2 = | |list2 = | ||
{{#if:{{{group2<includeonly>|</includeonly>}}}{{{sect2|}}} | {{#if:{{{group2<includeonly>|</includeonly>}}}{{{sect2|}}}{{{section2|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr2}}} |uncollapsed |{{{state2|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr2}}} |uncollapsed |{{{state2|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group2style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group2style|}}}{{{sect2titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list2style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list2style|}}}{{{content2style|}}} | ||
|title = {{{group2<includeonly>|</includeonly>}}}{{{sect2|}}} | |title = {{{group2<includeonly>|</includeonly>}}}{{{sect2|}}}{{{section2|}}}<noinclude> or {{{section2}}} or {{{sect2}}}</noinclude> | ||
|list1 = {{{list2<includeonly>|</includeonly>}}} | |list1 = {{{list2<includeonly>|</includeonly>}}}{{{content2|}}}<noinclude> or {{{content2}}}</noinclude> | ||
|image = {{{image2|}}} | |image = {{{image2|}}} | ||
|imageleft = {{{imageleft2|}}} | |imageleft = {{{imageleft2|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list2|}}} | | {{{list2|}}}{{{content2|}}} | ||
}} | }} | ||
|list3 = | |list3 = | ||
{{#if:{{{group3<includeonly>|</includeonly>}}}{{{sect3|}}} | {{#if:{{{group3<includeonly>|</includeonly>}}}{{{sect3|}}}{{{section3|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr3}}} |uncollapsed |{{{state3|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr3}}} |uncollapsed |{{{state3|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group3style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group3style|}}}{{{sect3titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list3style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list3style|}}}{{{content3style|}}} | ||
|title = {{{group3<includeonly>|</includeonly>}}}{{{sect3|}}} | |title = {{{group3<includeonly>|</includeonly>}}}{{{sect3|}}}{{{section3|}}}<noinclude> or {{{section3}}} or {{{sect3}}}</noinclude> | ||
|list1 = {{{list3<includeonly>|</includeonly>}}} | |list1 = {{{list3<includeonly>|</includeonly>}}}{{{content3|}}}<noinclude> or {{{content3}}}</noinclude> | ||
|image = {{{image3|}}} | |image = {{{image3|}}} | ||
|imageleft = {{{imageleft3|}}} | |imageleft = {{{imageleft3|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list3|}}} | | {{{list3|}}}{{{content3|}}} | ||
}} | }} | ||
|list4 = | |list4 = | ||
{{#if:{{{group4<includeonly>|</includeonly>}}}{{{sect4|}}} | {{#if:{{{group4<includeonly>|</includeonly>}}}{{{sect4|}}}{{{section4|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr4}}} |uncollapsed |{{{state4|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr4}}} |uncollapsed |{{{state4|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group4style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group4style|}}}{{{sect4titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list4style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list4style|}}}{{{content4style|}}} | ||
|title = {{{group4<includeonly>|</includeonly>}}}{{{sect4|}}} | |title = {{{group4<includeonly>|</includeonly>}}}{{{sect4|}}}{{{section4|}}}<noinclude> or {{{section4}}} or {{{sect4}}}</noinclude> | ||
|list1 = {{{list4<includeonly>|</includeonly>}}} | |list1 = {{{list4<includeonly>|</includeonly>}}}{{{content4|}}}<noinclude> or {{{content4}}}</noinclude> | ||
|image = {{{image4|}}} | |image = {{{image4|}}} | ||
|imageleft = {{{imageleft4|}}} | |imageleft = {{{imageleft4|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list4|}}} | | {{{list4|}}}{{{content4|}}} | ||
}} | }} | ||
|list5 = | |list5 = | ||
{{#if:{{{group5|}}}{{{sect5|}}} | {{#if:{{{group5<includeonly>|</includeonly>}}}{{{sect5|}}}{{{section|5}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr5}}} |uncollapsed |{{{state5|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr5}}} |uncollapsed |{{{state5|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group5style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group5style|}}}{{{sect5titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list5style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list5style|}}}{{{content5style|}}} | ||
|title = {{{group5<includeonly>|</includeonly>}}}{{{sect5|}}} | |title = {{{group5<includeonly>|</includeonly>}}}{{{sect5|}}}{{{section5|}}}<noinclude> or {{{section5}}} or {{{sect5}}}</noinclude> | ||
|list1 = {{{list5<includeonly>|</includeonly>}}} | |list1 = {{{list5<includeonly>|</includeonly>}}}{{{content5|}}}<noinclude> or {{{content5}}}</noinclude> | ||
|image = {{{image5|}}} | |image = {{{image5|}}} | ||
|imageleft = {{{imageleft5|}}} | |imageleft = {{{imageleft5|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list5|}}} | | {{{list5|}}}{{{content5|}}} | ||
}} | }} | ||
|list6 = | |list6 = | ||
{{#if:{{{group6|}}}{{{sect6|}}} | {{#if:{{{group6|}}}{{{sect6|}}}{{{section6|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr6}}} |uncollapsed |{{{state6|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr6}}} |uncollapsed |{{{state6|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group6style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group6style|}}}{{{sect6titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list6style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list6style|}}}{{{content6style|}}} | ||
|title = {{{group6 | |title = {{{group6|}}}{{{sect6|}}}{{{section6|}}} | ||
|list1 = {{{list6 | |list1 = {{{list6|}}}{{{content6|}}} | ||
|image = {{{image6|}}} | |image = {{{image6|}}} | ||
|imageleft = {{{imageleft6|}}} | |imageleft = {{{imageleft6|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list6|}}} | | {{{list6|}}}{{{content6|<noinclude>''(...etc, to group11/sect11/section11 and list11/content11)''</noinclude>}}} | ||
}} | }} | ||
|list7 = | |list7 = | ||
{{#if:{{{group7|}}}{{{sect7|}}} | {{#if:{{{group7|}}}{{{sect7|}}}{{{section7|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr7}}} |uncollapsed |{{{state7|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr7}}} |uncollapsed |{{{state7|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group7style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group7style|}}}{{{sect7titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list7style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list7style|}}}{{{content7style|}}} | ||
|title = {{{group7 | |title = {{{group7|}}}{{{sect7|}}}{{{section7|}}} | ||
|list1 = {{{list7 | |list1 = {{{list7|}}}{{{content7|}}} | ||
|image = {{{image7|}}} | |image = {{{image7|}}} | ||
|imageleft = {{{imageleft7|}}} | |imageleft = {{{imageleft7|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list7|}}} | | {{{list7|}}}{{{content7|}}} | ||
}} | }} | ||
|list8 = | |list8 = | ||
{{#if:{{{group8|}}}{{{sect8|}}} | {{#if:{{{group8|}}}{{{sect8|}}}{{{section8|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr8}}} |uncollapsed |{{{state8|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr8}}} |uncollapsed |{{{state8|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group8style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group8style|}}}{{{sect8titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list8style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list8style|}}}{{{content8style|}}} | ||
|title = {{{group8 | |title = {{{group8|}}}{{{sect8|}}}{{{section8|}}} | ||
|list1 = {{{list8 | |list1 = {{{list8|}}}{{{content8|}}} | ||
|image = {{{image8|}}} | |image = {{{image8|}}} | ||
|imageleft = {{{imageleft8|}}} | |imageleft = {{{imageleft8|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list8|}}} | | {{{list8|}}}{{{content8|}}} | ||
}} | }} | ||
|list9 = | |list9 = | ||
{{#if:{{{group9|}}}{{{sect9|}}} | {{#if:{{{group9|}}}{{{sect9|}}}{{{section9|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr9}}} |uncollapsed |{{{state9|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr9}}} |uncollapsed |{{{state9|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group9style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group9style|}}}{{{sect9titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list9style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list9style|}}}{{{content9style|}}} | ||
|title = {{{group9 | |title = {{{group9|}}}{{{sect9|}}}{{{section9|}}} | ||
|list1 = {{{list9 | |list1 = {{{list9|}}}{{{content9|}}} | ||
|image = {{{image9|}}} | |image = {{{image9|}}} | ||
|imageleft = {{{imageleft9|}}} | |imageleft = {{{imageleft9|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list9|}}} | | {{{list9|}}}{{{content9|}}} | ||
}} | }} | ||
|list10 = | |list10 = | ||
{{#if:{{{group10|}}}{{{sect10|}}} | {{#if:{{{group10|}}}{{{sect10|}}}{{{section10|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr10}}} |uncollapsed |{{{state10|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr10}}} |uncollapsed |{{{state10|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group10style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group10style|}}}{{{sect10titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list10style|}}} | |liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list10style|}}}{{{content10style|}}} | ||
|title = {{{group10 | |title = {{{group10|}}}{{{sect10|}}}{{{section10|}}} | ||
|list1 = {{{list10 | |list1 = {{{list10|}}}{{{content10|}}} | ||
|image = {{{image10|}}} | |image = {{{image10|}}} | ||
|imageleft = {{{imageleft10|}}} | |imageleft = {{{imageleft10|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list10|}}} | | {{{list10|}}}{{{content10|}}} | ||
}} | }} | ||
|list11 = | |list11 = | ||
{{#if:{{{group11|}}}{{{sect11|}}} | {{#if:{{{group11|}}}{{{sect11|}}}{{{section11|}}} | ||
| {{Navbox|child | | {{Navbox|child | ||
|state = {{#ifeq:{{{selected}}}|{{{abbr11}}} |uncollapsed |{{{state11|collapsed}}}}} | |state = {{#ifeq:{{{selected}}}|{{{abbr11}}} |uncollapsed |{{{state11|collapsed}}}}} | ||
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group11style|}}} | |titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group11style|}}}{{{sect11titlestyle|}}} | ||
|liststyle = {{{liststyle|}}}{{{list11style|}}} | |liststyle = {{{liststyle|}}}{{{list11style|}}}{{{content11style|}}} | ||
|title = {{{group11 | |title = {{{group11|}}}{{{sect11|}}}{{{section11|}}} | ||
|list1 = {{{list11 | |list1 = {{{list11|}}}{{{content11|}}} | ||
|image = {{{image11|}}} | |image = {{{image11|}}} | ||
|imageleft = {{{imageleft11|}}} | |imageleft = {{{imageleft11|}}} | ||
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | |{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}} | ||
}} | }} | ||
| {{{list11|}}} | | {{{list11|}}}{{{content11|}}} | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 21:30, 21 December 2010
Template documentation[create]