Difference between revisions of "Template:History of England/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 2: Line 2:
 
|name  = History of England
 
|name  = History of England
 
|bodyclass = vcard
 
|bodyclass = vcard
 +
|wraplinks = true
 
|title = {{#if:{{{bar|}}}
 
|title = {{#if:{{{bar|}}}
 
  | [[History of England]]
 
  | [[History of England]]
Line 18: Line 19:
  
 
|{{#if:{{{bar|}}}|group|heading}}1 = [[Timeline of English history|Timeline]]
 
|{{#if:{{{bar|}}}|group|heading}}1 = [[Timeline of English history|Timeline]]
|{{#if:{{{bar|}}}|data|content}}1 =
+
|{{#if:{{{bar|}}}|list|content}}1 =
 
* [[Prehistoric Britain]]
 
* [[Prehistoric Britain]]
 
* [[Roman Britain]]
 
* [[Roman Britain]]
Line 51: Line 52:
  
 
|{{#if:{{{bar|}}}|group|heading}}2 = Topics
 
|{{#if:{{{bar|}}}|group|heading}}2 = Topics
|{{#if:{{{bar|}}}|data|content}}2 =
+
|{{#if:{{{bar|}}}|list|content}}2 =
 
* [[Social history of England]]
 
* [[Social history of England]]
 
* [[History of education in England]]
 
* [[History of education in England]]
Line 60: Line 61:
  
 
|{{#if:{{{bar|}}}|group|heading}}3 = Polities
 
|{{#if:{{{bar|}}}|group|heading}}3 = Polities
|{{#if:{{{bar|}}}|data|content}}3 =
+
|{{#if:{{{bar|}}}|list|content}}3 =
 
* [[Kingdom of England]]
 
* [[Kingdom of England]]
 
* [[Kingdom of Great Britain]]
 
* [[Kingdom of Great Britain]]

Revision as of 18:53, 7 August 2014

Template:Region history sidebar title
Timeline
Topics
Polities
Template documentation[view] [edit] [history] [purge]

Usage

If this template is used without any parameters in the format, {{History of England}}, the sidebar displays down the right-hand side of the page as displayed above.

If the parameter |bar= is set to any value, then the template displays as a bar or box across the width of the page, depending on the use of the parameters in § Additional parameters below. This is the format to use as a navbox at the bottom of an article.

For example:

{{History of England|bar=yes}}

would display as:

If, as in the latter case above, |bar= is set to any value, then the § Additional parameters section applies and the visibility parameters function as described. If |bar= is not used, then those parameters are ignored.

Additional parameters

Initial visibility: currently defaults to autocollapse

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

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

See also