Template:Sidebar with collapsible lists: Difference between revisions
From Vigyanwiki
Template>Plastikspork (Use a simplified version of Template:collapsible list, now a subtemplate, since we don't need the new <li> markup, and it causes problems here.) |
Template>Thumperward (sync with sandbox. general code cleanup to make future diffs easier to follow) |
||
Line 1: | Line 1: | ||
{{ | {{ sidebar | ||
|wraplinks = {{{wraplinks|}}} | | wraplinks = {{{wraplinks|}}} | ||
|name = {{{name|{{PAGENAME}}}}} | | name = {{{name|{{PAGENAME}}}}} | ||
|class = {{{class|{{{bodyclass|}}}}}} | | class = {{{class|{{{bodyclass|}}}}}} | ||
|style = {{{style|{{{bodystyle|}}}}}} | | style = {{{style|{{{bodystyle|}}}}}} | ||
|cellspacing = {{{cellspacing|0}}} | | cellspacing = {{{cellspacing|0}}} | ||
|cellpadding = {{{cellpadding|0}}} | | cellpadding = {{{cellpadding|0}}} | ||
|outertitle = {{{outertitle | | outertitle = {{{outertitle|}}} | ||
|outertitleclass = {{{outertitleclass|}}} | | outertitleclass = {{{outertitleclass|}}} | ||
|outertitlestyle = {{{outerttitlestyle|}}} | | outertitlestyle = {{{outerttitlestyle|}}} | ||
|topimage = {{{topimage | | topimage = {{{topimage|}}} | ||
|topimageclass = {{{topimageclass|}}} | | topimageclass = {{{topimageclass|}}} | ||
|topimagestyle = {{{topimagestyle|}}} | | topimagestyle = {{{topimagestyle|}}} | ||
|topcaption = {{{topcaption | | topcaption = {{{topcaption|}}} | ||
|topcaptionstyle = {{{topcaptionstyle|}}} | | topcaptionstyle = {{{topcaptionstyle|}}} | ||
|pretitle = {{{pretitle | | pretitle = {{{pretitle|}}} | ||
|pretitlestyle = {{{pretitlestyle|}}} | | pretitlestyle = {{{pretitlestyle|}}} | ||
|title = {{{title | | title = {{{title|}}} | ||
|titleclass = {{{titleclass|}}} | | titleclass = {{{titleclass|}}} | ||
|titlestyle = {{{titlestyle|}}} | | titlestyle = {{{titlestyle|}}} | ||
|image = {{{image | | image = {{{image|}}} | ||
|imageclass = {{{imageclass|}}} | | imageclass = {{{imageclass|}}} | ||
|imagestyle = {{{imagestyle|}}} | | imagestyle = {{{imagestyle|}}} | ||
|caption = {{{caption | | caption = {{{caption|}}} | ||
|captionstyle = {{{captionstyle|}}} | | captionstyle = {{{captionstyle|}}} | ||
|abovestyle = border-top:1px solid #aaa; border-bottom:1px solid #aaa; {{{abovestyle|}}} | | abovestyle = border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; {{{abovestyle|}}} | ||
|above = {{{above | | above = {{{above|}}} | ||
|headingstyle = {{{headingstyle|}}} | | headingstyle = {{{headingstyle|}}} | ||
|contentstyle = {{{contentstyle|}}} | | contentstyle = {{{contentstyle|}}} | ||
|heading1style = {{{heading1style|}}} | | heading1style = {{{heading1style|}}} | ||
|heading1 = {{{heading1|}}} | | heading1 = {{{heading1|}}} | ||
|content1style = {{{content1style|}}} | | content1style = {{{content1style|}}} | ||
|content1 = {{#if:{{{list1 | | content1 = {{#if:{{{list1|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list1framestyle|}}} | |||
| title = {{{list1title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list1titlestyle|}}} | |||
| liststyle = {{{liststyle|}}}{{{list1style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list1name}}}=y}} | |||
| {{{list1}}} | |||
}}| | |||
{{{content1|}}} | |||
}} | |||
|heading2style = {{{heading2style|}}} | | heading2style = {{{heading2style|}}} | ||
|heading2 = {{{heading2|}}} | | heading2 = {{{heading2|}}} | ||
|content2style = {{{content2style|}}} | | content2style = {{{content2style|}}} | ||
|content2 = {{#if:{{{list2 | | content2 = {{#if:{{{list2|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list2framestyle|}}} | |||
| title = {{{list2title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list2titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list2style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list2name}}}=y}} | |||
| {{{list2}}} | |||
}}| | |||
{{{content2|}}} | |||
}} | |||
|heading3style = {{{heading3style|}}} | | heading3style = {{{heading3style|}}} | ||
|heading3 = {{{heading3|}}} | | heading3 = {{{heading3|}}} | ||
|content3style = {{{content3style|}}} | | content3style = {{{content3style|}}} | ||
|content3 = {{#if:{{{list3 | | content3 = {{#if:{{{list3|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list3framestyle|}}} | |||
| title = {{{list3title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list3titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list3style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list3name}}}=y}} | |||
| {{{list3}}} | |||
}}| | |||
{{{content3|}}} | |||
}} | |||
|heading4style = {{{heading4style|}}} | | heading4style = {{{heading4style|}}} | ||
|heading4 = {{{heading4|}}} | | heading4 = {{{heading4|}}} | ||
|content4style = {{{content4style|}}} | | content4style = {{{content4style|}}} | ||
|content4 = | | content4 = {{#if:{{{list4|}}} | ||
| {{Sidebar with collapsible lists/row | |||
|framestyle = {{{listframestyle|}}}{{{list4framestyle|}}} | |||
|title = {{{list4title|}}} | |||
|titlestyle = {{{listtitlestyle|}}}{{{list4titlestyle|}}} | |||
|liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list4style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list4name}}}=y}} | |||
| {{{list4}}} | |||
}}| | |||
{{{content4|}}} | |||
}} | |||
|heading5style = {{{heading5style|}}} | | heading5style = {{{heading5style|}}} | ||
|heading5 = {{{heading5|}}} | | heading5 = {{{heading5|}}} | ||
|content5style = {{{content5style|}}} | | content5style = {{{content5style|}}} | ||
|content5 = {{#if:{{{list5|}}} | | content5 = {{#if:{{{list5|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list5framestyle|}}} | |||
| title = {{{list5title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list5titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list5style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list5name}}}=y}} | |||
| {{{list5}}} | |||
}}| | |||
{{{content5|}}} | |||
}} | |||
|heading6style = {{{heading6style|}}} | | heading6style = {{{heading6style|}}} | ||
|heading6 = {{{heading6|}}} | | heading6 = {{{heading6|}}} | ||
|content6style = {{{content6style|}}} | | content6style = {{{content6style|}}} | ||
|content6 = {{#if:{{{list6|}}} | | content6 = {{#if:{{{list6|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list6framestyle|}}} | |||
| title = {{{list6title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list6titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list6style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list6name}}}=y}} | |||
| {{{list6}}} | |||
}}| | |||
{{{content6|}}} | |||
}} | |||
|heading7style = {{{heading7style|}}} | | heading7style = {{{heading7style|}}} | ||
|heading7 = {{{heading7|}}} | | heading7 = {{{heading7|}}} | ||
|content7style = {{{content7style|}}} | | content7style = {{{content7style|}}} | ||
|content7 = {{#if:{{{list7|}}} | | content7 = {{#if:{{{list7|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list7framestyle|}}} | |||
| title = {{{list7title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list7titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list7style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list7name}}}=y}} | |||
| {{{list7}}} | |||
}}| | |||
{{{content7|}}} | |||
}} | |||
|heading8style = {{{heading8style|}}} | | heading8style = {{{heading8style|}}} | ||
|heading8 = {{{heading8|}}} | | heading8 = {{{heading8|}}} | ||
|content8style = {{{content8style|}}} | | content8style = {{{content8style|}}} | ||
|content8 = {{#if:{{{list8|}}} | | content8 = {{#if:{{{list8|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list8framestyle|}}} | |||
| title = {{{list8title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list8titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list8style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list8name}}}=y}} | |||
| {{{list8}}} | |||
}}| | |||
{{{content8|}}} | |||
}} | |||
|heading9style = {{{heading9style|}}} | | heading9style = {{{heading9style|}}} | ||
|heading9 = {{{heading9|}}} | | heading9 = {{{heading9|}}} | ||
|content9style = {{{content9style|}}} | | content9style = {{{content9style|}}} | ||
|content9 = {{#if:{{{list9|}}} | | content9 = {{#if:{{{list9|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list9framestyle|}}} | |||
| title = {{{list9title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list9titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list9style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list9name}}}=y}} | |||
| {{{list9}}} | |||
}}| | |||
{{{content9|}}} | |||
}} | |||
|heading10style = {{{heading10style|}}} | | heading10style = {{{heading10style|}}} | ||
|heading10 = {{{heading10|}}} | | heading10 = {{{heading10|}}} | ||
|content10style = {{{content10style|}}} | | content10style = {{{content10style|}}} | ||
|content10 = {{#if:{{{list10|}}} | | content10 = {{#if:{{{list10|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list10framestyle|}}} | |||
| title = {{{list10title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list10titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list10style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list10name}}}=y}} | |||
| {{{list10}}} | |||
}}| | |||
{{{content10|}}} | |||
}} | |||
|heading11style = {{{heading11style|}}} | | heading11style = {{{heading11style|}}} | ||
|heading11 = {{{heading11|}}} | | heading11 = {{{heading11|}}} | ||
|content11style = {{{content11style|}}} | | content11style = {{{content11style|}}} | ||
|content11 = {{#if:{{{list11|}}} | | content11 = {{#if:{{{list11|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list11framestyle|}}} | |||
| title = {{{list11title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list11titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list11style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list11name}}}=y}} | |||
| {{{list11}}} | |||
}}| | |||
{{{content11|}}} | |||
}} | |||
|heading12style = {{{heading12style|}}} | | heading12style = {{{heading12style|}}} | ||
|heading12 = {{{heading12|}}} | | heading12 = {{{heading12|}}} | ||
|content12style = {{{content12style|}}} | | content12style = {{{content12style|}}} | ||
|content12 = {{#if:{{{list12|}}} | | content12 = {{#if:{{{list12|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list12framestyle|}}} | |||
| title = {{{list12title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list12titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list12style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list12name}}}=y}} | |||
| {{{list12}}} | |||
}}| | |||
{{{content12|}}} | |||
}} | |||
|heading13style = {{{heading13style|}}} | | heading13style = {{{heading13style|}}} | ||
|heading13 = {{{heading13|}}} | | heading13 = {{{heading13|}}} | ||
|content13style = {{{content13style|}}} | | content13style = {{{content13style|}}} | ||
|content13 = {{#if:{{{list13|}}} | | content13 = {{#if:{{{list13|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list13framestyle|}}} | |||
| title = {{{list13title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list13titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list13style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list13name}}}=y}} | |||
| {{{list13}}} | |||
}}| | |||
{{{content13|}}} | |||
}} | |||
|heading14style = {{{heading14style|}}} | | heading14style = {{{heading14style|}}} | ||
|heading14 = {{{heading14|}}} | | heading14 = {{{heading14|}}} | ||
|content14style = {{{content14style|}}} | | content14style = {{{content14style|}}} | ||
|content14 = {{#if:{{{list14|}}} | | content14 = {{#if:{{{list14|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list14framestyle|}}} | |||
| title = {{{list14title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list14titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list14style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list14name}}}=y}} | |||
| {{{list14}}} | |||
}}| | |||
{{{content14|}}} | |||
}} | |||
|heading15style = {{{heading15style|}}} | | heading15style = {{{heading15style|}}} | ||
|heading15 = {{{heading15|}}} | | heading15 = {{{heading15|}}} | ||
|content15style = {{{content15style|}}} | | content15style = {{{content15style|}}} | ||
|content15 = {{#if:{{{list15 | | content15 = {{#if:{{{list15|}}}| | ||
{{ sidebar with collapsible lists/row | |||
| framestyle = {{{listframestyle|}}}{{{list15framestyle|}}} | |||
| title = {{{list15title|}}} | |||
| titlestyle = {{{listtitlestyle|}}}{{{list15titlestyle|}}} | |||
| liststyle = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list15style|}}} | |||
| expand = {{#switch:{{{expanded|}}}|all|{{{list15name}}}=y}} | |||
| {{{list15}}} | |||
}}| | |||
{{{content15|}}} | |||
}} | |||
| content16style = padding: 0; line-height: 0.4em | |||
|content16style = padding:0; line-height:0.4em | | content16 = {{#if:{{{below|}}}| }} | ||
|content16 = {{#if:{{{below | |||
|belowstyle = border-top:1px solid #aaa; border-bottom:1px solid #aaa; {{{belowstyle|}}} | | belowstyle = border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; {{{belowstyle|}}} | ||
|below = {{{below | | below = {{{below|}}} | ||
|navbar | | navbar = {{{navbar|{{{tnavbar|<noinclude>none</noinclude>}}}}}} | ||
|navbarstyle | | navbarstyle = padding-top: 0.6em; {{{navbarstyle|{{{tnavbarstyle|}}}}}} | ||
|navbaroptions = {{{navbaroptions|{{{tnavbaroptions|}}}}}} | | navbaroptions = {{{navbaroptions|{{{tnavbaroptions|}}}}}} | ||
}}<noinclude>{{documentation}}<!-- Please add | }}<noinclude>{{documentation}}<!-- Please add category and language links to the <includeonly> section at the bottom of [[Template:Sidebar with collapsible lists/doc]] page, not here --></noinclude> | ||
</noinclude> |
Revision as of 14:57, 29 March 2011
Template documentation
[create]