Módulo:Infobox/Porto

Origem: Wikipédia, a enciclopédia livre.
Documentação do módulo[ver] [editar] [histórico] [purgar]

Descrição[editar código-fonte]

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

Uso[editar código-fonte]

Outra documentação:

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

return
    {
    maincolor = 'A8D2FF',
    parts =
    {
        port.title('mapa'),
        port.mainimage('!Artigos de transportes sem imagem'),
        {type = 'table', title = 'Localização', rows = {
            building.coordenadas(),
            building.country(),
            {type = 'row', label = 'Localização', value = 'localização', wikidata= {property = 'P131'}},
            building.adminlocation(),
            {type = 'row', label = "Plano de água", value = "plano de água", wikidata= {property = 'P206'}},
    }},
    building.geoloc({pointtype = 'port', marker = 'harbor'}),
    {type = 'table', title = 'Detalhes', rows = {
        {type = 'row', label = 'Inauguração', value = {'entrada em serviço', 'inaugurado', 'inauguração'}, wikidata= {property = 'P1619'}},
        {type = 'row', label = 'Operado por', value = 'operação'},
        building.usage(),
        building.equipment(),
        building.owner(),
        {type = 'row', label = 'Tipo de porto', value = 'tipo'},
        building.construction(),
        {type = 'row', label = 'Estatuto', value = 'estatudo'},
        {type = 'row', label = 'Berços disponíveis', value = 'berço'},
        {type = 'row', label = 'Carga anual de toneladas', value = 'carga_ton'},
        {type = 'row', label = 'Comprimento', value = 'comprimento', wikidata= {property = 'P2043'}},
        {type = 'row', label = 'Área', value = 'área', property = 'P2043'},
        {type = 'row', label = 'Volume anual de [[Contentor (transporte)|contêineres]]', value = 'volume_cont'},
        {type = 'row', label = 'Superfície', value = {'área', 'superfície'},
        wikidata = {property = 'P2046', targetunit = 'square meter',
        conjtype = 'or', rounding = '1', numval = '2'}},
        {type = 'row', label = 'Berços disponíveis', value = 'berço'},
        {type = 'row', label = 'Extensão do cais', value = 'cais'},
        {type = 'row', label = 'Píers', value = 'píer'},
        {type = 'row', label = 'Calado', value = 'calado'},
        {type = 'row', label = 'Dutos', value = 'dutos'},
        {type = 'row', label = 'Armazéns', value = 'armazéns'},
        {type = 'row', label = 'Empregados', value = 'empregados'},
        building.website(),
    }},
    {type = 'table', title = 'Estatísticas', rows = {
        {type = 'row', label = 'Chegadas de navios', value = 'chegadas'},
        {type = 'row', label = 'Carga anual de toneladas', value = 'carga_ton'},
        {type = 'row', label = 'Volume anual de [[Contentor (transporte)|contêineres]]', value = 'volume_cont'},
        {type = 'row', label = 'Valor da carga', value = 'cargavalor'},
        {type = 'row', label = 'Tráfego de passageiros', value = 'tráfego_pass'},
        {type = 'row', label = 'Receita anual', value = 'receita'},
        {type = 'row', label = 'Lucro líquido', value = 'lucro'}
    }},
    }
}