الگو:Sidebar with collapsible lists/توضیحات: تفاوت میان نسخهها
(←Usage: remove 1) |
جز (Engineer صفحهٔ الگو:Sidebar with collapsible lists/doc را به الگو:Sidebar with collapsible lists/توضیحات منتقل کرد: جایگزینی متن - '/doc' به '/توضیحات') |
||
(یک نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
(بدون تفاوت)
|
نسخهٔ کنونی تا ۱۱ فوریهٔ ۲۰۲۲، ساعت ۰۰:۱۰
This template is used on approximately ۶۵٬۰۰۰ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation. |
This template uses Lua: |
{{Sidebar with collapsible lists}} is a version of {{Sidebar}} which offers collapsible lists as an alternative to Sidebar's content parameters.
Usage[ویرایش مبدأ]
{{{pretitle}}} |
{{{title}}} |
---|
{{{image}}} |
{{{above}}} |
{{{heading1}}} |
{{{list1title}}} {{{list1}}} |
{{{list2title}}} {{{list2}}} |
{{{headingN}}} |
{{{listNtitle}}} {{{listN}}} |
{{{contentN}}} |
{{{below}}} |
Parameters with infrequent use omitted.
{{Sidebar with collapsible lists
| name = {{subst:PAGENAME}}
| pretitle =
| title =
| image =
| expanded = {{{expanded|}}}
| 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 {{Sidebar}}. Other {{Sidebar}} parameters not shown here (e.g. navbar) may also be used.
- expanded and listNname
- expanded is used to indicate which (if any) list named listNname is shown expanded when the template is first displayed; see {{Collapsible lists option}}.
- listtitlestyle and liststyle
- These are the equivalent of, respectively, {{Collapsible list}}'s titlestyle and liststyle parameters.
List {{{list1}}} without {{{list1title}}} |
Any listN used without an accompanying listNtitle is still presented as a collapsible list under {{Collapsible list}}'s default title ("List"); see example opposite. [Perhaps "listN"s without "listNtitle"s should be treated as "contentN"s..?]
Other parameters[ویرایش مبدأ]
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[ویرایش مبدأ]
As with the sidebar template, {{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 {{normalwraplink|longlinkname}}
, where |longlinkname
is the long link without its square brackets.
Use the |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 backlinks with What links here.
See also[ویرایش مبدأ]
- Last pre-Lua version
- {{Collapsible list}}
- {{Collapsible lists option}}
- {{Navbox with collapsible groups}}
- {{Sidebar}}
- Wikipedia:UBLIST, for help in using unbulleted lists in fields.