வார்ப்புரு:Sidebar with collapsible lists/doc
{{documentation subpage}}
 {{lua|Module:Sidebar}}
 &lt;!---PLEASE ADD METADATA (categories, interwikis) TO THE &lt;includeonly&gt; SECTION
      AT THE BOTTOM OF THIS PAGE---&gt;
 {{tl|Sidebar with collapsible lists}} is a version of the {{tlx|sidebar}} template which offers [[Help:Collapsing|collapsible]] lists as an alternative to sidebar's ''content'' parameters.
 
 == Usage ==
 {{Sidebar with collapsible lists
 | name       = {{PAGENAME}}
 | outertitle = {{{outertitle}}}
 | topimage   = {{{topimage}}}
 | topcaption = {{{topcaption}}}
 | pretitle   = {{{pretitle}}}
 | title      = {{{title}}}
 | image      = {{{image}}}
 | expanded   = {{{expanded|}}}
 
 | above      = {{{above}}}
 
 | heading1   = {{{heading1}}}
 | list1title = {{{list1title}}}
 | list1      = {{{list1}}}
 
 | list2title = {{{list2title}}}
 | list2      = {{{list2}}}
 
 | list3title = {{{list3title}}}
 | list3      = {{{list3}}}
 
 ...
 
 | below = {{{below}}}
 }}
 Parameters with infrequent use omitted.
 
 &lt;pre style=&quot;overflow:auto;&quot;&gt;
 {{Sidebar with collapsible lists
 | name       = {{subst:PAGENAME}}
 | outertitle = 
 | topimage   = 
 | pretitle   = 
 | title      = 
 | image      = 
 | expanded   = {{{expanded|{{{1|}}}}}} &lt;!-- displays a specific list --&gt;
 
 | headingstyle   = 
 | listtitlestyle = 
 | contentstyle   = 
 
 | heading1    = 
 | list1name   = 
 | list1title  = 
 | list1       = 
 
 | heading2    = 
 | list2name   = 
 | list2title  = 
 | list2       = 
 
 &lt;!-- ...  --&gt;
 
 }}
 &lt;/pre&gt;
 
 ==Parameters==
 The topmost parameters (including name, outertitle, topimage, pretitle, title, image, headingstyle, contentstyle) are defined at the [[Template:Sidebar|Sidebar template page]].
 
 The ''listtitlestyle'' and ''liststyle'' parameters are the equivalent of {{tl|collapsible list}}'s ''titlestyle'' and ''liststyle'' parameters, while each ''listNtitle'' and ''listN'' parameter is the equivalent of {{tl|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 {{tl|collapsible lists option}}.
 
 === Other parameters ===
 In addition to the above, the following collapsible list-related parameters are also available:
 
 ; ''listframestyle''  : Sets the framestyle (see {{tl|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 ==
 As with the sidebar template, {{tl|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 from becoming too wide. Use {{tlx|normalwraplink|''longlinkname''}}, where {{para||''longlinkname''}} is the long link without its square brackets.
 
 Use the {{para|wraplinks|true}} parameter to turn link wrapping off for the whole template.
 
 ==Examples==
 Examples of this template can be found by checking the template's [[Help:What links here|backlinks]] with &quot;[http://en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&amp;target=Template%3ASidebar+with+collapsible+lists&amp;namespace=10 What links here]&quot;.
 
 == See also ==
 * {{tl|Collapsible list}}
 * {{tl|Collapsible lists option}}
 * {{tl|Navbox with collapsible groups}}
 * {{tl|Sidebar}}
 * [[Wikipedia:UBLIST]] – for help in using unbulleted lists in fields
 
 &lt;includeonly&gt;{{#ifeq:{{PAGENAME}}|Sidebar with collapsible lists|
 &lt;!--Categories--&gt;
 [[Category:Sidebar templates| ]]
 [[Category:Wikipedia metatemplates]]
 [[Category:Navigational boxes]]
 [[Category:Exclude in print]]