This template is used to create navbox in the form of a timeline.

Usage

[edit]

Please remove the parameters that are left blank.

((Navbox timeline
| name     = ((subst:PAGENAME))
| title    = 
| state    = (({state|))}
| label    = 
<!-- other named parameters -->
|
<!-- row arguments -->
| <cell content> | <cell time range> <!-- cell arguments -->
| <cell content> | <cell time range> <!-- cell arguments -->
|
<!-- row arguments -->
| <cell content> | <cell time range> <!-- cell arguments -->
<!-- more cells -->
))

Unnamed parameters

[edit]

Unnamed parameter are used to define the contents of the timeline.

Defining a row

[edit]

One or more blank unnamed parameters represent the start of a new row.

These blank parameters can be followed by the following row arguments that will be applied to the row:

Defining a cell

[edit]

An unnamed parameter without a key (lowercase letters followed by a colon) defines an item to show in the timeline.

Another unnamed parameter after it defines the start and end year for the item in the format start-end. If end is omitted, the current year is used, so generally the items at the end of the timeline should use the format start-.

These can then be followed by the following cell arguments that will be applied to the cell:

Named parameters

[edit]

Content parameters

[edit]

These parameters are used to change the content of the timeline portion of the navbox.

[edit]

These parameters are that are used to change the navbox.

Time parameters

[edit]

These parameters adjust the length of the timeline

Content style parameters

[edit]

These parameters apply style to the "content" of the navbox.

[edit]

These parameters apply style to the parts of the navbox outside of the "content" of the navbox.

Class parameters

[edit]

These parameters add classes to parts of the navbox.

Examples

[edit]

Basic

[edit]

This is a basic example of this template.

Source code
((Navbox timeline
| name   = ((FULLPAGENAME))
| state  = uncollapsed
| title  = Example timeline
|
| Foo | 1985-2014
| Bar | 2019-2035
|
| Baz | 1995-2020
))

Labels

[edit]

Label arguments are shown on the left of the timeline. The |label= parameter can be used to give the column of labels a header. Not all rows need a label argument.

Source code
((Navbox timeline
| name   = ((FULLPAGENAME))
| state  = uncollapsed
| title  = Example timeline
| label  = Type
|
| label: A
| Foo | 1985-2014
| Bar | 2019-2035
|
| label: B | span: 2
| Baz | 1995-2020
|
| Bam | 2005-2015
|
| Pow | 1990-2030
))

The |label= parameter can also be excluded.

Source code
((Navbox timeline
| name   = ((FULLPAGENAME))
| state  = uncollapsed
| title  = Example timeline
|
| label: A
| Foo | 1985-2014
| Bar | 2019-2035
))

No decades

[edit]

When |decades=no is set, the decade row is removed and the year row contains the full years.

Source code
((Navbox timeline
| name    = ((FULLPAGENAME))
| state   = uncollapsed
| title   = Example timeline
| decades = no
|
| label: A
| Foo | 1985-2014
| Bar | 2019-2035
|
| label: B
| Baz | 1995-2020
))
[edit]

When |footer=yes is set, the decade and year rows at the top of the template are shown again at the bottom. This is useful for very large timelines.

Source code
((Navbox timeline
| name   = ((FULLPAGENAME))
| state  = uncollapsed
| title  = Example timeline
| footer = yes
|
| label: A
| Foo | 1985-2014
| Bar | 2019-2035
|
| label: B
| Baz | 1995-2020
))

Item and label styles

[edit]

The | style: argument can be used to style cells and the | labelstyle: argument can be used to style rows.

Source code
((Navbox timeline
| name        = ((FULLPAGENAME))
| state       = uncollapsed
| title       = Example timeline
| label       = Type
|
| label: A | labelstyle: background: #e459e4;
| Foo | 1985-2014 | style: background-color: #ff7c7c;
| Bar | 2019-2035 | style: background-color: #e6cd38;
|
| label: B | labelstyle: background: #50aeff;
| Baz | 1995-2020 | style: background-color: #72d272;
))

Above and below

[edit]
Source code
((Navbox timeline
| name   = ((FULLPAGENAME))
| state  = uncollapsed
| title  = Example timeline
| above  = Above
| below  = Below
|
| label: A
| Foo | 1985-2014
| Bar | 2019-2035
|
| label: B
| Baz | 1995-2020
))

Start and end

[edit]

|startoffset= and |endoffset= can be used to extend the start and end of the timeline.

Source code
((Navbox timeline
| name        = ((FULLPAGENAME))
| state       = uncollapsed
| title       = Example timeline
| startoffset = 5
| endoffset   = 5
|
| Foo | 1985-2014
| Bar | 2019-2035
|
| Baz | 1995-2020
))

Alternatively, |startyear= and |endyear= can be used to extends the start and end of the timeline to those years of the content of the timeline doesn't go beyond those years.

Source code
((Navbox timeline
| name      = ((FULLPAGENAME))
| state     = uncollapsed
| title     = Example timeline
| startyear = 1975
| endyear   = 2046
|
| Foo | 1985-2014
| Bar | 2019-2035
|
| Baz | 1995-2020
))

Inside another navbox

[edit]

This template can be used to inside another navbox by calling it using ((Timeline|border=child|...)).

Source code
((Navbox
| title  = Example navbox
| group1 = Timeline
| state  = uncollapse
| list1  = ((Navbox timeline
| border = child
|
| Foo | 1985-2014
| Bar | 2019-2035
|
| Baz | 1995-2020
))
))

Images

[edit]

The |image= and |imageleft= can be used to add content (preferably images) to the right and left of the navbox respectively.

Source code
((Navbox timeline
| name      = ((FULLPAGENAME))
| state     = uncollapsed
| title     = Example timeline
| image     = [[File:Flag of the United States.svg|100px]]
| imageleft = [[File:Flag of Canada.svg|100px]]
|
| Foo | 1985-2014
| Bar | 2019-2035
|
| Baz | 1995-2020
))

See also

[edit]