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...")
 
Line 1: Line 1:
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. Mostly self-explanatory.
 
 
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>
  
Here are some examples:
+
<pre>{{Navbox|title=This is a test.|body=This is the content of a navbox.}}</pre>
 
 
<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=Finally, a black navbox.|body=Black-colored box without an image, and non-collapsible.|image=|color=black|collapse=}}
+
{{Navbox|title=This is a test.|body=This is the content of a navbox.}}
<noinclude>{{AddCategories|type=Doc}}</noinclude>
 

Revision as of 20:55, 12 July 2020

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

{{Navbox
|title=
|body=
}}
{{Navbox|title=This is a test.|body=This is the content of a navbox.}}
This is a test.
This is the content of a navbox.