Módulo:Infobox/Meteorito

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

Descrição editar

Este módulo tem funções auxiliares de {{Info/Meteorito}}

Uso editar

Outra documentação:

local building = require "Módulo:Infobox/Funções/Edifício"
local general = require "Módulo:Infobox/Funções"

local function dados()
     local rows = {}
     for i = 1, 6 do
         table.insert (rows, {
             type = 'row',
             label = function ( localdata )
                 return localdata['rótulo' .. tostring(i)] or ''
             end,
             value = 'dados' .. tostring(i),
         })
     end
     return rows
 end

return {
    maincolor = '#778899',
    parts = {
        building.title(),
        building.mainimage('!Artigos de geografia sem imagens'),
        {type = 'table', title = 'Características', rows = {
                {type = 'row', label = 'Classificação estrutural', value = 'classificação estrutural'},
                {type = 'row', label = 'Classe', value = 'classe', property = 'P31'},
                building.adminlocation(),
                building.protectedarea(),
                building.coordenadas(),
        }},
        {type = 'table', title = 'Caracteristicas físicas', rows = {
            {type = 'row', label = 'Massa', value = 'massa', wikidata = { property = 'P2067', showlink = true}},
            building.protection(),
            building.dimensions(),
            {type = 'row', label = 'Área', value = 'área', wikidata = {property = 'P2046', targetunit = 'square kilometer'}},
            {type = 'row', label = 'Profundidade', value = 'profundidade', wikidata = {property = 'P2610', targetunit = 'm'}},
            {type = 'row', label = 'Idade', value = 'idade', wikidata = { property = "P571", conjtype= "or"}},
            building.colour(), --{type = "mixed", label = "Cores", plurallabel = "Cores", value = "cores", property = "P462"},
            {type = "mixed", label = "Inscrição", plurallabel = "Inscrições", value = "inscrição", wikidata = {property = "P1684", conjtype = "<br />", numval = "3", rank = "best"}},
            {type = "mixed", label = "Composto de", value = "composto de", property = "P527"},
        }},
        {type = 'table', title = 'Exploração', rows = {
            {type = 'row', label = 'Caída observada', value = 'caída_observada'},
            {type = 'row', label = 'Data de caída', value = 'data_de_caída'},
            {type = 'row', label = 'Hora de caída', value = 'hora_de_caída'},
            {type = 'row', label = 'Descobridor', plurallabel = 'Descobridores', value = 'descobridor', property = 'P61'},
            {type = 'row', label = 'Local de descoberta', plurallabel = 'Locais de descoberta', value = 'local de descoberta', property = 'P65'},
            {type = 'row', label = 'Data de descoberta', value = 'data', property = 'P575'},
            {type = 'row', label = 'Epónimo', value = 'epónimo', property = 'P138'},

        }},
            {type = "table", title = "Retenção", rows = {
                building.owner(),
            {type = "mixed", label = "Proprietário", plurallabel = "Proprietários", value = "proprietário", property = "P127"},
            {type = "mixed", label = "Conservador", plurallabel = "Conservadores", value = "conservador", property = "P195"},
            {type = "mixed", label = "Número de inventário", value = "inventário", property = "P217"},
            {type = "mixed", label = "Estatuto patrimonial", value = "estatuto patrimonial", property = "P1435"},
            {type = 'row', label = 'Localização', value = {'localização', 'museu'}, property = 'P276'},
            building.destroyedby(),
            building.website(),
                }},
        {type = 'table', title = 'Outras informações', rows = dados() },
        building.geoloc(),
    }
}