Template:Timeline/doc

From Pixelated Pickaxe
Revision as of 17:38, 9 April 2014 by w>Salix alba (create template data)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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}}.