Template:Cycling stage recaps: Difference between revisions
No edit summary |
PrimeHunter (talk | contribs) match either "List of teams and cyclists ..." or "List of cyclists ..." in Category:Tour de France squads, Category:Vuelta a España squads, Category:Giro d'Italia squads, no need for numerous articles to call with a special parameter |
||
Line 6: | Line 6: | ||
| listclass = hlist |
| listclass = hlist |
||
| list1 = |
| list1 = |
||
* {{#switch:{{{1}}} |
|||
⚫ | |||
|1903 Tour de France|1904 Tour de France|1905 Tour de France|1906 Tour de France|1907 Tour de France|1908 Tour de France|1919 Tour de France|1920 Tour de France|1921 Tour de France|1922 Tour de France|1923 Tour de France|1924 Tour de France|1929 Tour de France|1935 Vuelta a España|1936 Vuelta a España|1941 Vuelta a España|1942 Vuelta a España|1945 Vuelta a España|1946 Vuelta a España|1947 Vuelta a España|1950 Vuelta a España = [[List of cyclists in the {{{1}}}|Cyclists]] |
|||
⚫ | |||
* {{#ifeq:{{{2}}}|P|[[{{{1}}}, Prologue to Stage {{{3}}}|Prologue–Stage {{{3}}}]] |[[{{{1}}}, Stage {{{2}}} to Stage {{{3}}}|Stage {{{2}}}–{{{3}}}]] }} |
* {{#ifeq:{{{2}}}|P|[[{{{1}}}, Prologue to Stage {{{3}}}|Prologue–Stage {{{3}}}]] |[[{{{1}}}, Stage {{{2}}} to Stage {{{3}}}|Stage {{{2}}}–{{{3}}}]] }} |
||
* [[{{{1}}}, Stage {{{4}}} to Stage {{{5}}}|Stage {{{4}}}–{{{5}}}]] |
* [[{{{1}}}, Stage {{{4}}} to Stage {{{5}}}|Stage {{{4}}}–{{{5}}}]] |
Revision as of 21:36, 2 October 2017
The cycling stage recaps template is used to make a navigation box for cycling stage races where the stage descriptions are split in one or more articles.
Usage
{{Cycling stage recaps
|race =
|recap1start =
|recap1end =
|recap2start =
|recap2end =
}}
If this order is used, the parameter names can be omitted; {{Cycling stage recaps|race=Tour de France 2008|recap1start=1|recap1end=11|recap2start=12|recap2end=20}} gives the same results as {{Cycling stage recaps|Tour de France 2008|1|11|12|20}}
Parameter list
race -
the name of (the article of) the cycling racerecap1start -
the number of the first stage (usually 1, if the first stage was a split stage 1A, in case of a prologue P)recap1end -
the number of the last stage in the first recaprecap2start -
the number of the first stage of the second recaprecap2end -
the number of the last stage of the second recap
The template assumes that the stage description articles have been named in the standard way: the article about stages 1 to 11 of the 2008 Tour de France should be named 2008 Tour de France, Stage 1 to Stage 11. It also assumes that there is an article that lists the teams and cyclists of the race, and that the article is named in the standard way: the list of teams and cyclists of the 2008 Tour de France should be in the article List of teams and cyclists in the 2008 Tour de France.
Examples
{{Cycling stage recaps|2008 Tour de France|1|11|12|21}}
If a prologue is used, indicate this with a "P", for example
{{Cycling stage recaps|2007 Tour de France|P|10|11|20}}
Extra links
If extra links are wanted for articles about a specific race then edit the template itself. For example, this will add the link Mountains classification to all articles calling the template with |2013 Tour de France
:
| 2013 Tour de France = [[2013 Tour de France Mountains classification|Mountains classification]]