Template:Navbox top/doc
| This is a documentation subpage for Template:Navbox top. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 17,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
This template may be used for embedding wikitables (or other difficult to embed content) inside of navboxes.
Usage
The syntax is the same syntax used for {{navbox}} with the table placed between the {{navbox top}} and {{navbox bottom}} templates. Any content that would normally appear before the first list (list1) should be passed to the top template, and any content that would normally appear after the first list (list1) should be passed to the bottom template. Any content passed through |list1= is ignored.
Examples
Simple example
{{navbox top
| name = {{subst:PAGENAME}}
| title = Title
| state = {{{state|}}}
| above = Above
}}
{| style="width:100%" class="wraplinks"
! Header1
! Header2
|-
| Item 1
| Item 2
|}
{{navbox bottom|below=Below}}
Lua error in Module:Navbox_top_and_bottom at line 21: attempt to call field '_navbox' (a nil value).
| Header1 | Header2 |
|---|---|
| Item 1 | Item 2 |
Lua error in Module:Navbox_top_and_bottom at line 21: attempt to call field '_navbox' (a nil value).
Scrolling table
{{navbox top
| name = {{subst:PAGENAME}}
| title = Title
| above = Above
| state = {{{state|}}}
| innerstyle = table-layout:fixed
}}<div style="overflow:auto">
{| style="width:100%;min-width:150em" class="wraplinks"
! Header1
! Header2
|-
| Item 1
| Item 2
|}</div>
{{navbox bottom|below=Below}}
Lua error in Module:Navbox_top_and_bottom at line 21: attempt to call field '_navbox' (a nil value).
| Header1 | Header2 | Header3 | Header4 | Header5 | Header6 | Header7 | Header8 | Header9 |
|---|---|---|---|---|---|---|---|---|
| Item 1 | Item 2 | Item 3 | Item 4 | Item 5 | Item 6 | Item 7 | Item 8 | Item 9 |
Lua error in Module:Navbox_top_and_bottom at line 21: attempt to call field '_navbox' (a nil value).