« Module:Infobox/Biographie » : différence entre les versions
adaptation du libellé de l'occupation au sexe, dates pour l'apparetnance politique, nom du paramètre du parti politique changé en 'parti politique' (en cohérence avec la doc), noms sous les dates de vie sinon un peu bizarre (voir Bai Guang) |
centralisation de certaines fonctions sur Module:Infobox/Fonctions/Personne, avec affichage des dates |
||
Ligne 1 : | Ligne 1 : | ||
local person = require "Module:Infobox/Fonctions/Personne" | local person = require "Module:Infobox/Fonctions/Personne" | ||
return | return | ||
{ | { | ||
Ligne 16 : | Ligne 16 : | ||
person.education(), | person.education(), | ||
person.occupation(), | person.occupation(), | ||
person.officialposition(), | |||
{type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'}, | {type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'}, | ||
person.employer(), | |||
{type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'}, | {type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'}, | ||
person.politicalparty(), | person.politicalparty(), | ||
person.spouse(), | |||
person.awards(), | person.awards(), | ||
}, | }, |
Version du 21 juillet 2015 à 12:01
local person = require "Module:Infobox/Fonctions/Personne"
return { maincolor = '#cce6ff', parts =
{
person.title(), person.mainimage(), {type = 'table', title = 'Informations', rows = { person.birth(), person.death(), person.othernames(), person.nationality(), {type = 'row', label = 'Langue maternelle', value = 'langue maternelle', property = 'P103'}, person.education(), person.occupation(), person.officialposition(), {type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'}, person.employer(), {type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'}, person.politicalparty(), person.spouse(), person.awards(), }, }, person.signature(), } }