Help:Wiki University Wikitext--Navboxes

From FamilySearch Wiki
Jump to navigation Jump to search




Other Coding Options

Additional Helps

What is a navbox[edit | edit source]

  • They are very much like sidebars, only they are usually spread across the bottom of the page. Here is an example from the Adair County, Missouri Genealogy page.

Typical navbox[edit | edit source]

  • First section - items you might find in a sidebar.
  • Second section - internal links to pages for other counties in the state.
  • Third section - internal links to pages of extinct county pages.
  • Fourth section - internal links to pages outlining what is available in the major repositories in the state.
  • Fifth section - internal links to pages discussing migration routes going through the state.


These are NOT required sections for a navbox. They can contain whatever subjects you like. This is just an example of one.

How to create a navbox[edit | edit source]

  • The navbox above is a table.
  • First row is the title of the navbox. It is centered and spans the two columns that follow.
  • First column is the title of the items in the adjacent cells.
  • Second column is the links or whatever material is to be displayed.
  • There are background colors in the cells.

Let's make one like the one above but use less material:

Links to Missouri Genealogy - related articles
Topics African Americans · American Indians · Archives and Libraries · Bible Records · Biography
Counties Adair · Andrew · Atchison · Audrain · Barry · Barton

Here is the coding:

{| style="width:100%; border:1px solid black; border-spacing:5px; "
| colspan="2" style="background-color:lightgray; text-align:center; " | Links to '''{{{state}}}'''- related articles
| style="background-color:lightgray; width:20% ; vertical-align:middle; " | Topics
| style="background-color:lightblue; " | [[African-American Resources for Missouri|African Americans]]{{·}}[1] [[Indians of Missouri|American Indians]]{{·}} [[Missouri Archives and Libraries|Archives and Libraries]]{{·}} [[Missouri Bible Records|Bible Records]]{{·}} [[Missouri Biography|Biography]]
| style="background-color:lightgray; width:20% ; vertical-align:middle; " | Counties
| style="background-color:lightblue; " | Adair · Andrew · Atchison · Audrain · Barry · Barton

All this wikitext and inline styling should be familiar to you except for some new templates we have introduced

Saving the navbox[edit | edit source]

To save the navbox template, use the word "navbox" somewhere in the title like so:

template:County navbox

CAUTION: When doing your navbox exercise, be sure to adhere to the restrictions for saving a template when saving your work. See sample below and refer to Ch 13-Templates.

Template:User:your username/sandbox/County navbox

Placing the navbox[edit | edit source]

  • It is placed or embedded just like any other template.
  • If there are any parameters, they need to be included in the coding for the template; in this case, for the parameter State.
  • The normal placement coding for a saved navbox template is:
{{County navbox

| State =

  • NOTE: When doing your navbox exercise, place the navbox template into your sandbox with the following code:
{{User:your username/sandbox/County navbox

| State =


Try these out[edit | edit source]

  • Create a navbox using the above format.
  • For topics use the first 5 topics from the Germany_Genealogy page.
  • For Counties use the first 5 counties from the State in which you were born. Example Clark County, Nevada navbox at the bottom of the page.
  • Change the parameter to country.

Quick Quiz
  • Navboxes may include items that could be in a sidebar.
A. True
B. False
  • Navboxes are usually placed at the top of the page.
A. True
B. False
  • Navboxes are limited to less than 200 pixels in width.
A. True
B. False
  1. This is a template that puts the little dot separator between the items in this cell. One of many such "built in" templates in wikitext