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

Descrição editar

Este módulo implementa a predefinição {{Info/Trilho}}

Uso editar

Outra documentação:

local building = require "Module:Infobox/Funções/Edifício"
local functions = require "Module:Infobox/Funções"

return
    {
    maincolor = '#DEB887',
    parts =
        {
        functions.title('mapa'),
        functions.sign(),
        functions.mainimage('!Artigos sem imagens', 'Padrao 2.svg'),
        {type = 'table', title = 'Localização', rows = {
            {type = "row", label = "Continente", plurallabel = "Continentes", value = "continente", property = "P30"},
            building.mountainrange(),
            building.watershed(),
            building.adminlocation(),
            building.protectedarea(),
            },
        },
        functions.locationmap(),
        {type = 'table', title = 'Designação', rows = {
            {type = 'row', label = 'Nome nativo', value = 'nome nativo', wikidata = {property = 'P1705', showlang = true}},
            {type = "row", label = 'Nomeado em homenagem a', value = 'nomeado a', property = 'P138'},
            {type = 'row', label = 'Alcunha', value = {'alcunha', 'outro nome'}, property = 'P1449'},
            {type = 'row', label = 'Tipo', value = 'type', property = 'P31'},
            {type = "row", label = 'Designação do património', plurallabel = 'Designações do património', value = 'posições', wikidata = {property = 'P1435', showdate = 'true'}},
            },
        },
        {type = 'table', title = 'Traçado', rows = {
            {type = 'row', label = 'Parte de', value = 'parte de', property = 'P361'},
            {type = 'row', label = 'Terminal', plurallabel = 'Terminais', value = {'terminal', 'terminais', 'pontos de partida'}, wikidata = {property = 'P559', conjtype = 'new line'}},
            {type = 'row', label = 'Comprimento', value = 'comprimento', wikidata = {property = 'P2043', targetunit = 'quilómetro', rounding = '2'}},
            {type = 'row', label = 'Largura', value = 'largura', wikidata = {property = 'P2049', targetunit = 'centímetro', rounding = '1'}},
            {type = 'row', label = 'Ponto mais alto', value = 'ponto mais alto', property = 'P610'},
            {type = 'row', label = 'Ponto mais baixo', value = 'ponto mais baixo', property = 'P1589'},
            {type = 'row', label = 'Nivelamento', value = 'nivelamento'},
            building.equipment(),
            },
        },
        {type = 'table', title = 'Utilização', rows = {
            {type = 'row', label = 'Época', value = 'época'},
            {type = 'row', label = 'Mês', value = 'mês'},
            {type = 'row', label = 'Tarifa', value = 'tarifa', property = 'P2555'},
            {type = 'row', label = 'Dificuldade', value = 'dificuldade'},
            {type = 'row', label = 'Atrações', value = 'atrações'},
            {type = 'row', label = 'Risco no local', value = 'risco no local', property = 'P3335'},
            {type = 'row', label = 'Usado por', value = 'usado por', property = 'P1535'},
            {type = 'row', label = 'Visitantes anuais', value = 'visitantes anuais', wikidata = {property = 'P1174', showdate = true}},
            {type = 'row', label = 'Recorde', value = 'recorde', wikidata = {showonlyqualifier = {'P3279', 'P2047', 'P585', 'P1346'}, property = 'P793', targetvalue = 'Q42314289'}},
            functions.website(),
            },
        },
    }
}