الگو:Glossary infobox/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد

This is a back-end template for table-based glossary templates that are transcluded into (i.e. , displayed) in relevant articles. For examples of glossary templates that use {{Glossary infobox}} for their layout as well as the corresponding lists of articles where they are transcluded, see #Example glossaries that use this template below.

Example of a {{Glossary infobox}}-based glossary
  • First term – تعریف واژه یا اصطلاح اول در اینجا قرار می‌گیرد
  • Second term – تعریف واژه یا اصطلاح دوم در اینجا قرار می‌گیرد
  • Third term – تعریف واژه یا اصطلاح سوم در اینجا قرار می‌گیرد
  • Fourth term – تعریف واژه یا اصطلاح چهارم در اینجا قرار می‌گیرد
  • ...
  • nth term – تعریف واژه یا اصطلاح nام در اینجا قرار می‌گیرد

استفاده[ویرایش]

To use this template, copy/paste the following into a glossary template page; replace the comment in the header parameter with the desired header for the glossary and add a set of terms and their definitions in the definitions parameter using the format provided below.

{{Glossary infobox
| template name = {{subst:PAGENAME}}
| align         = {{{align|right}}}
| width         = {{{width|400px}}}
| collapse      = {{{collapse|}}}
| header        = <!--Replace this text with the desired header for the glossary-->
| definitions   =
* '''[[First term]]''' – definition of the first term goes here
* '''[[Second term]]''' – definition of the second term goes here
* '''[[Third term]]''' – definition of the third term goes here
* '''[[Fourth term]]''' – definition of the fourth term goes here
* ...
* '''[[nth term]]''' – definition of the nth term goes here
}}

پارامترهای الگو[ویرایش]

پارامترهای ضروری[ویرایش]

  • |template name= – this parameter adds a {{navbar}} at the bottom of the glossary. Using |template name={{subst:PAGENAME}} will automatically set this parameter to the correct page; alternatively, this can be set manually by setting the template page name without the "Template:" prefix as the input for |template name=.
  • |header= or |above= – either of these parameters can be used to add a header for the glossary.
  • |definitions= or |data1= – either of these parameters can be used to add a set of terms and their corresponding definitions; the format for this list of definitions is included in the sample template code above.

پارامترهای اختیاری[ویرایش]

  • |align= – this parameter sets the alignment of the glossary in an article. The only accepted inputs for this parameter are "left" and "right". The default is "right" if this parameter is omitted.
  • |width= – this parameter is used to specify the width of the glossary infobox in pixels. When setting the width, "px" must be added to the end of the inputted value. The default is "400px" if this parameter is omitted.
  • |collapse= – this parameter is used to collapse the glossary whenever |collapse= is set to "true", "yes, "y", or any other value that produces "yes" in Template:Yesno. If this parameter is omitted, the glossary can't be collapsed in articles on a case-by-case basis.

مثال‌هایی از فهرست اصطلاحاتی که از این الگو استفاده می‌کنند[ویرایش]

جستارهای وابسته[ویرایش]