پرش به محتوا

الگو:جمع‌شوندگی/توضیحات

از فراحوزه

الگو:زیرصفحه توضیحات

استفاده

الگو:چپ‌چین الگو:پیوند الگو 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 الگو:پارا. This modifies the message so that it reads (if it were used for itself): الگو:پایان چپ‌چین

انتخاب باز یا بسته بودن الگو

  • برای نمایش الگو به صورت تاشده از فرمولی به شکل {{جمع‌شوندگی |state=collapsed}} استفاده کنید.
برای نمایش الگو به حالت باز از {{جمع‌شوندگی |state=expanded}} استفاده کنید.
اگر می‌خواهید این الگو فقط زمانی که الگوی هم‌نوع آن در صفحه باشد شکل تاشده به‌خود بگیرد از {{جمع‌شوندگی |state=autocollapse}} استفاده کنید.
  • اگر حالتی را تعیین نکرده باشید (پارامتر state بین کد الگو را ببینید)، autocollapse یا همان تاشدگی خودبه‌خودی، حالت پیش‌فرض است.

الگو:چپ‌چین

(This possibility is enabled by including {{{1|}}} as part of a collapsible template's state parameter – for instance, as الگو:پارا or الگو:پارا, etc. If, however, the template includes collapsible sections within itself (e.g. الگو:پیوند الگو), then enabling this possibility may introduce ambiguity as regards what is to be collapsed or expanded. In those instances, therefore, the requirement to use الگو:پارا 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. الگو:پایان چپ‌چین

جستارهای وابسته