Template:Navbox with collapsible groups

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

Synopsis

This is a variant of {{Navbox}}. Read about that template first, if you haven't already.

The primary difference is that all groups collapse by default. Setting |selected= to match a value of |abbrX= expands only that particular group (spelling out the full name does not work).

Collapsing a bulky template cuts down on noise. A hypothetical Template:Continents might use |selected=Africa on Egypt but use |selected=South America on Peru. In this way, less relevant links to France and Germany do not clutter the reader's view.

Usage

{{Navbox with collapsible groups
| name = {{subst:PAGENAME}}
| title = 
| bodyclass = hlist
| selected = {{{selected|{{{1|}}}}}}

| image = 

| abbr1 = 
| group1 = 
| list1 = 

| abbr2 = 
| group2 = 
| list2 = 

<!--...-->

| abbr20 = 
| group20 = 
| list20 = 
}}

Layout

Unlike {{Navbox}}, the groups and lists are center-aligned.

Example

"People of Interest" has been abbreviated "people" through |abbr2=people and expanded through |selected=people

{{Navbox with collapsible groups
| name = London
| title = The Complete Terrorist's Guide to [[London]]
| bodyclass = hlist
| selected = people

| group1 = Places of Interest
| abbr1 = places
| list1 = <div>
* [[London Bridge]]
* [[London Eye]]
* [[Big Ben]]
* [[Parliament]]
* [[House of Commons]]
* [[House of Lords]]
* [[Scotland Yard]]
* [[Thames Ditton]]
* [[Buckingham Palace]]
* [[Millennium Dome]]
* [[British Museum]]
* [[10 Downing Street]]
* [[The Ritz Hotel, London|Ritz Hotel]]
* [[Isle of Dogs]]
* [[High Holborn]]
* [[Hackney Empire]]
* [[BBC|BBC Studios]]
* [[Croydon]]
* [[Stabham]]
</div>
| group2 = People of Interest
| abbr2 = people
| list2 = <div>
* [[Old people|Chelsea Pensioners]]
* [[Prime Minister]]
</div>
| group3 = Culture and Education
| abbr3 = culture
| list3 = <div>
* [[London School of Economics]]
* [[London Symphony Orchestra]]
* [[University College London]]
* [[UnBooks:Rhyming slang|Cockney-English dictionary]]
* [[Saint Chav|St. Chav's Cathedral]]
* [[Wimbledon]]
* [[Londrés|London F.C.]]
* [[British Library]]
</div>
| group4 = Getting Around
| abbr4 = transport
| list4 = <div>
* [[London Underground]]
* [[London Overground]]
* [[Water Powered Bus|London Bus]]
* [[London Airports]]
* [[Potters Bar bus garage]]
</div>
}}

Further reading