• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Navbox top

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Navbox top and bottom

This template may be used for embedding wikitables (or other difficult to embed content) inside of navboxes.

Contents

  • 1 Usage
  • 2 Examples
    • 2.1 Simple example
    • 2.2 Scrolling table

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}}
  • v
  • t
  • e
Title
Above
Header1 Header2
Item 1 Item 2
Below

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}}
  • v
  • t
  • e
Title
Above
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
Below
The above documentation is transcluded from Template:Navbox top/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Navbox_top&oldid=24640"
Categories:
  • Lua-based templates
  • Navigational boxes without horizontal lists
Last edited on 4 November 2021, at 12:59

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 4 November 2021, at 12:59.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop