Módulo:Testes/TiagoLubiana/Epidemia WD
Aspeto
Este módulo não apresenta nenhuma documentação. Por favor, documente-o caso o saiba usar ou tenha conhecimentos para tal. |
local general = require 'Módulo:Infobox/Funções'
-- local localdata = require( 'Módulo:Infobox/Localdata' )
-- local wikidata = require( 'Módulo:Infobox/Wikidata' )
local localisation = require "Módulo:Infobox/Funções/Geolocalização"
local displayFormat = { 'medecine', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut' }
return {
maincolor = displayFormat[3],
secondcolor = displayFormat[4],
thirdcolor = displayFormat[5],
parts = {
general.title(displayFormat[1], displayFormat[2], 'nom', 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 infecciosos', value = { 'agente infeccioso' } },
{ type = 'row', label = 'origem', value = 'origine'},
{ type = 'row', label = 'lugar', value = 'localisation', wikidata = { property = 'P17' } },
localisation.coordenadas(),
{ type = 'row', label = 'primeiro caso', value = 'premier cas' },
{ type = 'row', label = 'data de início', value = 'date arrivée', wikidata = { property = 'P580' } },
{ type = 'row', label = 'data de término', value = 'date fin', wikidata = { property = 'P582' } },
{ type = 'row', label = 'Site web', value = { 'site web', 'description' }, wikidata = { property = 'P973', displayformat = 'weblink', showlang = true } },
}
},
{
type = 'table',
title = 'Bilan',
rows = {
{ type = 'row', label = 'casos suspeitos', value = 'casos suspeitos' },
{ type = 'row', label = 'casos confirmados', value = 'casos confirmados', wikidata = { property = 'P1603', numval = 1, sorttype = 'inverted', showdate = true, showsource = true } },
{ type = 'row', label = 'casos graves', value = 'casos graves' },
{ type = 'row', label = 'recuperações', value = 'recuperações', wikidata = { property = 'P8010', numval = 1, sorttype = 'inverted', showdate = true, showsource = true } },
{ type = 'row', label = 'hospitalizações', value = 'hospitalizações', wikidata = { property = 'P8049', numval = 1, sorttype = 'inverted', showdate = true, showsource = true } },
{ type = 'row', label = 'mortos', value = { 'mortos'}, wikidata = { property = 'P1120', numval = 1, sorttype = 'inverted', showdate = true, showsource = true } },
}
}
}
}