الگو:جمعشوندگی
|
نمونه | |
|state=collapsed | ... برای نمایش الگو در حالت جمعشده، پنهانشده و جدا از نوار عنوان. | {{BASEPAGENAME |state=collapsed}} |
|state=expanded | ... برای نمایش الگو در حالت بازشده، کاملاً قابل مشاهده. | {{BASEPAGENAME |state=expanded}} |
|state=autocollapse | ... برای نمایش الگو در حالت جمعشده اما فقط اگر الگویی از همان نوع در صفحه وجود داشته باشد. |
{{BASEPAGENAME |state=autocollapse}} |
- مگر اینکه غیر از این تنظیم شود (پارامتر
state
را در کد الگو ببینید)، حالت پیشفرض الگو autocollapse است.
استفاده
{{جمعشوندگی}} provides a standardised message for ویکیپدیا:تراگنجانش on the pages of collapsible templates whose collapsibility may be managed by the parameter state
.
It may be used on either the template page itself (wrapped within <noinclude>...</noinclude>
tags) or on the template's {{زیرصفحه توضیحات}}.
Indicating optional use of state name
The state
parameter used to manage collapsible templates need not always be named explicitly, i.e. {{[Template name]|state}} can be the same as {{[Template name]|state=state}}. To indicate this in the {{جمعشوندگی}} message, add the parameter |statename=optional
. This modifies the message so that it reads (if it were used for itself):
|
نمونه | |
|collapsed | ... برای نمایش الگو در حالت جمعشده، پنهانشده و جدا از نوار عنوان. | {{جمعشوندگی |collapsed}} |
|expanded | ... برای نمایش الگو در حالت بازشده، کاملاً قابل مشاهده. | {{جمعشوندگی |expanded}} |
|autocollapse | ... برای نمایش الگو در حالت جمعشده اما فقط اگر الگویی از همان نوع در صفحه وجود داشته باشد. |
{{جمعشوندگی |autocollapse}} |
- مگر اینکه غیر از این تنظیم شود (پارامتر
state
را در کد الگو ببینید)، حالت پیشفرض الگو autocollapse است.
{{{1|}}}
as part of a collapsible template's state
parameter – for instance, as |state={{{state|{{{1|}}}}}}
or |state={{{state|{{{1|<noinclude>expanded</noinclude>}}}}}}
, etc. If, however, the template includes collapsible sections within itself (e.g. {{Navbox with collapsible groups}}), then enabling this possibility may introduce ambiguity as regards what is to be collapsed or expanded. In those instances, therefore, the requirement to use |state=
should be retained.)تغییر حالت پیشفرض
To change the default state {{جمعشوندگی}} reports in its second bullet-point, add the parameter |default=collapsed
or |default=expanded
accordingly. To restore the default report, remove any |default=
previously included.