local general = require 'Módulo:Infobox/Funções'
--local localdata = require( 'Módulo:Infobox/Localdata' )
--local wikidata = require( 'Módulo:Wikidata/Infobox' )
local localisation = require "Módulo:Infobox/Funções/Geolocalização"
local displayFormat = { 'medicina', nil, '#E1E1E1', '#E1E1E1', '#000000', 'padrao' }

return {
    maincolor = displayFormat[3],
    secondcolor = displayFormat[4],
    thirdcolor = displayFormat[5],
    parts = {
        general.title(displayFormat[1], displayFormat[2], 'nome', nil, false),
        {
            type = 'images',
            imageparameters = 'imagem1',
            captionparameter = 'legenda1',
            wikidata = { property = 'P1846' },
            numval = 1,
        },
        { type = 'images', imageparameters = 'imagem2', captionparameter = 'legenda2' },
        { type = 'images', imageparameters = 'imagem3', captionparameter = 'legenda3' },
        {
            type = 'table',
            rows = {
                { type = 'row', label = 'Doença', value = 'doença', wikidata = { property = 'P242', showonlyqualifier = 'P1545' } },
                { type = 'row', label = 'Agente infecioso', value = { 'agente infecioso', 'type' } },
                { type = 'row', label = 'Origem', value = 'origem'},
                { type = 'row', label = 'Localização', value = 'localização', wikidata = { property = 'P17' } },
                localisation.coordenadas(),
                { type = 'row', label = 'Primeiro caso', value = 'primeiro caso' },
                { type = 'row', label = 'Data de chegada', value = 'data chegada', wikidata = { property = 'P580' } },
                { type = 'row', label = 'Date de fim', value = 'data fim', wikidata = { property = 'P582' } },
                { type = 'row', label = 'Website', value = { 'website', 'descrição' }, wikidata = { property = 'P973', displayformat = 'weblink', showlang = true } },
            }
        },
        {
            type = 'table',
            title = 'Balanço',
            rows = {
                { type = 'row', label = 'Casos suspeitos', value = 'casos suspeitos' },
                { type = 'row', label = 'Casos confirmado', value = 'casos confirmados', wikidata = { property = 'P1603', numval = 1, sorttype = 'inverted', showdate = true, showsource = falso } },
                { type = 'row', label = 'Casos severos', value = 'casos severos' },
                { type = 'row', label = 'Casos tratados', value = 'casos tratados', wikidata = { property = 'P8010', numval = 1, sorttype = 'inverted', showdate = true, showsource = false } },
                { type = 'row', label = 'Hospitalizações', value = 'hospitalizações', wikidata = { property = 'P8049', numval = 1, sorttype = 'inverted', showdate = true, showsource = false } },
                { type = 'row', label = 'Mortos', value = { 'mortos', 'falecidos' }, wikidata = { property = 'P1120', numval = 1, sorttype = 'inverted', showdate = true, showsource = false } },
            }
        }
    }
}