local generic = require "Module:Infobox/Funções"
local wd = require "Module:Infobox/Wikidata"
return     {
    maincolor = '#F2F2F2',
     parts =
        {
            generic.title(),
            generic.logo('!Artigos sem imagens'),
            generic.mainimage('!Artigos sem imagens'),
            {type = 'table',
                rows =     {
                {type = 'row', label = 'Nome romanizado', value = 'nome_romanizado'},
                {type = 'row', label = 'Nome(s) anterior(es)', value = {'nome_anterior', 'nomes_anteriores'}},
                {type = 'row', label = 'Criação', value = 'data de criação', property = 'P571'},
                {type = 'row', label = 'Extinção', value = 'extinção', property = 'P576'},
                {type = 'row', label = 'Forma jurídica', value = 'forma jurídica', wikidata = {property = 'P1454', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = 'Sede social', value = 'sede', wikidata = {property = 'P159', showqualifiers = 'P17', conjtype = '<br />'}},
                {type = 'row', label = 'Sector de atividade', plurallabel = 'Sectores de atividade', value = 'atividade', property = 'P452'},
                {type = 'row', label = 'Produto', plurallabel = 'Produtos', value = 'produto', property = 'P1056'},
                {type = 'row', label = 'Zona de cobertura', value = 'coubertura'},
                {type = 'row', label = 'Efectivos', value = 'efectivos', wikidata = {property = 'P1128', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = 'Fundador', plurallabel = 'Fundadores', value = 'fundador', property = 'P112'},
                {type = 'row', label = 'Direção', value = 'direção', wikidata = {property = 'P169', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = 'Presidente', plurallabel = 'Presidentes', value = 'président', wikidata = {property = 'P488', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = 'Director', plurallabel = 'Directores', value = 'directeur', wikidata = {property = 'P1037', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = 'Proprietário', plurallabel = 'Proprietários', value = 'proprietário', wikidata = {property = 'P127', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = '[[Empresa-mãe]]', plurallabel = '[[Empresa-mãe|Empresas-mães]]', value = {'holding', 'parente', 'empresa-mae'}, wikidata = {property = 'P749', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = '[[Divisão (negócios)|Divisão]]', plurallabel = '[[Divisão (negócios)|Divisões]]', value = {'divisoes', 'divisões'}, property = 'P199'},
                {type = 'row', label = '[[Subsidiária]]', plurallabel = '[[Subsidiária]]s', value = {'sócio', 'subsidiarias', 'subsid', 'subsidiárias'},  property = 'P2652'},
                {type = 'row', label = 'Sócio', plurallabel = 'Sócios', value = {'sócio', 'acionistas', 'accionistas'}, property = 'P2652'},
                {type = 'row', label = '[[Lucro]]', value = {'lucro', 'lucro_operacional'}},
                {type = 'row', label = '[[Lucro antes de juros e imposto de renda|LAJIR]]', value = {'LAJIR', 'EBIT'}, wikidata = {property = 'P2295', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = 'Receita bruta', value = {'faturamento', 'facturação', 'facturacao'}, wikidata = {property = 'P2139', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = '[[Valor de mercado|Capitalização de mercado]]', value = {'capitalização', 'valor_de_mercado', 'valor de mercado', 'valor_empresa'}, wikidata = {property = 'P2226', showdate = true, sorttype = 'chronological'}},
                {type = 'row', label = '[[Ativo]]', plurallabel = '[[ativo]]s', value = 'ativos'},
                {type = 'row', label = 'Quotação',  plurallabel = 'Quotações', value = 'quotação', wikidata = {property = 'P414', showqualifiers = 'P249', conjtype = '<br />'}},
                {type = 'row', label = 'Notação', value = 'notação'},
                {type = 'row', label = 'Obra porta-voz', plurallabel = 'Obra porta-vozes', value = 'obra porta-voz', property = 'P2813'},
                {type = 'row', label = '\'Slogan\'', value = {'slogan', 'slogan_empresa', 'slogan empresa'}},
                {type = 'row', label = 'Posição no [[Alexa Internet|Alexa]]', value = 'alexa', showdate = true, showqualifiers = 'P512', linktopic = '-' },
                generic.website(),
        }},
        {type = 'table', title = 'Codes', rows = { --Ajustar os países em falta
                {type = 'row', label = 'BCE', value = 'bce', wikidata = {property = 'P3376', urlpattern = wd.formatStatements{entity = "P3376", property = "P1630", numval = 1, debug = 1}}}, --Belgique
                {type = 'row', label = 'CVR', value = 'cvr', wikidata = {property = 'P1059', urlpattern = wd.formatStatements{entity = "P1059", property = "P1630", numval = 1, debug = 1}}}, --Danemark
                {type = 'row', label = 'SIREN', value = 'siren', wikidata = {property = 'P1616', urlpattern = wd.formatStatements{entity = "P1616", property = "P1630", numval = 1, debug = 1}}}, --France
                {type = 'row', label = 'Empresa hungara', value = 'hun', wikidata = {property = 'P2619', urlpattern = wd.formatStatements{entity = "P2619", property = "P1630", numval = 1, debug = 1}}}, --Hongrie
                {type = 'row', label = 'Organização norueguesa', value = 'orgnr', wikidata = {property = 'P2333', urlpattern = wd.formatStatements{entity = "P2333", property = "P1630", numval = 1, debug = 1}}}, --Norvège
                {type = 'row', label = 'Companies House', value = 'companies house', wikidata = {property = 'P2622', urlpattern = wd.formatStatements{entity = "P2622", property = "P1630", numval = 1, debug = 1}}}, --Reino unUnido
                {type = 'row', label = 'OKPO', value = 'okpo', wikidata = {property = 'P2391', urlpattern = wd.formatStatements{entity = "P2391", property = "P1630", numval = 1, debug = 1}}}, --Rússia
                {type = 'row', label = 'TVA intracomunitário', value = 'tva', wikidata = {property = 'P3608', urlpattern = wd.formatStatements{entity = "P3608", property = "P1630", numval = 1, debug = 1}}}, --União europeia
                }
            }
        }
    }