Template:Navbox/doc: Difference between revisions
(initial documentation) |
(No difference)
|
Revision as of 18:44, 17 September 2023
This template creates a collapsible vertical navigation box, i.e. a box containing links to articles related to the subject. Alternatively, the template can be used for any content, such as text or images. The template can be used as a basis of other templates or on its own on an article.
Usage
Minimal use:
{{Navbox|TITLE=Title|Contents}}
The text within the template without parameter creates the contents of the navigation box.
Enter the parameter TITLE for the title of the navigation box.
Other parameters are optional.
Full use:
{{Navbox|EXPANDED=Expanded|WIDTH=Width|TEXTCOLOR=Text color|BACKGROUND=Background|ALIGN=Align|TITLE=Title|Contents}}
WIDTH determines the width of the navigation box. Enter the width in pixels (e.g. 150px), as percentage of the width of the article (e.g. 80%) or in other supported measures. Defaults to full width.
TEXTCOLOR determines the color of the title. Enter the color in HTML names (e.g. white) or in hex code (e.g. #FEF7FC). Defaults to the black.
BACKGROUND determines the background color of the title. Enter the color in HTML names (e.g. black) or in hex code (e.g. #B57EDC). Defaults to #efefef, which is a shade of light grey.
ALIGN determines the alignment of the contents. Defaults to left.