Difference between revisions of "Template:Camden local elections"

From blackwiki
Jump to navigation Jump to search
imported>Bastin
(Add noinclude)
imported>NSH002
(tidy up new template (remove non-template cat; correct use of hlist, +{{collapsible option}}; + election template cat; fix "state=" parm; collapsible groups abbr))
Line 1: Line 1:
 
{{Navbox with collapsible groups
 
{{Navbox with collapsible groups
|name = Camden local elections
+
| name = Camden local elections
|state = {{{state|<includeonly>autocollapse</includeonly><noinclude>expanded</noinclude>}}}
+
| title = [[Camden local elections]]
|title = [[Camden local elections]]
+
| state = {{{state<includeonly>|autocollapse</includeonly>}}}
 +
| listclass = hlist
  
|list1 = <div class="hlist">
+
| list1 =
 
* [[Camden Council election, 1964|1964]]
 
* [[Camden Council election, 1964|1964]]
 
* [[Camden Council election, 1968|1968]]
 
* [[Camden Council election, 1968|1968]]
Line 19: Line 20:
 
* [[Camden Council election, 2010|2010]]
 
* [[Camden Council election, 2010|2010]]
 
* ''[[Camden Council election, 2014|2014]]''
 
* ''[[Camden Council election, 2014|2014]]''
</div>
 
  
|group2 = Electoral wards
+
| group2 = Electoral wards
|list2 = <div class="hlist">
+
| abbr2 = Wards
 +
| state2 = <noinclude>expanded</noinclude>
 +
| list2 =
 
* [[Belsize (ward)|Belsize]]
 
* [[Belsize (ward)|Belsize]]
 
* [[Bloomsbury (ward)|Bloomsbury]]
 
* [[Bloomsbury (ward)|Bloomsbury]]
Line 41: Line 43:
 
* [[West Hampstead (ward)|West Hampstead]]
 
* [[West Hampstead (ward)|West Hampstead]]
  
</div>
+
}}<noinclude>
}}
 
 
 
<noinclude>
 
 
 
 
{{documentation
 
{{documentation
  |content =
+
  | content =
{{collapsible sections option |list=Wards}}
+
{{collapsible option}}
 +
{{collapsible sections option |list = Wards}}
 
}}
 
}}
  
[[Category:Camden]]
+
[[Category:United Kingdom election templates]]
 
</noinclude>
 
</noinclude>

Revision as of 08:17, 11 January 2014

50px Template documentation

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Camden local elections|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Camden local elections|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Camden local elections|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.

How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
  • Wards