Difference between revisions of "Template:F1"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(fix linking)
imported>GKFX
(Add templatedata)
Line 12: Line 12:
 
* <code><nowiki>{{F1|1980}}</nowiki></code> &rarr; {{F1|1980}}
 
* <code><nowiki>{{F1|1980}}</nowiki></code> &rarr; {{F1|1980}}
 
* <code><nowiki>{{F1|1981}}</nowiki></code> &rarr; {{F1|1981}}
 
* <code><nowiki>{{F1|1981}}</nowiki></code> &rarr; {{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}}}]]

Template documentation

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

  • {{F1|1980}}1980
  • {{F1|1981}}1981

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Year1

no description

Example
1992
Numberrequired