Difference between revisions of "Template:Navbox/doc"

From Oldunreal-Wiki
Jump to navigation Jump to search
(Created page with "A simple navigation box of one column and one row, usually used for link lists and warnings/errors. Mostly self-explanatory, though '''color''' only accepts these values: "bl...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Templatebox
|name=Navbox
|class=Navbox
}}
A simple navigation box of one column and one row, usually used for link lists and warnings/errors.
A simple navigation box of one column and one row, usually used for link lists and warnings/errors.



Latest revision as of 20:44, 17 July 2020

Navbox templates
Navbox
Class Navbox

A simple navigation box of one column and one row, usually used for link lists and warnings/errors.

Mostly self-explanatory, though color only accepts these values: "blue", "red", "green", "yellow" and "black", and will revert to the neutral color if no value is specified. Meanwhile collapse determines if the box should be collapsible, this is desireable for navigation boxes, for example.

{{Navbox
|title=
|body=
|image=
|color=
|collapse=
}}

Here are some examples:

{{Navbox|title=This is a test.|body=Red navbox with an image.|image=Malcolm-stub-ut3.jpg|color=red|collapse=}}
This is a test.
Red navbox with an image.
{{Navbox|title=This is another test.|body=Blue navbox without an image.|image=|color=blue|collapse=}}
This is another test.
Blue navbox without an image.
{{Navbox|title=This is yet another test.|body=Gold navbox without an image, collapsible.|image=|color=yellow|collapse=1}}
This is another test.
Blue navbox without an image, collapsible.
{{Navbox|title=And yet another test.|body=Green navbox with an image, collapsible.|image=Malcolm-stub-ut3.jpg|color=green|collapse=1}}
And yet another test.
Green navbox with an image, collapsible.
{{Navbox|title=And a neutral box|body=Neutral-colored box without an image, and non-collapsible.|image=|color=|collapse=}}
And a neutral box
Neutral-colored box without an image, and non-collapsible.
{{Navbox|title=Finally, a black navbox.|body=Black-colored box without an image, and non-collapsible.|image=|color=black|collapse=}}
Finally, a black navbox.
Black-colored box without an image, and non-collapsible.