Difference between revisions of "Template:History of England/doc"
imported>Geekdiva (Added code & example for |bar=. Misc improvements to flow and wording.) |
imported>Geekdiva m (Added section title for link, since Initial visibility isn't linkabe.) |
||
| Line 5: | Line 5: | ||
If this template is used with out any parameters, it displays down the right-hand side of the page (as displayed above). | If this template is used with out any parameters, it 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 [[# | + | 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: | :For example: | ||
| Line 17: | Line 17: | ||
If <code>|bar=</code> is used (for example, <code>|bar=yes</code>) then the following section applies and the visibility parameters function as described. If <code>|bar=</code> is not used then the following section's parameters are ignored. | If <code>|bar=</code> is used (for example, <code>|bar=yes</code>) then the following section applies and the visibility parameters function as described. If <code>|bar=</code> is not used then the following section's parameters are ignored. | ||
| + | == Additional parameters == | ||
{{collapsible option}} | {{collapsible option}} | ||
Revision as of 01:19, 26 March 2017
| File:Edit-copy green.svg | This is a documentation subpage for Template:History of England. It contains usage information, categories and other content that is not part of the original template page. |
Usage
If this template is used with out any parameters, it 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 England|bar=yes}}
- would display as:
If |bar= is used (for example, |bar=yes) then the following section applies and the visibility parameters function as described. If |bar= is not used then the following section's 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 England|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{History of England|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{History of England|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