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

From blackwiki
Jump to navigation Jump to search
imported>PBS
imported>PBS
(new format which allows footnote navigation as an option)
Line 1: Line 1:
{{Sidebar with collapsible lists
+
{{{{#if:{{{bar|}}}|Navbox|Sidebar with collapsible lists}}
| name = History of Scotland
+
|name = History of Scotland
| bodyclass = vcard
+
|bodyclass = vcard
| wraplinks = true
+
|wraplinks = true
| title = {{region history sidebar title
+
|title = {{#if:{{{bar|}}}
   | country = Scotland
+
|<!-- if bar -->[[History of Scotland]]
   | image = {{Coat of arms|Scotland|size=95px|text=none}}
+
|<!-- else -->{{region history sidebar title
  }}
+
   | country   = Scotland
|  listtitlestyle = background:#eee; text-align:center;
+
   | image     = {{Coat of arms|Scotland|size=95px|text=none}} }}
|  state = {{{state<includeonly>|collapsed</includeonly>}}}
+
  }}<!-- end if -->
  
| list1title = Eras
+
| image    = {{#if:{{{bar|}}}|{{Coat of arms|Scotland|size=95px|text=none}} }}
| list1style =text-align:left
+
 
| list1 =
+
| listtitlestyle = background:#eee; text-align:center;
 +
| state = {{{state<includeonly>|collapsed</includeonly>}}}
 +
 
 +
|{{#if:{{{bar|}}}|group1|list1title}} = Eras
 +
|list1 = <div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}>
 
* [[Prehistoric Scotland|Prehistoric]] ([[Timeline of prehistoric Scotland|timeline]])
 
* [[Prehistoric Scotland|Prehistoric]] ([[Timeline of prehistoric Scotland|timeline]])
 
* [[Scotland during the Roman Empire|During the Roman Empire]]
 
* [[Scotland during the Roman Empire|During the Roman Empire]]
Line 22: Line 26:
 
* [[Scotland in the modern era|Modern]]
 
* [[Scotland in the modern era|Modern]]
 
* [[Timeline of Scottish history|History (timeline)]]
 
* [[Timeline of Scottish history|History (timeline)]]
 
+
</div>
| list2title = [[List of Scottish monarchs|Rule]]
+
|{{#if:{{{bar|}}}|group2|list2title}} = [[List of Scottish monarchs|Rule]]
| list2class = plainlist
+
|list2=<div {{#if:{{{bar|}}}|class="hlist"|class="plainlist"}}>
| list2 =  
 
 
* [[House of Alpin]] (843&ndash;878; 889&ndash;1040)
 
* [[House of Alpin]] (843&ndash;878; 889&ndash;1040)
 
* [[House of Moray]] (1040&ndash;1058)
 
* [[House of Moray]] (1040&ndash;1058)
Line 34: Line 37:
 
* [[Scotland under the Commonwealth|Commonwealth]] (1652&ndash;1660)
 
* [[Scotland under the Commonwealth|Commonwealth]] (1652&ndash;1660)
 
* [[Acts of Union 1707]]
 
* [[Acts of Union 1707]]
 
+
</div>
| list3title = Topics
+
|{{#if:{{{bar|}}}|group3|list3title}} = Topics
| list3class = hlist
+
|list3=<div {{#if:{{{bar|}}}|class="hlist"|class="plainlist"}}>
| list3 =  
 
 
* [[Scandinavian Scotland]]
 
* [[Scandinavian Scotland]]
 
* [[Wars of Scottish Independence|Wars of independence]]
 
* [[Wars of Scottish Independence|Wars of independence]]
Line 56: Line 58:
 
* [[Demographic history of Scotland |Demography]]
 
* [[Demographic history of Scotland |Demography]]
 
* [[Natural history of Scotland|Natural history]]
 
* [[Natural history of Scotland|Natural history]]
 
+
</div>
| list4title = [[Culture of Scotland|Culture]]
+
|{{#if:{{{bar|}}}|group4|list4title}} = [[Culture of Scotland|Culture]]
| list4class = hlist
+
|list4 = <div class="hlist">
| list4 =
 
 
* [[Architecture in Scotland|Architecture]]
 
* [[Architecture in Scotland|Architecture]]
 
* [[Scottish art|Art]]
 
* [[Scottish art|Art]]
 
* [[History of the kilt|The Kilt]]
 
* [[History of the kilt|The Kilt]]
 
* [[Scottish literature|Literature]]
 
* [[Scottish literature|Literature]]
 
+
</div>
| list5title = [[Politics of Scotland|Politics]]
+
|{{#if:{{{bar|}}}|group5|list5title}} = [[Politics of Scotland|Politics]]
  | list5class = hlist
+
|list5 = <div class="hlist">
| list5 =
 
 
* [[History of Scottish devolution|Devolution]]
 
* [[History of Scottish devolution|Devolution]]
 
* [[History of local government in Scotland|Local government]]
 
* [[History of local government in Scotland|Local government]]
 
* [[History of the Scottish National Party|Scottish National Party]]
 
* [[History of the Scottish National Party|Scottish National Party]]
 
* [[History of the Scottish Socialist Party|Scottish Socialist Party]]
 
* [[History of the Scottish Socialist Party|Scottish Socialist Party]]
 
+
</div>
| list6title = [[Sport in Scotland|Sport]]
+
|{{#if:{{{bar|}}}|group6|list6title}} =[[Sport in Scotland|Sport]]
  | list6class = hlist
+
|list6 = <div class="hlist">
| list6 =
 
 
* [[History of football in Scotland|Football]]
 
* [[History of football in Scotland|Football]]
 
* [[History of rugby union in Scotland|Rugby union]]
 
* [[History of rugby union in Scotland|Rugby union]]
 
* [[History of the Scotland national football team|National football team]]
 
* [[History of the Scotland national football team|National football team]]
 
* [[Golf in Scotland|Golf]]
 
* [[Golf in Scotland|Golf]]
 
+
</div>
| list7title = [[Religion in Scotland|Religion]]
+
|{{#if:{{{bar|}}}|group7|list7title}} = [[Religion in Scotland|Religion]]
  | list7class = hlist
+
|list7 = <div class="hlist">
| list7 =
 
 
* [[History of Christianity in Scotland|Christianity]]
 
* [[History of Christianity in Scotland|Christianity]]
 
** [[Scottish Reformation]]
 
** [[Scottish Reformation]]
Line 90: Line 88:
 
* [[History of the Jews in Scotland|Jews and Judaism]]
 
* [[History of the Jews in Scotland|Jews and Judaism]]
 
* [[Islam_in_Scotland#History|Islam and Muslims]]
 
* [[Islam_in_Scotland#History|Islam and Muslims]]
 
+
</div>
| list8title = By Region
+
|{{#if:{{{bar|}}}|group7=8|list8title}} = By Region
  | list8class = hlist
+
|list8 = <div class="hlist">
| list8 =
 
 
* [[Timeline of Edinburgh history|Edinburgh timeline]]
 
* [[Timeline of Edinburgh history|Edinburgh timeline]]
 
* [[Timeline of Glasgow history|Glasgow  timeline]]
 
* [[Timeline of Glasgow history|Glasgow  timeline]]
 
+
</div>
| belowstyle = {{#if:{{{bar|}}}|font-weight:bold}}
+
| belowstyle = {{#if:{{{bar|}}}|font-weight:bold}}
| below = {{portal-inline|Scotland|size=tiny}}
+
| below = {{portal-inline|Scotland|size=tiny}}
  
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}<!-- end of documentation -->
 
{{documentation}}<!-- end of documentation -->
 
</noinclude>
 
</noinclude>

Revision as of 11:27, 14 October 2017

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