Template:Template group/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Template group (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

For grouping related templates (usually collapsed; see Wikipedia:Navigational templates) that appear beside each other on a page (usually at the bottom; see, for example, articles linked from here).

[edit] Basic syntax

{{Template group
|title = 
|list  = 
}}

[edit] Parameters

state  
(optional) Set to autocollapse, collapsed, or uncollapsed to set whether the box starts in a collapsed or uncollapsed mode. Defaults to uncollapsed if nothing is set.
title  
(optional) Title to appear in titlebar above group of templates (e.g. "Geographic locale", "Related topics", etc). If this parameter is absent, then the output would be identical to the value of list.
titlestyle 
(optional) Any styles to apply to titlebar (default background color is "white")
list  
(required) List of templates in group, using standard wiki syntax (i.e. braces; see example below)

[edit] Example

(from article on Cyprus)

[edit] Code

{{Template group
|title = Geographic locale
|list  = 
{{Countries of Europe}}
{{Countries and territories of the Middle East}}
{{Countries of Southwest Asia}}
{{Countries of Asia}}
{{Countries bordering the Mediterranean Sea}}
}}

[edit] Result