پرش به محتوا

الگو:جمع‌شوندگی: تفاوت میان نسخه‌ها

از ویکی‌پدیا، دانشنامهٔ آزاد
محتوای حذف‌شده محتوای افزوده‌شده
جز Arfarshchi صفحهٔ الگو:Collapsible option را به الگو:جمع‌شوندگی منتقل کرد
4nn1l2 (بحث | مشارکت‌ها)
آموزش اشتباه تصحیح شد
 
(۱۵ نسخهٔ میانی ویرایش شده توسط ۵ کاربر نشان داده نشد)
خط ۱: خط ۱:
{{درشت|'''انتخاب باز یا بسته بودن الگو'''}}
#تغییر_مسیر [[الگو:الگو:جمع‌شوندگی]]
* برای نمایش الگو به صورت تاشده از فرمولی به شکل <nowiki>{{</nowiki><includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly><nowiki> |state=collapsed}}</nowiki> استفاده کنید.
: برای نمایش الگو به حالت باز از <nowiki>{{</nowiki><includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly><nowiki> |state=expanded}}</nowiki> استفاده کنید.
: اگر می‌خواهید این الگو فقط زمانی که الگوی هم‌نوع آن در صفحه باشد شکل تاشده به‌خود بگیرد از <nowiki>{{</nowiki><includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly><nowiki> |state=autocollapse}}</nowiki> استفاده کنید.
* {{#if:{{{state|}}}{{{default|}}}
| '''''{{#if:{{{state|}}} |{{{state}}} |{{{default}}} }}''' به‌عنوان حالت پیش‌فرض قرار داده شده‌است.
| اگر حالتی را تعیین نکرده باشید (پارامتر ''state'' بین کد الگو را ببینید)، autocollapse یا همان تاشدگی خودبه‌خودی، حالت پیش‌فرض است.
}}<!--

Add {{pp-template}} if template where this template is transcluded is protected:
-->{{Template other <!--(i.e. "If on template page, then:")-->
| {{#if:{{PROTECTIONLEVEL:edit}} |{{pp-template|docusage=yes}}
| {{#if:{{PROTECTIONLEVEL:move}} |{{pp-move|docusage=yes|small=yes}} }}
}} }}<noinclude>
{{توضیحات}}
</noinclude>

نسخهٔ کنونی تا ‏۵ ژانویهٔ ۲۰۱۷، ساعت ۱۹:۲۹

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

  • برای نمایش الگو به صورت تاشده از فرمولی به شکل {{BASEPAGENAME |state=collapsed}} استفاده کنید.
برای نمایش الگو به حالت باز از {{BASEPAGENAME |state=expanded}} استفاده کنید.
اگر می‌خواهید این الگو فقط زمانی که الگوی هم‌نوع آن در صفحه باشد شکل تاشده به‌خود بگیرد از {{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):

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

  • برای نمایش الگو به صورت تاشده از فرمولی به شکل {{جمع‌شوندگی |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 |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.

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