Difference between revisions of "Template:History of Ireland/sandbox"
imported>PBS (Create sandbox version of Template:History of Ireland) |
imported>PBS |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{{{#if:{{{bar|}}}|Navbox|Sidebar with collapsible lists}} |
| − | | name = History of Ireland | + | |name = History of Ireland |
| − | | bodyclass = vcard | + | |bodyclass = vcard |
| − | | title = {{region history sidebar title | + | |wraplinks = true |
| − | + | |title = {{#if:{{{bar|}}} | |
| − | + | |<!-- if bar -->[[History of Ireland]] | |
| − | }} | + | |<!-- else -->{{region history sidebar title |
| − | + | | country = Ireland | |
| + | | image = [[File:Provincial Arms of Ireland.svg|50px|Provincial coat of arms of Ireland]] }} | ||
| + | }}<!-- end if --> | ||
| − | | | + | | image = {{#if:{{{bar|}}}| [[File:Provincial Arms of Ireland.svg|50px|Provincial coat of arms of Ireland]]}} |
| − | | | + | |
| + | | 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> | |
| − | | | + | |{{#if:{{{bar|}}}|group2|list2title}} = Peoples and polities |
| − | | | + | |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> | |
| − | | | + | |{{#if:{{{bar|}}}|group3|list3title}} =Topics |
| − | | | + | |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 monarchs]] |
| − | *[[Monarchy of Ireland#List of monarchs of Ireland|British monarchs]] | + | *[[Monarchy of Ireland#List of monarchs of Ireland|British monarchs]] |
| − | *[[Economic history of Ireland|Economic history]] | + | *[[Economic history of Ireland|Economic history]] |
| − | *[[History of the Irish language]] | + | *[[History of the Irish language|History of the Irish language]] |
| − | + | </div> | |
| − | | belowstyle = | + | |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 |
|---|
| This is the template sandbox page for Template:History of Ireland (diff). See also the companion subpage for test cases. |
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}}
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
| The above documentation is transcluded from Template:History of Ireland/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |