Difference between revisions of "Template:F1"
Jump to navigation
Jump to search
Template documentation
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}}} |
| − | + | |{{<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> → "[[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> → {{F1|1980}} | ||
| + | * <code><nowiki>{{F1|1981}}</nowiki></code> → {{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}}}]]
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
| 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. |