وحدة:Infobox/Step
المظهر
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
local wikidata = require "Module:Interface Wikidata".fromLua
local countrymod = require "Module:Country data"
local general = require "Module:Infobox/Fonctions"
local sports = require "Module:Infobox/Fonctions/Compétition sportive"
local outils = require "Module:Outils"
return
{
maincolor = '#FFE7A0',
parts =
{
general.title('entete cyclisme'),
general.mainimage('Article à illustrer Étape'),
{type = 'table', title = 'Généralités', rows = {
{type = 'row', label = 'Course', property = 'P361'},
{type = 'row', label = 'Étape', wikidata = {
property = 'P1545',
excludespecial = true,
displayformat =
function(snak)
local v = snak.datavalue.value
if v == '0' then
return 'Prologue' -- ou return nil
end
return outils.ordinal(v)
end
}
},
{type = 'row', label = 'Type', property = 'P31'},
{type = 'row', label = 'Date', wikidata = function() return wikidata.mainDate(item) end},
{type = 'row', label = 'Distance', property = 'P2043'},
general.country(),
{type = 'row', label = 'Départ', property = 'P1427'},
{type = 'row', label = 'Arrivée', property = 'P1444'},
{type = 'row', label = 'Partants', wikidata = {property = 'P1132', qualifier = 'P276', qualifiervalue = 'Q529711'} },
{type = 'row', label = 'Arrivants', wikidata = {property = 'P1132', qualifier = 'P276', qualifiervalue = 'Q15053716'} },
{type = 'row', label = 'Vitesse moyenne', property = 'P2052'},
},
},
{type = 'table', title = 'Résultats de l’étape', rows = {
sports.winnerRow('Vainqueur', 'Q20882747'),
sports.winnerRow('Deuxième', 'Q20882748'),
sports.winnerRow('Troisième', 'Q20882749'),
sports.winnerRow('Combatif', 'Q21686770'),
},
},
{type = 'table', title = 'Classement général à l’issue de l’étape', rows = {
sports.winnerRow('Leader', 'Q20882763'),
sports.winnerRow('Deuxième', 'Q20882764'),
sports.winnerRow('Troisième', 'Q20882765'),
},
},
{type = 'table', title = 'Classements annexes à l’issue de l’étape', rows = {
sports.winnerRow('Points', 'Q20883008'),
sports.winnerRow('Montagne', 'Q20883213'),
sports.winnerRow('Sprints', 'Q20883329'),
sports.winnerRow('Combativité', 'Q20893984'),
sports.winnerRow('Combiné', 'Q20965880'),
sports.winnerRow('Jeune', 'Q20883140'),
sports.winnerRow('Équipes', 'Q20882922'),
},
},
{type = 'images',
imageparameters = {'carte'},
property = 'P242',
numval = 1
},
{type = 'navbox',
previousparameter = "étape précédente",
previouswikidata = {property = "P155", excludespecial = true},
nextparameter = "étape suivante",
nextwikidata = {property = "P156", excludespecial = true},
class = 'bordered',
},
}
}