Difference between revisions of "Template:History of the United Kingdom/sandbox"
imported>PBS (copy of production) |
imported>PBS (new template that can also be placed as a full width footnote) |
||
Line 1: | Line 1: | ||
− | {{ | + | {{{{#if:{{{bar|}}}|Navbox|Sidebar with collapsible lists}} |
− | |name = History of the United Kingdom | + | |name = History of the United Kingdom |
|bodyclass = vcard | |bodyclass = vcard | ||
|wraplinks = true | |wraplinks = true | ||
− | |title = {{region history sidebar title | + | |title = {{#if:{{{bar|}}} |
− | |country = the United Kingdom | + | |<!-- if bar -->[[History of the United Kingdom|History of the United Kingdom]] |
− | |linkoverride = [[History of the United Kingdom|History of the United Kingdom]] | + | |<!-- else -->{{region history sidebar title |
− | |image = {{Coat of arms|United Kingdom|size=50px|text=none}} | + | | country = the United Kingdom |
− | }} | + | |linkoverride = [[History of the United Kingdom|History of the United Kingdom]] |
− | | | + | | image = {{Coat of arms|United Kingdom|size=50px|text=none}} }} |
− | | | + | }}<!-- end if --> |
− | | | + | |
+ | | image = {{#if:{{{bar|}}}|{{Coat of arms|United Kingdom|size=50px|text=none}} }} | ||
+ | |||
+ | | listtitlestyle = background:#eee; text-align:center; | ||
+ | | state = {{{state<includeonly>|collapsed</includeonly>}}} | ||
+ | |||
+ | |{{#if:{{{bar|}}}|group1|list1title}} = [[Timeline of English history|Timeline]] | ||
+ | |list1 = <div {{#if:{{{bar|}}}|class="hlist"|style="text-align:left"}}> | ||
*[[Georgian era|Georgian period]] | *[[Georgian era|Georgian period]] | ||
**[[United Kingdom in the Napoleonic Wars|Napoleonic Wars]] | **[[United Kingdom in the Napoleonic Wars|Napoleonic Wars]] | ||
Line 22: | Line 29: | ||
**[[Brexit]] | **[[Brexit]] | ||
*[[Social history of the United Kingdom (1945–present)|Post-war period (social history)]] | *[[Social history of the United Kingdom (1945–present)|Post-war period (social history)]] | ||
− | | | + | </div> |
− | | | + | |{{#if:{{{bar|}}}|group2|list2title}} = Topics |
+ | |list2=<div {{#if:{{{bar|}}}|class="hlist"|class="plainlist"}}> | ||
* [[History of women in the United Kingdom|History of women]] | * [[History of women in the United Kingdom|History of women]] | ||
* [[Military history of the United Kingdom|Military history]] | * [[Military history of the United Kingdom|Military history]] | ||
+ | </div> | ||
+ | |belowstyle = {{#if:{{{bar|}}}|font-weight:bold}} | ||
+ | |below = {{portal-inline|United Kingdom|size=tiny}} | ||
− | |||
− | |||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 09:57, 14 October 2017
Template:Region history sidebar title |
---|
Topics |
![]() | This is the template sandbox page for Template:History of the United Kingdom (diff). See also the companion subpage for test cases. |
Usage
If this template is used without any parameters in the format,
{{History of the United Kingdom}}
, 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 United Kingdom|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 United Kingdom|state=collapsed}}
to show the template collapsed, i.e., hidden apart from its title bar|state=expanded
:{{History of the United Kingdom|state=expanded}}
to show the template expanded, i.e., fully visible|state=autocollapse
:{{History of the United Kingdom|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
{{History of England}}
{{History of Ireland}}
{{History of Scotland}}
{{History of Wales}}
{{History of Europe templates}}
The above documentation is transcluded from Template:History of the United Kingdom/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. |