Difference between revisions of "Template:F1"
Jump to navigation
Jump to search
Template documentation
imported>Frietjes (fix linking) |
imported>GKFX (Add templatedata) |
||
| Line 12: | Line 12: | ||
* <code><nowiki>{{F1|1980}}</nowiki></code> → {{F1|1980}} | * <code><nowiki>{{F1|1980}}</nowiki></code> → {{F1|1980}} | ||
* <code><nowiki>{{F1|1981}}</nowiki></code> → {{F1|1981}} | * <code><nowiki>{{F1|1981}}</nowiki></code> → {{F1|1981}} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateDataHeader}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Year", | ||
| + | "example": "1992", | ||
| + | "type": "number", | ||
| + | "required": true | ||
| + | } | ||
| + | }, | ||
| + | "description": "This template may be used to generate abbreviated links to various Formula One seasons. The template links to YYYY FIA Formula One World Championship for years after 1980, and to YYYY Formula One season for all other years.", | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
[[Category:Formula One formatting and function templates|F1]] | [[Category:Formula One formatting and function templates|F1]] | ||
}}</noinclude> | }}</noinclude> | ||
Revision as of 11:50, 23 December 2017
[[{{{1}}} Formula One season|{{{1}}}]]
This template may be used to generate abbreviated links to various Formula One seasons:
"[[Ayrton Senna]] won the {{F1|1991}} championship"→ "Ayrton Senna won the 1991 championship"
The template links to YYYY FIA Formula One World Championship for years after 1980, and to YYYY Formula One season for all other years.
Examples
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for F1
This template may be used to generate abbreviated links to various Formula One seasons. The template links to YYYY FIA Formula One World Championship for years after 1980, and to YYYY Formula One season for all other years.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | 1 | no description
| Number | required |
| The above documentation is transcluded from Template:F1/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |