Difference between revisions of "Template:F1"

From blackwiki
Jump to navigation Jump to search
imported>Addbot
m (Bot: Migrating 29 interwiki links, now provided by Wikidata on d:q6807876)
imported>Frietjes
(fix linking)
Line 1: Line 1:
[[{{{1}}} Formula One season|{{{1}}}]]<noinclude>
+
{{<includeonly>safesubst:</includeonly>ifnumber|{{{1}}}
<br /><hr/>''This template is a shortcut template of sorts.'' F1 ''stands for "Formula One season". It is used thus: "[[Ayrton Senna]] won the <nowiki>{{F1|1991}}</nowiki> championship", which yields "[[Ayrton Senna]] won the [[1991 Formula One season|1991]] championship"''.
+
|{{<includeonly>safesubst:</includeonly>#ifexpr:{{{1}}}>1980
 +
|[[{{{1}}} FIA Formula One World Championship|{{{1}}}]]
 +
|[[{{{1}}} Formula One season|{{{1}}}]]
 +
}}|[[{{{1}}} Formula One season|{{{1}}}]]}}<noinclude>
 +
{{documentation|content=
 +
This template may be used to generate abbreviated links to various Formula One seasons:
 +
* <code><nowiki>"[[Ayrton Senna]] won the {{F1|1991}} championship"</nowiki></code> &rarr; "[[Ayrton Senna]] won the {{F1|1991}} championship"
 +
The template links to <code>YYYY FIA Formula One World Championship</code> for years after 1980, and to <code>YYYY Formula One season</code> for all other years.
 +
 
 +
== Examples ==
 +
* <code><nowiki>{{F1|1980}}</nowiki></code> &rarr; {{F1|1980}}
 +
* <code><nowiki>{{F1|1981}}</nowiki></code> &rarr; {{F1|1981}}
  
 
[[Category:Formula One formatting and function templates|F1]]
 
[[Category:Formula One formatting and function templates|F1]]
</noinclude>
+
}}</noinclude>

Revision as of 14:54, 16 September 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