Módulo:Infobox/Instituição educacional de pesquisa

Documentação do módulo[ver] [editar] [histórico] [purgar]

Descrição

Este módulo tem funções auxiliares para criar infocaixas

Uso

Outra documentação:

local wikidata  = require "Módulo:Infobox/Wikidata"
local generic   = require "Módulo:Infobox/Funções"
local geo       = require "Módulo:Infobox/Funções/Geolocalização"
local localdata = require "Módulo:Infobox/Localdata"
   
return
{
maincolor = '#B0C4DE',
thirdcolor = 'white',
parts = {
    generic.title("livro"),
    {type = 'images', imageparameters =  {'brazão'}, defaultimages = nil, defaultupright = 0.7,     uprightparameter = 'upright brazão',
        sizeparameter = 'tamanho brazão', -- obsolète
        captionparameter = 'brazão_legenda',
        -- defaultcaption = 'brazão',
        property = 'P154', numval = 1,},
    {type = 'table', title = 'História e estatuto', rows = {
        {type = 'row', label = 'Nomes anteriores', value = 'nomes_anteriores' },
        {type = 'row', label = 'Fundação', value = {'fundacao', 'fundação'}, property = 'P571'},
        {type = 'row', label = 'Faculdades', value = 'faculdades' },
        {type = 'row', label = 'Mantenedora', value = 'mantenedora' },   
        {type = 'row', label = 'Datas-chaves', value = 'datas-chaves'},         
        {type = 'row', label = 'Dissolução', value = 'dissolução', property = 'P576'},
        {type = 'row', label = 'Tipo de instituição', value = 'tipo', wikidata = { property = 'P31', numval = 1 }, },
        {type = 'row', label = 'Forma jurídica', value = 'forma juridíca', property = 'P1454'},
        {type = 'mixed', label = 'Disciplinas', value = 'disciplinas'},
        {type = 'mixed', label = 'Nome oficial', value = 'nome_original', property = 'P1448'},
        {type = 'mixed', label = 'Regime linguístico', value = 'língua', property = 'P2936'},
        {type = 'row', label = function() return localdata['titulo fundador'] or 'Fundador' end, value = 'fundador', property = 'P112'},
        {type = 'mixed', label = 'Presidente', value = 'presidente', wikidata = { property = 'P488', showdate = true, precision = 'year', numval = 1 }, },
        {type = 'mixed', label = 'Reitor', value = 'reitor', wikidata = { property = 'P1075', showdate = true, precision = 'year', numval = 1 }, },       
        {type = 'mixed', label = 'Diretor(a)', value = 'director', wikidata = { property = 'P1037', showdate = true, precision = 'year', numval = 1 }, },       
        {type = 'row', label = function() return localdata['título dirigente1'] or 'Dirigente1' end, value = 'dirigente1'},
        {type = 'row', label = function() return localdata['título  dirigente2'] or 'Dirigente2' end, value = 'dirigente2'},  },  },
    {type = 'table', title = 'Localização', rows = {
        {type = 'row', label = 'Campus', value = 'campus'},
        {type = 'mixed', label = 'Localização', value = 'localização', property = 'P131'},
        {type = 'mixed', label = 'País' , value = 'país', property = 'P17'}, }, },
    geo.geoloc(),
    {type = 'table', title = 'Números-chave', rows = {
        {type = 'row', label = function() return localdata['título estudantes'] or 'Estudantes' end, value = 'estudantes',  wikidata = { property = 'P2196', showdate = true, precision = 'year', numval = 1 }, },
        {type = 'mixed', label = 'Efectivo', wikidata = { property = 'P1128', showunit =  'long', showdate = true, precision = 'year', numval = 5 }, },
        {type = 'row', label = function() return localdata['título professores'] or '[[Professor|Docentes]]' end, value = {'professores', 'n_professores', 'docentes'},
        {type = 'row', label = function() return localdata['título professores-investigadores'] or 'Professores-investigadores' end, value = 'professores-investigadores'},
        {type = 'row', label = function() return localdata['título investigador'] or 'Investigadores' end, value = 'investigadores'},
        {type = 'mixed', label = '[[Orçamento|Orçamento anual]]', value = {'orçamento', 'orcamento', 'renda anual'}, wikidata = { property = 'P2769', showdate = true, precision = 'year', numval = 1 }, }, }, },
    { type = 'table', title = 'Diversos', rows =     {
        {type = 'mixed', label = 'Lema', value = {'lema', 'slogan'}, property = 'P1451'}, -- falta #if:slogan_pt or lema_pt <br />slogan_pt or lema_pt
        {type = 'mixed', label = 'Membro de', value = 'afiliação',  wikidata = { property = 'P463', numval = 3 },},
        {type = 'mixed', label = 'Sítio web', value = 'website', property = 'P856'}, }, }, }, } }