Vorlage:Sidebar with collapsible lists/doc
Vorlage:Documentation subpage Vorlage:High-use
Datei:Handheld devices no.svg | This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation. |
Interner Lua-Fehler: Der Interpreter beendet sich mit dem Status 127.
Vorlage:Tl is a version of Vorlage:Tl which offers collapsible lists as an alternative to Sidebar's content parameters.
Usage
Vorlage:Generic template demo Parameters with infrequent use omitted.
{{Sidebar with collapsible lists | name = {{subst:PAGENAME}} | pretitle = | title = | image = | expanded = {{{expanded|{{{1|}}}}}} | headingstyle = | listtitlestyle = | liststyle = | contentstyle = <!--(same as |liststyle = ...?)--> | heading1 = | list1name = | list1title = | list1 = | heading2 = | list2name = | list2title = | list2 = <!-- ...... --> | headingN = <!--(Template:Sidebar's "headingN" and/or "contentN" parameters (where --> | contentN = <!-- N is a number) may be used to include uncollapsible lists/content)--> <!-- ...... --> | below = }}
Parameters
The topmost parameters (including name, outertitle, topimage, pretitle, title, image, headingstyle, contentstyle) are described at Vorlage:Tl. Other Vorlage:Tlf parameters not shown here (e.g. navbar) may also be used.
- expanded Vorlage:Nobold listNname
- expanded is used to indicate which (if any) list named listNname is shown expanded when the template is first displayed; see Vorlage:Tl.
- listtitlestyle Vorlage:Nobold liststyle
- These are the equivalent of, respectively, Vorlage:Tl's titlestyle and liststyle parameters.
Interner Lua-Fehler: Der Interpreter beendet sich mit dem Status 127. Any listN used without an accompanying listNtitle is still presented as a collapsible list under Vorlage:Tlf's default title ("List"); see example opposite. Vorlage:Smaller
Other parameters
In addition to the above, the following collapsible list-related parameters are also available:
- listframestyle
- Sets the framestyle (see Vorlage:Tl) 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, Vorlage:Tl 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 Vorlage:Tlx, where Vorlage:Para is the long link without its square brackets.
Use the Vorlage:Para parameter to turn link wrapping off for the whole template.
Examples
Examples of this template can be found by checking the template's backlinks with What links here.
See also
- Vorlage:Diff
- Vorlage:Tl
- Vorlage:Tl
- Vorlage:Tl
- Vorlage:Tl
- Wikipedia:UBLIST, for help in using unbulleted lists in fields.