Difference between revisions of "Template:Infobox cycling race"
Jump to navigation
Jump to search
imported>Severo m (should be better) |
imported>Vаdiм (<nowiki>{{{website}}}</nowiki> parameter for the official web site) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
|subheader = {{#if:{{{current_event|}}}|[[Image:Cycling current event.svg|32px|alt=|link=]] ''[[{{{current_event|}}}]]''}} | |subheader = {{#if:{{{current_event|}}}|[[Image:Cycling current event.svg|32px|alt=|link=]] ''[[{{{current_event|}}}]]''}} | ||
| − | |image | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}} |
|caption = {{{image_caption|}}} | |caption = {{{image_caption|}}} | ||
| Line 19: | Line 19: | ||
|label10 = Organiser |data10 = {{{organiser|}}} | |label10 = Organiser |data10 = {{{organiser|}}} | ||
|label11 = Race director |data11 = {{{director|}}} | |label11 = Race director |data11 = {{{director|}}} | ||
| + | |label12 = Web site |data12 = {{#if:{{{website|}}}|{{URL|{{{website}}}}}|{{Official URL}}}} | ||
| − | | | + | |header13 = {{#if:{{{first|}}}{{{number|}}}{{{final|{{{last|}}}}}}{{{firstwinner|}}}{{{mostwins|}}}{{{mostrecent|}}}|{{#if:{{{history|}}}|{{{history}}}|History}}}} |
| − | | | + | |class13 = navbox-title |
| − | | | + | |label14 = First edition |data14 = {{{first|}}} |
| − | | | + | |label15 = Editions |data15 = {{{number|}}} |
| − | | | + | |label16 = Final edition |data16 = {{{final|{{{last|}}}}}} |
| − | | | + | |label17 = First winner |data17 = {{{firstwinner|}}} |
| − | | | + | |label18 = Most wins |data18 = {{{mostwins|}}} |
| − | | | + | |label19 = {{#ifeq: {{{final|{{{last|}}}}}} | | Most recent | Final winner}} |data19 = {{{mostrecent|}}} |
| − | | | + | |header20 = {{#if:{{{first_women|}}}{{{number_women|}}}{{{final_women|{{{last_women|}}}}}}{{{firstwinner_women|}}}{{{mostwins_women|}}}{{{mostrecent_women|}}}|{{#if:{{{history_women|}}}|{{{history_women}}}|Women's history}}}} |
| − | | | + | |class20 = navbox-title |
| − | | | + | |label21 = First edition |data21 = {{{first_women|}}} |
| − | | | + | |label22 = Editions |data22 = {{{number_women|}}} |
| − | | | + | |label23 = Final edition |data23 = {{{final_women|}}} |
| − | | | + | |label24 = First winner |data24 = {{{firstwinner_women|}}} |
| − | | | + | |label25 = Most wins |data25 = {{{mostwins_women|}}} |
| − | | | + | |label26 = {{#ifeq: {{{final_women|{{{last_women|}}}}}} | | Most recent | Final winner}} |data26 = {{{mostrecent_women|}}} |
}}<includeonly>{{#if:{{{final|{{{last|{{{final_women|}}}}}}}}}|[[Category:Infobox cycling race articles using param (last)|{{PAGENAME}}]]}}{{#if:{{{current_event|}}}|[[Category:Infobox cycling race articles using param (current_event)|{{PAGENAME}}]]}}</includeonly><noinclude> | }}<includeonly>{{#if:{{{final|{{{last|{{{final_women|}}}}}}}}}|[[Category:Infobox cycling race articles using param (last)|{{PAGENAME}}]]}}{{#if:{{{current_event|}}}|[[Category:Infobox cycling race articles using param (current_event)|{{PAGENAME}}]]}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 13:28, 13 June 2019
| Race details | |
|---|---|
| Web site | Template:Official URL |
[[Category:Infobox templates|Template:Remove first word]]
The cycling race infobox provides a standardised quick overview of all types of cycling races. It provides a quick overview of the main details of the race in an easy to view sideframe to the main article proper.
Usage
{{Infobox cycling race
| name =
| current_event =
| image =
| image_caption =
| date =
| region =
| english =
| localnames =
| nickname =
| discipline =
| competition =
| type =
| organiser =
| director =
| website =
| first = <!-- {{start date|XXXX}} -->
| number =
| final =
| firstwinner =
| mostwins =
| mostrecent =
}}
Parameters
- Mandatory
- {{{name}}} — common name, usually the same as the article title
- Optional
- {{{current_event}}} — link to the event's current page, if there is one. Omit the [[]] wikilinks
- {{{image}}} — ideally a picture of riders in a key or characteristic part of the course
- {{{image_caption}}} — caption for the image
- {{{date}}} — approximate date, such as mid-October - not actual date which belongs on the individual race report article
- {{{region}}} — area in which the race is held
- {{{english}}} — name in English
- {{{localnames}}} — a <br/> delineated list for local names, use {{In lang|xx}} (where xx is the two letter language code) after the name to indicate language
- {{{nickname}}} — nickname (if any), if a local nickname then also supply a translation
- {{{discipline}}} — road/track/cyclo-cross etc. then race, time-trial etc.
- {{{competition}}} — the wider competition of which the race is part
- {{{type}}} — for example, one-day or stage race
- {{{organiser}}} — race organiser
- {{{director}}} — race director
- {{{website}}} — official web site, comes from Wikidata by default
- {{{first}}} — year the race was first held. Use
{{Start date|YYYY}}. Link to article if there is one (or if a redlink would be useful, such as [[1900 Cycling Race|{{start date|1900}}]] - {{{number}}} — number of editions
- {{{final}}} — year of final race edition
- {{{firstwinner}}} — winner of the first edition. Use {{flagathlete}}.
- {{{mostwins}}} — a {{plainlist}} enclosed list of record winners. Use {{flagathlete}}.
- {{{mostrecent}}} — winner of the most recent edition. Use {{flagathlete}}.
Example
The input:
{{Infobox cycling race
| name = La Flèche Wallonne
| current_event = 2009 La Flèche Wallonne
| image = [[File:Bad Title Example.png|300px]]
| image_caption = The [[Mur de Huy]] climb in the finale of La Flèche Wallonne.
| date = Late April
| region = [[Wallonia]], [[Belgium]]
| english = The Walloon Arrow
| localnames = {{plainlist|
* La Flèche Wallonne
* Waalse Pijl
* Wallonischer Pfeil
}}
| nickname =
| discipline = [[Road bicycle racing|Road race]]
| competition = [[UCI World Tour]]
| type = One-day
| organiser = [[Amaury Sport Organisation|ASO]]
| director =
| first = [[1936 La Flèche Wallonne|1936]]
| number = 73 (as of 2009)
| final =
| firstwinner = {{flagathlete|[[Philippe Demeersman]]|BEL}}
| mostwins = {{plainlist|
* {{flagathlete|[[Marcel Kint]]|BEL}}
* {{flagathlete|[[Eddy Merckx]]|BEL}}
* {{flagathlete|[[Moreno Argentin]]|ITA}}
* {{flagathlete|[[Davide Rebellin]]|ITA}}{{quote|''3 times''}}
}}
| mostrecent = {{flagathlete|[[Davide Rebellin]]|ITA}}
}}
Produces:
|
|||||||||||||||||||||||||||||||||||||
Tracking categories
- Category:Infobox cycling race articles using param (last) (0)
- Category:Infobox cycling race articles using param (current_event) (1)
| The above documentation is transcluded from Template:Infobox cycling race/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |