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

From blackwiki
Jump to navigation Jump to search
imported>PBS
(Create sandbox version of Template:History of Ireland)
 
imported>PBS
 
Line 1: Line 1:
{{sidebar
+
{{{{#if:{{{bar|}}}|Navbox|Sidebar with collapsible lists}}
| name = History of Ireland
+
|name = History of Ireland
| bodyclass = vcard plainlist
+
|bodyclass = vcard
| title = {{region history sidebar title
+
|wraplinks = true
| region = Ireland
+
|title = {{#if:{{{bar|}}}
| image = [[File:Provincial Arms of Ireland.svg|50px|Provincial coat of arms of Ireland]]
+
|<!-- if bar -->[[History of Ireland]]
  }}
+
|<!-- else -->{{region history sidebar title
| headingstyle = background:#eee
+
  | country  = Ireland
 +
  | image     =   [[File:Provincial Arms of Ireland.svg|50px|Provincial coat of arms of Ireland]] }}
 +
  }}<!-- end if -->
  
|heading1 = Chronology  
+
| image    = {{#if:{{{bar|}}}|  [[File:Provincial Arms of Ireland.svg|50px|Provincial coat of arms of Ireland]]}}
|content1 =  
+
 
 +
| listtitlestyle = background:#eee; text-align:center;
 +
| state = {{{state<includeonly>|collapsed</includeonly>}}}
 +
 
 +
|{{#if:{{{bar|}}}|group1|list1title}} = Chronology
 +
|list1=<div {{#if:{{{bar|}}}|class="hlist"|class="plainlist"}}>
 
*[[Prehistoric Ireland|Prehistory]]
 
*[[Prehistoric Ireland|Prehistory]]
 
*[[Protohistory of Ireland|Protohistory]]
 
*[[Protohistory of Ireland|Protohistory]]
Line 19: Line 26:
 
*[[History of Ireland (1801–1923)|1801–1923]]
 
*[[History of Ireland (1801–1923)|1801–1923]]
 
*[[Timeline of Irish history]]
 
*[[Timeline of Irish history]]
 
+
</div>
|heading2 = Peoples and polities
+
|{{#if:{{{bar|}}}|group2|list2title}} = Peoples and polities
|content2 =  
+
|list2=<div {{#if:{{{bar|}}}|class="hlist"|class="plainlist"}}>
 
*[[Gaelic Ireland]]
 
*[[Gaelic Ireland]]
 
*[[Lordship of Ireland]]
 
*[[Lordship of Ireland]]
Line 29: Line 36:
 
*[[Irish Free State]]
 
*[[Irish Free State]]
 
*[[History of the Republic of Ireland|Republic of Ireland]] and [[History of Northern Ireland|Northern Ireland]]
 
*[[History of the Republic of Ireland|Republic of Ireland]] and [[History of Northern Ireland|Northern Ireland]]
 
+
</div>
|heading3 = Topics
+
|{{#if:{{{bar|}}}|group3|list3title}} =Topics
|content3 = {{flatlist|
+
|list3=<div {{#if:{{{bar|}}}|class="hlist"|class="hlist"}}>
 
*[[List of conflicts in Ireland|Conflicts]]
 
*[[List of conflicts in Ireland|Conflicts]]
 
*[[List of Celtic tribes#Ireland|Clans]]
 
*[[List of Celtic tribes#Ireland|Clans]]
 
*[[List of Irish kingdoms|Kingdoms]]
 
*[[List of Irish kingdoms|Kingdoms]]
 
*[[Irish states since 1171|States]]
 
*[[Irish states since 1171|States]]
*[[List of Irish kings|Gaelic monarchs]]
+
*[[List of Irish kings|Gaelic&nbsp;monarchs]]
*[[Monarchy of Ireland#List of monarchs of Ireland|British monarchs]]
+
*[[Monarchy of Ireland#List of monarchs of Ireland|British&nbsp;monarchs]]
*[[Economic history of Ireland|Economic history]]
+
*[[Economic history of Ireland|Economic&nbsp;history]]
*[[History of the Irish language]]
+
*[[History of the Irish language|History&nbsp;of&nbsp;the&nbsp;Irish&nbsp;language]]
}}
+
</div>
| belowstyle = border-top:#aaa 1px solid; border-bottom:#aaa 1px solid;
+
|belowstyle = {{#if:{{{bar|}}}|font-weight:bold}}
 
| below = {{portal-inline|Ireland|size=tiny}}
 
| below = {{portal-inline|Ireland|size=tiny}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:09, 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 Ireland}}, 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 Ireland|bar=yes}}

would display as:

If, as in the latter case above, |bar= is used, 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 Ireland|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{History of Ireland|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{History of Ireland|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