Difference between revisions of "Template:Navbox/doc"

From Oldunreal-Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
A simple navigation box of one column and one row, usually used for link lists and warnings/errors. Mostly self-explanatory.
+
{{Templatebox
 +
|name=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.
  
 
<pre>{{Navbox
 
<pre>{{Navbox
 
|title=
 
|title=
 
|body=
 
|body=
 +
|image=
 +
|color=
 +
|collapse=
 
}}</pre>
 
}}</pre>
  
<pre>{{Navbox|title=This is a test.|body=This is the content of a navbox.}}</pre>
+
Here are some examples:
 +
 
 +
<pre>{{Navbox|title=This is a test.|body=Red navbox with an image.|image=Malcolm-stub-ut3.jpg|color=red|collapse=}}</pre>
 +
{{clear}}
 +
{{Navbox|title=This is a test.|body=Red navbox with an image.|image=Malcolm-stub-ut3.jpg|color=red|collapse=}}
 +
 
 +
<pre>{{Navbox|title=This is another test.|body=Blue navbox without an image.|image=|color=blue|collapse=}}</pre>
 +
{{clear}}
 +
{{Navbox|title=This is another test.|body=Blue navbox without an image.|image=|color=blue|collapse=}}
 +
 
 +
<pre>{{Navbox|title=This is yet another test.|body=Gold navbox without an image, collapsible.|image=|color=yellow|collapse=1}}</pre>
 +
{{clear}}
 +
{{Navbox|title=This is another test.|body=Blue navbox without an image, collapsible.|image=|color=yellow|collapse=1}}
 +
 
 +
<pre>{{Navbox|title=And yet another test.|body=Green navbox with an image, collapsible.|image=Malcolm-stub-ut3.jpg|color=green|collapse=1}}</pre>
 +
{{clear}}
 +
{{Navbox|title=And yet another test.|body=Green navbox with an image, collapsible.|image=Malcolm-stub-ut3.jpg|color=green|collapse=1}}
 +
 
 +
<pre>{{Navbox|title=And a neutral box|body=Neutral-colored box without an image, and non-collapsible.|image=|color=|collapse=}}</pre>
 +
{{clear}}
 +
{{Navbox|title=And a neutral box|body=Neutral-colored box without an image, and non-collapsible.|image=|color=|collapse=}}
 +
 
 +
<pre>{{Navbox|title=Finally, a black navbox.|body=Black-colored box without an image, and non-collapsible.|image=|color=black|collapse=}}</pre>
 
{{clear}}
 
{{clear}}
{{Navbox|title=This is a test.|body=This is the content of a navbox.}}
+
{{Navbox|title=Finally, a black navbox.|body=Black-colored box without an image, and non-collapsible.|image=|color=black|collapse=}}
 +
<noinclude>{{AddCategories|type=Doc}}</noinclude>

Latest revision as of 21: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.