Module:Infobox/Biographie : Différence entre versions

De Lagny-sur-Marne Wiki
Aller à : navigation, rechercher
(parti politique)
(+organisation représentée)
Ligne 20 : Ligne 20 :
 
{type = 'row', label = 'Formation', value = 'formation', property = 'P69'},
 
{type = 'row', label = 'Formation', value = 'formation', property = 'P69'},
 
{type = 'row', label = 'Occupation', value = 'occupation', property = 'P106'},
 
{type = 'row', label = 'Occupation', value = 'occupation', property = 'P106'},
 +
{type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'},
 
{type = 'row', label = 'Employeur', value = 'employeur', property = 'P108'},
 
{type = 'row', label = 'Employeur', value = 'employeur', property = 'P108'},
 
{type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'},
 
{type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'},

Version du 9 juillet 2015 à 10:50

La documentation pour ce module peut être créée à Module:Infobox/Biographie/doc

local person = require "Module:Infobox/Fonctions/Personne"
local wikidata = require "Module:Wikidata"
return 
	{
	maincolor = '#cce6ff',
	parts =
    	{
			{
			type = 'title',
			value = 'nom',
			},
			person.mainimage(),
			{type = 'table', title = 'Informations', rows = {
				{type = 'row', label = 'Surnom', value = 'surnom', property = 'P1449'},
				{type = 'row', label = 'Nom de naissance', value = 'nom de naissance', property = 'P1477'},
				person.birth(),
				person.death(),
				person.nationality(),
				{type = 'row', label = 'Langue maternelle', value = 'langue maternelle', property = 'P103'},
				{type = 'row', label = 'Formation', value = 'formation', property = 'P69'},
				{type = 'row', label = 'Occupation', value = 'occupation', property = 'P106'},
				{type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'},
				{type = 'row', label = 'Employeur', value = 'employeur', property = 'P108'},
				{type = 'row', label = 'Domaine', value = 'domaine', property = 'P101'},
				{type = 'row', label = 'Parti politique', value = 'politique', property = 'P102'},
				{type = 'row', label = 'Conjoint', value = 'conjoint', property = 'P26'},
				{type = 'row', label = 'Distinctions', value = 'distinctions', property = 'P166'},
				},
			}
		}
	}