Template:Hide/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Hide. It contains usage information, categories, and other content that is not part of the original template page. |
This template creates a dynamic navigation box. It displays the first parameter (the heading) with a [show] link on the right. If [show] is clicked by the user, the second parameter (the body) is displayed below the heading and the [show] link becomes [hide]. Clicking on [hide] then hides the body again and the [hide] link becomes [show] again.
Usage
This template has been merged a few times and contains more parameters than listed here. For a collapsed box, use |class=collapsed
Syntax
Parameter:
BGCOLOR = colour of the heading of the navigation box
TITLE = heading of the navigation box
TITLESIZE = CSS "font-size" element.
CONTENT = contents of the navigation box. Use | to separate links.
It is not possible to include a pipe ("|") in the contents
as this symbol is used to separate parameters.
SMALLCONTENT = OPTIONAL. as per CONTENT but produces 90% fontsize
WIDTH = Optional parameter to limit width
EXT = Optional extensions [space separated list. case-sensitive] so far only NavOnce
EXT=NavOnce = only allow one navbox with this extension visible at a time (closes other one's)
{{Hidden
|header=
|content=
|style=
|headerstyle=
|contentstyle=
|fw1=
|fw2=
|bg1=
|bg2=
|ta1=
|ta2=
}}
Parameters
Only two parameters are required for this template:
- header
- text for header (or title); alternative to using unnamed parameter {{{1}}}
- content
- text for content (or body); alternative to using unnamed parameter {{{2}}}
See also
- {{A/Box}}
- Templating/H