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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
{{{{#if:{{{bar|}}}|Navbox|Sidebar}}
+
{{{{#if:{{{bar|}}}|Navbox|Sidebar with collapsible lists}}
 
|name  = History of England
 
|name  = History of England
 
|bodyclass = vcard
 
|bodyclass = vcard
 
|wraplinks = true
 
|wraplinks = true
 
|title = {{#if:{{{bar|}}}
 
|title = {{#if:{{{bar|}}}
  | [[History of England]]
+
  |<!-- if bar -->[[History of England]]
  |{{region history sidebar title
+
  |<!-- else -->{{region history sidebar title
| country  = England
+
  | country  = England
| image    = [[File:Royal Arms of England (1198-1340).svg|100px|Coat of arms of England]]
+
  | image    = [[File:Royal Arms of England (1198-1340).svg|100px|Coat of arms of England]]}}
  }}}}
+
  }}<!-- end if -->
  
 
| image    = {{#if:{{{bar|}}}|[[File:Royal Arms of England (1198-1340).svg|75px|Coat of Arms of England]]}}
 
| image    = {{#if:{{{bar|}}}|[[File:Royal Arms of England (1198-1340).svg|75px|Coat of Arms of England]]}}
  
| headingstyle = background:#eee
+
| listtitlestyle = background:#eee; text-align:center;
| contentstyle = text-align:left
+
| state = {{{state<includeonly>|collapsed</includeonly>}}}
  
| listclass    = hlist
+
|{{#if:{{{bar|}}}|group1|list1title}} = [[Timeline of English history|Timeline]]
| state        = {{{state<includeonly>|collapsed</includeonly>}}}
+
|list1 = <div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
 
 
|{{#if:{{{bar|}}}|group|heading}}1 = [[Timeline of English history|Timeline]]
 
|{{#if:{{{bar|}}}|list|content}}1 =
 
 
* [[Prehistoric Britain]]
 
* [[Prehistoric Britain]]
 
* [[Roman Britain]]
 
* [[Roman Britain]]
Line 50: Line 47:
 
* [[History_of_the_United_Kingdom#World_War_II|World War II]]
 
* [[History_of_the_United_Kingdom#World_War_II|World War II]]
 
* [[History of the United Kingdom (1945–present)|Postwar period]]
 
* [[History of the United Kingdom (1945–present)|Postwar period]]
 
+
</div>
|{{#if:{{{bar|}}}|group|heading}}2 = Topics
+
|{{#if:{{{bar|}}}|group2|list2title}} = Topics
|{{#if:{{{bar|}}}|list|content}}2 =
+
|list2=<div {{#if:{{{bar|}}}|class="hlist"|class="plainlist"}}>
 
* [[Social history of England]]
 
* [[Social history of England]]
 
* [[History of education in England]]
 
* [[History of education in England]]
Line 59: Line 56:
 
* [[English overseas possessions]]
 
* [[English overseas possessions]]
 
* [[History of the English language]]
 
* [[History of the English language]]
 
+
</div>
|{{#if:{{{bar|}}}|group|heading}}3 = Polities
+
|{{#if:{{{bar|}}}|group3|list3title}} = Polities
|{{#if:{{{bar|}}}|list|content}}3 =
+
|list3=<div {{#if:{{{bar|}}}|class="hlist"|class="plainlist"}}>
 
* [[Kingdom of England]]
 
* [[Kingdom of England]]
 
* [[Kingdom of Great Britain]]
 
* [[Kingdom of Great Britain]]
 
* [[United Kingdom]]
 
* [[United Kingdom]]
 
+
</div>
|group4 = [[Counties of England|By county]]
+
|{{#if:{{{bar|}}}|group4|list4title}} = [[Counties of England|By county]]
|list4 =
+
|list4 = <div class="hlist">
 
* [[History of Bedfordshire|Bedfordshire]]
 
* [[History of Bedfordshire|Bedfordshire]]
 
* [[History of Berkshire|Berkshire]]
 
* [[History of Berkshire|Berkshire]]
Line 116: Line 113:
 
* [[History of Wiltshire|Wiltshire]]
 
* [[History of Wiltshire|Wiltshire]]
 
* [[History of Worcestershire|Worcestershire]]
 
* [[History of Worcestershire|Worcestershire]]
 
+
</div>
|group5 = [[City status in the United Kingdom|By city]]
+
|{{#if:{{{bar|}}}|group5|list5title}} =[[City status in the United Kingdom|By city]]
|list5  =
+
|list5  = <div class="hlist">
 
* [[History of Birmingham|Birmingham]]
 
* [[History of Birmingham|Birmingham]]
 
* [[History of Bournemouth|Bournemouth]]
 
* [[History of Bournemouth|Bournemouth]]
Line 149: Line 146:
 
* [[History of Wetherby|Wetherby]]
 
* [[History of Wetherby|Wetherby]]
 
* [[History of York|York]]
 
* [[History of York|York]]
 
+
</div>
|belowstyle = {{#if:{{{bar|}}}|font-weight:bold|border-top:#aaa 1px solid;border-bottom:#aaa 1px solid;}}
+
|belowstyle = {{#if:{{{bar|}}}|font-weight:bold}}
 
|below = {{portal-inline|England|size=tiny}}
 
|below = {{portal-inline|England|size=tiny}}
  

Revision as of 19:06, 7 August 2014

Template:Region history sidebar title
50px 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