Template:Timeline/doc: Difference between revisions

From Pixelated Pickaxe
Jump to navigation Jump to search
w>Salix alba
(create template data)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 16:35, 22 July 2019

Usage

As used on Timeline of United States history (1970–1989):

{{Timeline
|before=[[Timeline of United States history (1950–1969)|1950–1969]]
|title=[[Timeline of United States history]]
|years=1970–1989
|after=[[Timeline of United States history (1990–present)|1990–present]]
}}

Produces:


1950–1969 Timeline of United States history
1970–1989
1990–present


Template Data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for Timeline

<templatedata> {

   "description": "Generates a timeline navigation box",
   "params": {
       "title": {
           "label": "title",
           "description": "Title to appear, can be wiki-linked. e.g. 'Timeline of United States history'.",
           "type": "string/line",
           "required": true
       },
       "before": {
           "label": "before",
           "description": "Previous date range, can be wiki-linked. e.g. '1950–1969'",
           "type": "string/line",
           "required": true
       },
       "years": {
           "label": "years",
           "description": "date range for this article, can be wiki-linked. e.g. 1970–1989",
           "type": "string/line",
           "required": true
       },
       "after": {
           "label": "after",
           "description": "Following date range, can be wiki-linked. e.g. '1990–present'",
           "type": "string/line",
           "required": true
       }
   }

} </templatedata>

See also

For more flexible graphical timelines, see {{include timeline}}. For the cleanup tag see {{Prose timeline}}.