Difference between revisions of "Template:History of the British Isles"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(move categories into documentation)
imported>Hildeoc
(list hierarchy)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Sidebar with collapsible lists
+
{{{{#if:{{{bar|}}}|Navbox|Sidebar with collapsible lists}}
 
| name = History of the British Isles
 
| name = History of the British Isles
 
| bodyclass = vcard {{#if:{{{collapsed|}}}|collapsible collapsed}}
 
| bodyclass = vcard {{#if:{{{collapsed|}}}|collapsible collapsed}}
 
| wraplinks = true
 
| wraplinks = true
 
| contentclass = wrap
 
| contentclass = wrap
| title = {{Region history sidebar title
+
| title = {{#if:{{{bar|}}}
  |region = the British Isles
+
|<!-- if bar -->[[History of the British Isles]]
  |linkoverride = [[History of the British Isles|History of the British&nbsp;Isles]]
+
|<!-- else -->{{Region history sidebar title
  |image = {{#ifeq:{{{expanded|overview}}}|none||[[File:Stonehenge Closeup.jpg|220px|center]]}}
+
  |region = the British Isles
}}
+
  |linkoverride = [[History of the British Isles|History of the British&nbsp;Isles]]
|liststyle = text-align:left
+
  |image = {{#ifeq:{{{expanded|overview}}}|none||[[File:Stonehenge Closeup.jpg|220px|center]]}}
 +
                }}
 +
          }}
  
|list1title = [[History of the British Isles|Overview]]
+
|image    = {{#if:{{{bar|}}}|[[File:Stonehenge Closeup.jpg|75px]]}}
|list1name = overview
+
 
|list1 =
+
 
 +
| listtitlestyle = <!--background:#eee;--> text-align:left;
 +
| state = {{{state<includeonly>|collapsed</includeonly>}}}
 +
 
 +
|{{#if:{{{bar|}}}|group1|list1title}} = [[History of the British Isles|Overview]]
 +
|list1 = <div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
 
*[[History of the United Kingdom|United Kingdom]]
 
*[[History of the United Kingdom|United Kingdom]]
 
**[[History of England|England]]
 
**[[History of England|England]]
Line 31: Line 38:
 
**[[History of Jersey|Jersey]]
 
**[[History of Jersey|Jersey]]
 
**[[History of Guernsey|Guernsey]]
 
**[[History of Guernsey|Guernsey]]
 
+
</div>
|list2title = [[History of the British Isles#Prehistoric|Prehistoric period]]
+
|{{#if:{{{bar|}}}|group2|list2title}} = [[History of the British Isles#Prehistoric|Prehistoric period]]
|list2name = prehistoric
+
|list2=<div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
|list2 =
 
 
*[[Prehistoric Britain]]
 
*[[Prehistoric Britain]]
 
**[[History of England#Prehistory|Prehistoric England]]
 
**[[History of England#Prehistory|Prehistoric England]]
Line 43: Line 49:
 
*[[Prehistoric Ireland]]
 
*[[Prehistoric Ireland]]
 
*[[History of the Isle of Man#Prehistory|Prehistoric Mann]]
 
*[[History of the Isle of Man#Prehistory|Prehistoric Mann]]
 
+
</div>
|list3title = [[History of the British Isles#Classical period|Classical period]]
+
|{{#if:{{{bar|}}}|group3|list3title}} = [[History of the British Isles#Classical period|Classical period]]
|list3name = classical
+
|list3=<div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
|list3 =
 
 
*[[Roman Britain|Roman Britain]]
 
*[[Roman Britain|Roman Britain]]
 
*[[Scotland during the Roman Empire|Roman Scotland]]
 
*[[Scotland during the Roman Empire|Roman Scotland]]
 
*[[Wales in the Roman era|Roman Wales]]
 
*[[Wales in the Roman era|Roman Wales]]
 
*[[Protohistory of Ireland|Protohistoric Ireland]], [[Hiberno-Roman relations|Roman Ireland]]
 
*[[Protohistory of Ireland|Protohistoric Ireland]], [[Hiberno-Roman relations|Roman Ireland]]
 +
*[[End of Roman rule in Britain|End of Roman rule]]
 
*[[Sub-Roman Britain]]
 
*[[Sub-Roman Britain]]
 
+
</div>
|list4title = [[History of the British Isles#Medieval period|Medieval period]]
+
|{{#if:{{{bar|}}}|group4|list4title}} = [[History of the British Isles#Medieval period|Medieval period]]
|list4name = medieval
+
|list4 = <div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
|list4 =  
 
 
*[[England in the Middle Ages|Medieval England]]
 
*[[England in the Middle Ages|Medieval England]]
 
**[[History of Anglo-Saxon England|Early medieval England]]
 
**[[History of Anglo-Saxon England|Early medieval England]]
Line 73: Line 78:
 
**[[History of Ireland (1169–1536)|Late medieval Ireland]]
 
**[[History of Ireland (1169–1536)|Late medieval Ireland]]
 
*[[History of the Isle of Man#Middle Ages|Medieval Mann]]
 
*[[History of the Isle of Man#Middle Ages|Medieval Mann]]
 
+
</div>
|list5title = [[History of the British Isles#Early Modern period|Early modern period]]
+
|{{#if:{{{bar|}}}|group5|list5title}} = [[History of the British Isles#Early Modern period|Early modern period]]
|list5name = early modern
+
|list5 = <div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
|list5 =
 
 
*[[Early modern Britain]]
 
*[[Early modern Britain]]
*[[Tudor period|Early modern England]]
+
**[[Tudor period|Early modern England]]
*[[Scotland in the early modern period|Early modern Scotland]]
+
**[[Scotland in the early modern period|Early modern Scotland]]
*[[History of Wales#Early modern period|Early modern Wales]]
+
**[[History of Wales#Early modern period|Early modern Wales]]
 
*[[History of Ireland (1536–1691)|Early modern Ireland]]
 
*[[History of Ireland (1536–1691)|Early modern Ireland]]
 
*[[History of the Isle of Man#Early Modern period|Early modern Mann]]
 
*[[History of the Isle of Man#Early Modern period|Early modern Mann]]
 
+
</div>
|list6title = [[History of the British Isles#19th century|Late modern period]]
+
|{{#if:{{{bar|}}}|group6|list6title}} = [[History of the British Isles#19th century|Late modern period]]
|list6name = late modern
+
|list6 = <div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
|list6=
 
 
*[[History of the United Kingdom|United Kingdom]] (since 1707)
 
*[[History of the United Kingdom|United Kingdom]] (since 1707)
 
**[[Victorian era|Victorian period]]
 
**[[Victorian era|Victorian period]]
Line 97: Line 100:
 
*[[History of the Republic of Ireland|Late modern Ireland]]
 
*[[History of the Republic of Ireland|Late modern Ireland]]
 
*[[History of the Isle of Man#Modern period|Late modern Mann]]
 
*[[History of the Isle of Man#Modern period|Late modern Mann]]
 
+
</div>
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:14, 30 August 2020

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

Usage

If this template is used without any parameters in the format, {{History of the British Isles}}, 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 the British Isles|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 the British Isles|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{History of the British Isles|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{History of the British Isles|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