« Module:Infobox/Artiste » : différence entre les versions
m ce |
m oups |
||
Ligne 14 : | Ligne 14 : | ||
person.othernames(), | person.othernames(), | ||
person.nationality(), | person.nationality(), | ||
function() | --- arrangemement pour le paramètre "autres activités" (obsolète ?) | ||
if localdata['autres activités'] then | function() | ||
return | if localdata['autres activités'] then | ||
return {type = 'row', label = 'Activités', value = 'activités'} | |||
else | else | ||
return person.occupation() | return person.occupation() | ||
end | end | ||
end, | end, | ||
{type = 'row', label = 'Autres activités', value = 'autres activités'}, | |||
---- | |||
person.education(), | person.education(), | ||
{type = 'row', label = 'Maîtres', singularlabel = 'Maître', plurallabel = 'Maîtres', value = 'maîtres', property = 'P1066'}, | {type = 'row', label = 'Maîtres', singularlabel = 'Maître', plurallabel = 'Maîtres', value = 'maîtres', property = 'P1066'}, |
Version du 8 août 2015 à 13:54
local person = require "Module:Infobox/Fonctions/Personne" local wikidata = require "Module:Wikidata" return { maincolor = '#7DA7D9', parts =
{
person.title('artiste'), person.mainimage(), {type = 'table', rows = { person.birth(), person.death(), person.floruit(), person.othernames(), person.nationality(), --- arrangemement pour le paramètre "autres activités" (obsolète ?) function() if localdata['autres activités'] then return {type = 'row', label = 'Activités', value = 'activités'} else return person.occupation() end end, {type = 'row', label = 'Autres activités', value = 'autres activités'}, ---- person.education(), {type = 'row', label = 'Maîtres', singularlabel = 'Maître', plurallabel = 'Maîtres', value = 'maîtres', property = 'P1066'}, {type = 'row', label = 'Élèves', singularlabel = 'Élève', plurallabel = 'Élèves', value = 'élèves', property = 'P802'}, {type = 'row', label = 'Lieu de travail', singularlabel = 'Lieu de travail', plurallabel = 'Lieux de travail', value = 'lieu de travail', wikidata = {property = 'P937', showdate = true, sorttype = 'chronological', conjtype = 'comma'} }, {type = 'row', label = 'Mouvement', value = 'mouvement', property = 'P135'}, {type = 'row', label = 'Mécènes', singularlabel = 'Mécène', plurallabel = 'Mécènes', value = 'mécènes', wikidata = {property = 'P1962', showdate = true, sorttype = 'chronological', conjtype = 'comma'} }, person.influencedby(), person.influenced(), person.awards(), }, }, person.works(), {type = 'table', title = 'Compléments', rows = { {type = 'row', value = 'compléments'}, }, }, person.signature(), } }