Difference between revisions of "Template:Canada topic"
Jump to navigation
Jump to search
imported>117Avenue (link by province or territory) |
imported>TonyTheTiger (adding {{collapsible option}} and/or {{{state}}}) |
||
| Line 8: | Line 8: | ||
|name = Canada topic | |name = Canada topic | ||
|title = <span style="vertical-align:1px;">[[Image:Maple Leaf (from roundel).svg|20x20px]]</span> {{#if:{{{2|}}}|<!--then:--><font color=#00006E>[[{{{2}}}]]</font>|<!--else:--><font color=#00006E>[[{{{1|}}} Canada]]</font>}} (by <font color=#00006E>[[{{#ifexist:{{str crop|{{{1}}}|2}} by province or territory|{{str crop|{{{1}}}|2}} by province or territory|Provinces and territories of Canada}}|province or territory]]</font>) | |title = <span style="vertical-align:1px;">[[Image:Maple Leaf (from roundel).svg|20x20px]]</span> {{#if:{{{2|}}}|<!--then:--><font color=#00006E>[[{{{2}}}]]</font>|<!--else:--><font color=#00006E>[[{{{1|}}} Canada]]</font>}} (by <font color=#00006E>[[{{#ifexist:{{str crop|{{{1}}}|2}} by province or territory|{{str crop|{{{1}}}|2}} by province or territory|Provinces and territories of Canada}}|province or territory]]</font>) | ||
| + | |state = {{{state|autocollapse}}} | ||
|listclass = hlist | |listclass = hlist | ||
|list1 = | |list1 = | ||
| Line 34: | Line 35: | ||
}}<noinclude> | }}<noinclude> | ||
| + | {{collapsible option}} | ||
* '''<code>First parameter</code>''': Prefix for topic in question (e.g. <code>Geography of</code>) | * '''<code>First parameter</code>''': Prefix for topic in question (e.g. <code>Geography of</code>) | ||
Revision as of 04:20, 13 February 2013
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state= parameter may be used:
|state=collapsed:{{Canada topic|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{Canada topic|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{Canada topic|state=autocollapse}}
If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.
First parameter: Prefix for topic in question (e.g.Geography of)Second parameter: Unlinked title, if different from "First parameterof Canada". (e.g.Canada's Geography)provinces_onlyset asprovinces_only=trueto not display the territories.
fa:الگو:موضوع کانادا ms:Templat:Canada topic pt:Predefinição:Canadá tópico ru:Шаблон:Канада по регионам