Difference between revisions of "Template:Infobox rally raid/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pelmeen10
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
Line 95: Line 95:
 
! Example
 
! Example
 
|-
 
|-
| <tt>name</tt>
+
| <code>name</code>
 
| Name of the rally, in {year} {rally_name} pattern.
 
| Name of the rally, in {year} {rally_name} pattern.
| <tt>name = 2007 Swedish Rally</tt>
+
| <code>name = 2007 Swedish Rally</code>
 
|-
 
|-
| <tt>native_name</tt>
+
| <code>native_name</code>
 
| Full, native name of the event, including all the sponsors etc.
 
| Full, native name of the event, including all the sponsors etc.
| <tt>native_name = 56th Uddeholm Swedish Rally</tt>
+
| <code>native_name = 56th Uddeholm Swedish Rally</code>
 
|-
 
|-
| <tt>round</tt>
+
| <code>round</code>
 
| Championship round.
 
| Championship round.
| <tt>round = 2</tt>
+
| <code>round = 2</code>
 
|-
 
|-
| <tt>championship</tt>
+
| <code>championship</code>
 
| Main championship containing the rally. Wikilinked.
 
| Main championship containing the rally. Wikilinked.
| <tt>championship <span title="[[2007 World Rally Championship season|2007 World Rally Championship]]"><nowiki>= [[2007 World Rally...]]</nowiki></span></tt>
+
| <code>championship <span title="[[2007 World Rally Championship season|2007 World Rally Championship]]"><nowiki>= [[2007 World Rally...]]</nowiki></span></code>
 
|-
 
|-
| <tt>previous_round</tt>
+
| <code>previous_round</code>
 
| Previous event in championship. Article name, non-wikilinked (will be automatically linked).
 
| Previous event in championship. Article name, non-wikilinked (will be automatically linked).
| <tt>previous_round = 2007 Monte Carlo Rally</tt>
+
| <code>previous_round = 2007 Monte Carlo Rally</code>
 
|-
 
|-
| <tt>next_round</tt>
+
| <code>next_round</code>
 
| Next event in championship. Article name, non-wikilinked (will be automatically linked).
 
| Next event in championship. Article name, non-wikilinked (will be automatically linked).
| <tt>next_round = 2007 Rally Norway</tt>
+
| <code>next_round = 2007 Rally Norway</code>
 
|-
 
|-
| <tt>country</tt>
+
| <code>country</code>
| Country hosting the event. Using template <tt><nowiki>{{country}}</nowiki></tt>.
+
| Country hosting the event. Using template <code><nowiki>{{country}}</nowiki></code>.
| <tt>country = SWE</tt>
+
| <code>country = SWE</code>
 
|-
 
|-
| <tt>image</tt>
+
| <code>image</code>
| Image illustrating the event. Wikilinked: <tt><nowiki>[[Image:Example.jpg|250px]]</nowiki></tt>
+
| Image illustrating the event. Wikilinked: <code><nowiki>[[Image:Example.jpg|250px]]</nowiki></code>
| <tt><nowiki>image&nbsp;=&nbsp;[[Image:Svensktklimattyp.JPG|250px]]</nowiki></tt>
+
| <code><nowiki>image&nbsp;=&nbsp;[[Image:Svensktklimattyp.JPG|250px]]</nowiki></code>
 
|-
 
|-
| <tt>caption</tt>
+
| <code>caption</code>
 
| Caption under image.
 
| Caption under image.
| <tt><nowiki>caption = Swedish winter.</nowiki></tt>
+
| <code><nowiki>caption = Swedish winter.</nowiki></code>
 
|-
 
|-
| <tt>rallybase</tt>
+
| <code>rallybase</code>
 
| Rally base (usually city), wikilinked.
 
| Rally base (usually city), wikilinked.
| <tt><nowiki>rallybase = [[Karlstad, Sweden]]</nowiki></tt>
+
| <code><nowiki>rallybase = [[Karlstad, Sweden]]</nowiki></code>
 
|-
 
|-
| <tt>startdate</tt>
+
| <code>startdate</code>
 
| Date of start of the event, wikilinked. If the rally was held for only one day, enter the date here. The field will automatically switch from '''''Dates run''''' to '''''Held on'''''. If the year and/or month are the same on start and end date, avoid repeating them (use ''Month X - Y, Year'' pattern).
 
| Date of start of the event, wikilinked. If the rally was held for only one day, enter the date here. The field will automatically switch from '''''Dates run''''' to '''''Held on'''''. If the year and/or month are the same on start and end date, avoid repeating them (use ''Month X - Y, Year'' pattern).
| <tt>startdate = February 8, 2007</tt><br/>
+
| <code>startdate = February 8, 2007</code><br/>
<tt><nowiki>startdate = February 8</nowiki></tt>
+
<code><nowiki>startdate = February 8</nowiki></code>
 
|-
 
|-
| <tt>enddate</tt>
+
| <code>enddate</code>
 
| Date of end of the event, wikilinked. If the rally was held for only one day, do not enter anything here. If the year and/or month are the same on start and end date, avoid repeating them (use ''Month X - Y, Year'' pattern).
 
| Date of end of the event, wikilinked. If the rally was held for only one day, do not enter anything here. If the year and/or month are the same on start and end date, avoid repeating them (use ''Month X - Y, Year'' pattern).
| <tt>enddate = February 11, 2007</tt><br/>
+
| <code>enddate = February 11, 2007</code><br/>
<tt>enddate = February 11, 2007</tt>
+
<code>enddate = February 11, 2007</code>
 
|-
 
|-
| <tt>stages</tt>
+
| <code>stages</code>
 
| Number of [[Special stage (rallying)|Special Stages]].
 
| Number of [[Special stage (rallying)|Special Stages]].
| <tt>stages = 20</tt>
+
| <code>stages = 20</code>
 
|-
 
|-
| <tt>stagekm</tt>
+
| <code>stagekm</code>
 
| Total length of Special Stages, in kilometers, without a symbol. The infobox will convert it to miles and display both. If you would like to add a citation for this value, use {{para|stagekm_note}}
 
| Total length of Special Stages, in kilometers, without a symbol. The infobox will convert it to miles and display both. If you would like to add a citation for this value, use {{para|stagekm_note}}
| <tt>stagekm = 341.2</tt>
+
| <code>stagekm = 341.2</code>
 
|-
 
|-
| <tt>overallkm</tt>
+
| <code>overallkm</code>
 
| Overall length of the rally, with liaisons, in kilometers, without a symbol. The infobox will convert it to miles and display both. If you would like to add a citation for this value, use {{para|overallkm_note}}
 
| Overall length of the rally, with liaisons, in kilometers, without a symbol. The infobox will convert it to miles and display both. If you would like to add a citation for this value, use {{para|overallkm_note}}
| <tt>overallkm = 1730.36</tt>
+
| <code>overallkm = 1730.36</code>
 
|-
 
|-
| <tt>surface</tt>
+
| <code>surface</code>
 
| Surface of the special stages. Optionally wikilinked, might be more than one.
 
| Surface of the special stages. Optionally wikilinked, might be more than one.
| <tt>surface = Snow / Ice</tt>
+
| <code>surface = Snow / Ice</code>
 
|-
 
|-
| <tt>category1</tt>
+
| <code>category1</code>
 
| One of the categories disputed in the rally
 
| One of the categories disputed in the rally
| <tt><nowiki>category1 = Cars</nowiki></tt>
+
| <code><nowiki>category1 = Cars</nowiki></code>
 
|-
 
|-
| <tt>driver1</tt>
+
| <code>driver1</code>
| Winner of the rally in category1, using pattern <tt><nowiki>{{flagicon|COUNTRY}} [[Rally driver]]</nowiki></tt>
+
| Winner of the rally in category1, using pattern <code><nowiki>{{flagicon|COUNTRY}} [[Rally driver]]</nowiki></code>
| <tt><nowiki>driver1 = {{flagicon|FIN}} [[Marcus Grönholm]]</nowiki></tt>
+
| <code><nowiki>driver1 = {{flagicon|FIN}} [[Marcus Grönholm]]</nowiki></code>
 
|-
 
|-
| <tt>team1</tt>
+
| <code>team1</code>
| Winning driver's team in category1, using pattern <tt><nowiki>{{flagicon|COUNTRY}} [[Team name]]</nowiki></tt>
+
| Winning driver's team in category1, using pattern <code><nowiki>{{flagicon|COUNTRY}} [[Team name]]</nowiki></code>
| <tt><nowiki>team1 = {{flagicon|USA}} [[BP-Ford World Rally Team]]</nowiki></tt>
+
| <code><nowiki>team1 = {{flagicon|USA}} [[BP-Ford World Rally Team]]</nowiki></code>
 
|-
 
|-
| <tt>teamsstart</tt>
+
| <code>teamsstart</code>
 
| Number of crews at the start of the event.
 
| Number of crews at the start of the event.
| <tt>teamsstart = 58</tt>
+
| <code>teamsstart = 58</code>
 
|-
 
|-
| <tt>teamsfinish</tt>
+
| <code>teamsfinish</code>
 
| Number of crews at the finish of the event.
 
| Number of crews at the finish of the event.
| <tt>teamsfinish = 45</tt>
+
| <code>teamsfinish = 45</code>
 
|}
 
|}
  

Latest revision as of 16:50, 24 May 2020

Usage

2016 Dakar Rally
Part of the Dakar Rally
← Previous eventNext event →
DakarRally2015 07.JPG
2015 Rally logo
Host country Argentina and  Bolivia
Dates run2 – 16 January 2016
StartArgentina Buenos Aires
FinishArgentina Buenos Aires
Stages14
Stage surfaceGravel, dirt, sand
Overall distance9,237.00 km (5,739.61 mi)
Results
Bikes winnerUkraine Driver 1
Team Bike
Quads winnerPortugal Driver 2
Team Quad
Cars winnerItaly Driver 3
Team Rally
Trucks winnerNorway Driver 4
Team Giant
UTV's winnerBrazil Driver 5
Team UTV
Crews354 at start

Rally infobox can be used to summarize the article about Rally raid event, such as Dakar Rally.

The infobox should be added using the {{Infobox rally raid}} template, as shown below:

{{Infobox rally raid
 |name           = 
 |native_name    = 
 |round          = 
 |championship   = 
 |previous_round = 
 |next_round     = 
 |country        =
 |image          =
 |caption        = 
 |rallybase      = 
 |start          = 
 |finish         = 
 |startdate      = 
 |enddate        = 
 |stages         = 
 |stagekm        = 
 |stagekm_note   = <!-- citation for stagekm value -->
 |overallkm      = 
 |overallkm_note = <!-- citation for overallkm value -->
 |surface        = 
 |category1      =
 |driver1        =
 |team1          =
 |category2      =
 |driver2        =
 |team2          =
 |category3      =
 |driver3        =
 |team3          =
 |category4      =
 |driver4        =
 |team4          =
 |category5      =
 |driver5        =
 |team5          =
 |teamsstart     =
 |teamsfinish    =
}}

Parameters explained

All fields are 100% optional.

Parameter Description Example
name Name of the rally, in {year} {rally_name} pattern. name = 2007 Swedish Rally
native_name Full, native name of the event, including all the sponsors etc. native_name = 56th Uddeholm Swedish Rally
round Championship round. round = 2
championship Main championship containing the rally. Wikilinked. championship = [[2007 World Rally...]]
previous_round Previous event in championship. Article name, non-wikilinked (will be automatically linked). previous_round = 2007 Monte Carlo Rally
next_round Next event in championship. Article name, non-wikilinked (will be automatically linked). next_round = 2007 Rally Norway
country Country hosting the event. Using template {{country}}. country = SWE
image Image illustrating the event. Wikilinked: [[Image:Example.jpg|250px]] image = [[Image:Svensktklimattyp.JPG|250px]]
caption Caption under image. caption = Swedish winter.
rallybase Rally base (usually city), wikilinked. rallybase = [[Karlstad, Sweden]]
startdate Date of start of the event, wikilinked. If the rally was held for only one day, enter the date here. The field will automatically switch from Dates run to Held on. If the year and/or month are the same on start and end date, avoid repeating them (use Month X - Y, Year pattern). startdate = February 8, 2007

startdate = February 8

enddate Date of end of the event, wikilinked. If the rally was held for only one day, do not enter anything here. If the year and/or month are the same on start and end date, avoid repeating them (use Month X - Y, Year pattern). enddate = February 11, 2007

enddate = February 11, 2007

stages Number of Special Stages. stages = 20
stagekm Total length of Special Stages, in kilometers, without a symbol. The infobox will convert it to miles and display both. If you would like to add a citation for this value, use |stagekm_note= stagekm = 341.2
overallkm Overall length of the rally, with liaisons, in kilometers, without a symbol. The infobox will convert it to miles and display both. If you would like to add a citation for this value, use |overallkm_note= overallkm = 1730.36
surface Surface of the special stages. Optionally wikilinked, might be more than one. surface = Snow / Ice
category1 One of the categories disputed in the rally category1 = Cars
driver1 Winner of the rally in category1, using pattern {{flagicon|COUNTRY}} [[Rally driver]] driver1 = {{flagicon|FIN}} [[Marcus Grönholm]]
team1 Winning driver's team in category1, using pattern {{flagicon|COUNTRY}} [[Team name]] team1 = {{flagicon|USA}} [[BP-Ford World Rally Team]]
teamsstart Number of crews at the start of the event. teamsstart = 58
teamsfinish Number of crews at the finish of the event. teamsfinish = 45

See also

Tracking category