Difference between revisions of "Template:History of Wales/sandbox"
imported>PBS (change to handle a navigation bar at the bottom) |
imported>PBS (latest template namespace version) |
||
Line 1: | Line 1: | ||
− | {{ | + | {{Documentation subpage}} |
− | + | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | |
− | + | == Usage == | |
− | + | If this template is used without any [[Help:Template#Parameters|parameters]] in the format, | |
− | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>, the sidebar displays down the right-hand side of the page as displayed above. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | + | If the parameter <code>|bar=</code> 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|§ Additional parameters]] below. This is the format to use as a navbox at the bottom of an article. |
− | + | :For example: | |
− | |||
− | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|bar=yes}}</nowiki></code> | |
− | + | ||
− | + | :would display as: | |
− | + | ||
− | + | {{{{BASEPAGENAME}}|bar=yes}} | |
− | + | ||
− | + | If, as in the latter case above, <code>|bar=</code> is used set to any value, then the [[#Additional parameters|§ Additional parameters]] section applies and the visibility parameters function as described. If <code>|bar=</code> is not used, then those parameters are ignored. | |
− | + | ||
− | </ | + | == Additional parameters == |
− | + | {{collapsible option}} | |
− | + | ||
− | * | + | == See also == |
− | + | *{{tlx|History of the United Kingdom}} | |
− | + | *{{tlx|History of England}} | |
− | + | *{{tlx|History of Ireland}} | |
− | * | + | *{{tlx|History of Scotland}} |
− | + | *{{tlx|History of Europe templates}} | |
− | + | ||
− | * | + | <includeonly>{{sandbox other|| |
− | + | <!-- Categories below this line, please; interwikis at Wikidata --> | |
− | + | [[Category:European history by nation navigational boxes|Wales]] | |
− | < | + | [[Category:Wales templates]] |
− | + | }}</includeonly> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ |
Revision as of 11:58, 14 October 2017
Usage
If this template is used without any parameters in the format,
{{History of Wales}}
, 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 Wales|bar=yes}}
- would display as:
If, as in the latter case above, |bar=
is used 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 Wales|state=collapsed}}
to show the template collapsed, i.e., hidden apart from its title bar|state=expanded
:{{History of Wales|state=expanded}}
to show the template expanded, i.e., fully visible|state=autocollapse
:{{History of Wales|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 the United Kingdom}}
{{History of England}}
{{History of Ireland}}
{{History of Scotland}}
{{History of Europe templates}}