« Module:Infobox/Biographie » : différence entre les versions

De Lagny-sur-Marne Wiki
Aller à la navigation Aller à la recherche
0x010D (discussion | contributions)
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)
0x010D (discussion | contributions)
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"
local wikidata = require "Module:Wikidata"
 
return  
return  
{
{
Ligne 16 : Ligne 16 :
person.education(),
person.education(),
person.occupation(),
person.occupation(),
{type = 'row', label = 'Fonction', value = 'fonction', property = 'P39'},
person.officialposition(),
{type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'},
{type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'},
{type = 'row', label = 'Employeur', value = 'employeur', property = 'P108'},
person.employer(),
{type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'},
{type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'},
person.politicalparty(),
person.politicalparty(),
{type = 'row', label = 'Conjoint', value = 'conjoint', property = 'P26'},
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(), } }