Difference between revisions of "Template:Departments of the Sierra Leone Government"

From blackwiki
Jump to navigation Jump to search
imported>Leutha
imported>Leutha
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
 
* {{Icon|Commons}} [[commons:Category:Departments of the Sierra Leone Government|'''Commons''']]
 
* {{Icon|Commons}} [[commons:Category:Departments of the Sierra Leone Government|'''Commons''']]
  
}}
+
}}<includeonly><!--
 +
--></includeonly><noinclude>
 +
<br/>{{collapsible option}}
  
 
===Usage===
 
===Usage===
Line 29: Line 31:
  
 
[[Category:Sierra Leone government department templates| ]]
 
[[Category:Sierra Leone government department templates| ]]
<templatedata>
+
 
{
 
"params": {
 
"state": {},
 
"type": {},
 
"title": {}
 
},
 
"format": "{{_\n| _ = _\n}}"
 
}
 
</templatedata>
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:53, 2 April 2017


Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Departments of the Sierra Leone Government|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Departments of the Sierra Leone Government|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Departments of the Sierra Leone Government|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

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.

Usage

There are two parameters:

  • type
  • title

Type is either Ministerial or Non-ministerial and categorises the article automatically. Title is used to sort the article if necessary, as with those articles that begin with "Department of" or "Ministry of".