Module:Infobox/Université
De Wikipedia, l'encyclopédie encyclopedia
local wikidata = require "Module:Wikidata" local generic = require "Module:Infobox/Fonctions" local geo = require "Module:Infobox/Fonctions/Géolocalisation" local localdata = require "Module:Infobox/Localdata"
return { maincolor = '#B4464B', thirdcolor = 'white', parts = { generic.title("universite"), {type = 'images', imageparameters = {'blason'}, captionparameter = 'légende blason', defaultimages = nil, defaultupright = 0.7, uprightparameter = 'upright blason', sizeparameter = 'taille blason', -- obsolète -- defaultcaption = 'blason', property = 'P154', numval = 1}, generic.mainimage('Article à illustrer Université'), {type = 'table', title = 'Histoire', rows = { {type = 'row', label = 'Fondation', value = 'fondation', property = 'P571'}, {type = 'row', label = 'Dates-clés', value = 'dates-clés'}, {type = 'row', label = 'Dissolution', value = 'dissolution', property = 'P576'}, }, }, {type = 'table', title = 'Statut', rows = { {type = 'row', label = 'Type', value = 'type', wikidata = { property = 'P31', numval = 1 },}, {type = 'row', label = 'Forme juridique', value = 'forme juridique', property = 'P1454'}, {type = 'mixed', label = 'Disciplines', value = 'disciplines'}, {type = 'mixed', label = 'Nom officiel', value = 'nom_original', wikidata = { property = 'P1448', showdate = true, entity = item, precision = 'year', conjtype = 'comma', removedupes = true, linktopic = '-' },}, {type = 'mixed', label = 'Régime linguistique', value = 'langue', property = 'P2936'}, {type = 'row', label = function() return localdata['intitulé fondateur'] or 'Fondateur' end, value = 'fondateur', property = 'P112'}, {type = 'mixed', label = function() return localdata['intitulé président'] or 'Président' end, value = 'président', wikidata = { property = 'P488', showdate = true, precision = 'year', numval = 1 },}, {type = 'mixed', label = function() return localdata['intitulé recteur'] or 'Recteur' end, value = 'recteur', wikidata = { property = 'P1075', showdate = true, precision = 'year', numval = 1 },}, {type = 'mixed', label = function() return localdata['intitulé directeur'] or 'Directeur' end, value = 'directeur', wikidata = { property = 'P1037', showdate = true, precision = 'year', numval = 1 },}, {type = 'row', label = function() return localdata['intitulé dirigeant1'] or 'Dirigeant1' end, value = 'dirigeant1'}, {type = 'row', label = function() return localdata['intitulé dirigeant2'] or 'Dirigeant2' end, value = 'dirigeant2'}, {type = 'mixed', label = 'Devise', value = 'devise', property = 'P1451'}, {type = 'mixed', label = 'Membre de', value = 'affiliation', wikidata = { property = 'P463', numval = 3}, }, generic.website(), }, }, {type = 'table', title = 'Chiffres-clés', rows = { {type = 'row', label = function() return localdata['intitulé étudiants'] or 'Étudiants' end, value = 'étudiants', wikidata = { property = 'P2196', showdate = true, precision = 'year', numval = 1 }}, {type = 'mixed', label = 'Effectif', wikidata = { property = 'P1128', showunit = 'long', showdate = true, precision = 'year', numval = 5 },}, {type = 'row', label = function() return localdata['intitulé enseignants'] or 'Enseignants' end, value = 'enseignants'}, {type = 'row', label = function() return localdata['intitulé enseignants-chercheurs'] or 'Enseignants-chercheurs' end, value = 'enseignants-chercheurs'}, {type = 'row', label = function() return localdata['intitulé chercheurs'] or 'Chercheurs' end, value = 'chercheurs'}, {type = 'mixed', label = 'Budget', value = 'budget', wikidata = { property = 'P2769', showunit = 'long', showdate = true, precision = 'year', numval = 1 }, }, }, },
{type = 'table', title = 'Classement', rows = { {type = 'row', label = 'Rang national', value = 'rang national'}, {type = 'row', label = 'Rang international', value = 'rang international'}, }, },
{type = 'table', title = 'Localisation', rows = { {type = 'mixed', label = 'Pays' , value = 'pays', property = 'P17'}, {type = 'row', label = 'Campus', value = 'campus'}, {type = 'mixed', label = 'Localisation', value = 'localisation', wikidata = {property = 'P131'}, blockers = {'ville'}}, {type = 'row', label = 'Ville', value = 'ville'}, }, }, geo.geoloc({marker='college'})}, }