Templat:Kotak info glossarium/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

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 {{Kotak info glossarium}} for their layout as well as the corresponding lists of articles where they are transcluded, see #Example glossaries that use this template below.

Contoh sebuah glossarium menggunakan {{Kotak info glossarium}}

Penggunaan[sunting sumber]

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.

{{Kotak info glossarium
| template name = {{subst:PAGENAME}}
| align         = {{{align|right}}}
| width         = {{{width|400px}}}
| collapse      = {{{collapse|}}}
| header        = <!--Replace this text with the desired header for the glossary-->
| definitions   = 
* '''[[Istilah pertama]]''' – definisi istilah pertama taruh di sini
* '''[[Istilah kedua]]''' – definisi istilah kedua taruh di sini
* '''[[Istilah ketiga]]''' – definisi istilah ketiga taruh di sini
* '''[[Istilah keempat]]''' – definisi istilah keempat taruh di sini
* ...
* '''[[Istilah ke-n]]''' – definisi istilah ke-n taruh di sini
}}

Parameter templat[sunting sumber]

Parameter wajib[sunting sumber]

  • |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.

Parameter opsional[sunting sumber]

  • |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 Templat:Yesno. If this parameter is omitted, the glossary can't be collapsed in articles on a case-by-case basis.

Contoh templat glossarium yang menggunakan templat ini[sunting sumber]

Lihat pula[sunting sumber]