Template:Sidebar with collapsible lists: Difference between revisions

From Clicklaw Wikibooks
Jump to navigation Jump to search
No edit summary
m (1 revision)
 
(3 intermediate revisions by the same user not shown)
Line 264: Line 264:
             | {{{content15|}}}
             | {{{content15|}}}
             }}
             }}
|heading16style = {{{heading16style|}}}
|heading16 = {{{heading16|}}}
|content16style = {{{content16style|}}}
|content16 = {{#if:{{{list16<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list16framestyle|}}}
                |title      = {{{list16title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list16titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list16style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list16name}}}=y}}
                | {{{list16}}}
              }}
            | {{{content16|}}}
            }}
|heading17style = {{{heading17style|}}}
|heading17 = {{{heading17|}}}
|content17style = {{{content17style|}}}
|content17 = {{#if:{{{list17<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list17framestyle|}}}
                |title      = {{{list17title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list17titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list17style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list17name}}}=y}}
                | {{{list17}}}
              }}
            | {{{content17|}}}
            }}
|heading18style = {{{heading18style|}}}
|heading18 = {{{heading18|}}}
|content18style = {{{content18style|}}}
|content18 = {{#if:{{{list18<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list18framestyle|}}}
                |title      = {{{list18title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list18titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list18style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list18name}}}=y}}
                | {{{list18}}}
              }}
            | {{{content18|}}}
            }}
|heading19style = {{{heading19style|}}}
|heading19 = {{{heading19|}}}
|content19style = {{{content19style|}}}
|content19 = {{#if:{{{list19<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list19framestyle|}}}
                |title      = {{{list19title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list19titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list19style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list19name}}}=y}}
                | {{{list19}}}
              }}
            | {{{content19|}}}
            }}
|heading20style = {{{heading20style|}}}
|heading20 = {{{heading20|}}}
|content20style = {{{content20style|}}}
|content20 = {{#if:{{{list20<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list20framestyle|}}}
                |title      = {{{list20title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list20titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list20style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list20name}}}=y}}
                | {{{list20}}}
              }}
            | {{{content20|}}}
            }}
|heading21style = {{{heading21style|}}}
|heading21 = {{{heading21|}}}
|content21style = {{{content21style|}}}
|content21 = {{#if:{{{list21<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list21framestyle|}}}
                |title      = {{{list21title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list21titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list21style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list21name}}}=y}}
                | {{{list21}}}
              }}
            | {{{content21|}}}
            }}
|heading22style = {{{heading22style|}}}
|heading22 = {{{heading22|}}}
|content22style = {{{content22style|}}}
|content22 = {{#if:{{{list22<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list22framestyle|}}}
                |title      = {{{list22title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list22titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list22style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list22name}}}=y}}
                | {{{list22}}}
              }}
            | {{{content22|}}}
            }}
|heading23style = {{{heading23style|}}}
|heading23 = {{{heading23|}}}
|content23style = {{{content23style|}}}
|content23 = {{#if:{{{list23<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list23framestyle|}}}
                |title      = {{{list23title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list23titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list23style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list23name}}}=y}}
                | {{{list23}}}
              }}
            | {{{content23|}}}
            }}
|heading24style = {{{heading24style|}}}
|heading24 = {{{heading24|}}}
|content24style = {{{content24style|}}}
|content24 = {{#if:{{{list24<includeonly>|</includeonly>}}}
            | {{Collapsible list
                |framestyle = {{{listframestyle|}}}{{{list24framestyle|}}}
                |title      = {{{list24title<includeonly>|</includeonly>}}}
                |titlestyle = {{{listtitlestyle|}}}{{{list24titlestyle|}}}
                |liststyle  = padding:0.2em 0 0.4em; text-align:center; {{{liststyle|}}}{{{list24style|}}}
                |expand    = {{#switch:{{{expanded|}}}|all|{{{list24name}}}=y}}
                | {{{list24}}}
              }}
            | {{{content24|}}}
            }}


<!--Gap between sections above and any subsequent 'below' section:-->
<!--Gap between sections above and any subsequent 'below' section:-->
|content16style = padding:0; line-height:0.4em;
|content25style = padding:0; line-height:0.4em;
|content16 = {{#if:{{{below<includeonly>|</includeonly>}}} |&nbsp;}}
|content25 = {{#if:{{{below<includeonly>|</includeonly>}}} |&nbsp;}}


|belowstyle = border-top:1px solid #aaa; border-bottom:1px solid #aaa; {{{belowstyle|}}}
|belowstyle = border-top:1px solid #aaa; border-bottom:1px solid #aaa; {{{belowstyle|}}}
Line 278: Line 414:
}}<noinclude>
}}<noinclude>
{{end sidebar page}}
{{end sidebar page}}
<noinclude>[[Category:Exclude in Print]]</noinclude>
 
<!---Please add metadata (categories, interwikis) to the <includeonly> section at the
<!---Please add metadata (categories, interwikis) to the <includeonly> section at the
     bottom of [[Template:Sidebar with collapsible lists/doc]] page, not here - thanks!--->
     bottom of [[Template:Sidebar with collapsible lists/doc]] page, not here - thanks!--->
</noinclude>
</noinclude>

Latest revision as of 22:03, 13 August 2015

Documentation icon Template documentation[view] [edit] [history] [purge]

{{Sidebar with collapsible lists}} is a version of {{Sidebar}} offering {{collapsible list}}s as an alternative to Sidebar's content parameters.

Pro forma (for collapsible list-related parameters)[edit]

Parameters with infrequent use omitted.

{{Sidebar with collapsible lists

...Insert title/image/etc parameters per Template:Sidebar here...

|listtitlestyle = 
|liststyle = 

|list1name  = 
|list1title = 
|list1 = 

|list2name  = 
|list2title = 
|list2 = 

......

|list15name  = 
|list15title = 
|list15 = 

...Possible portal/tnavbar-related parameters per Template:Sidebar...

}}

The listtitlestyle and liststyle parameters are the equivalent of {{collapsible list}}'s titlestyle and liststyle parameters, while each listNtitle and listN parameter is the equivalent of {{collapsible list}}'s title and unnamed list parameter, respectively.

The listNname parameters are used to identify which, if any, list is to be shown expanded; see {{collapsible lists option}}.

Other collapsible list-related parameters[edit]

In addition to the above, the following collapsible list-related parameters are also available:

listframestyle
Sets the framestyle (see {{collapsible list}}) for the lists.
listNframestyle
Sets the framestyle for listN, overriding listframestyle.
listNtitlestyle
Sets the titlestyle for listN, overriding listtitlestyle above.
listNstyle
Sets the liststyle for listN, overriding liststyle above.

Handling long links[edit]

As with {{Sidebar}}, {{normalwraplink}} may be used to handle links that should wrap within the sidebar or otherwise need to be made to wrap in order to prevent the sidebar becoming too wide. Use {{normalwraplink|longlinkname}}, where longlinkname is the long link without its square brackets.

Use the wraplinks parameter to turn link wrapping off for the whole template.

See also[edit]

mk:Шаблон:Sidebar with collapsible lists ja:Template:Sidebar with collapsible lists pt:Predefinição:Sidebar with collapsible lists