Módulo:Infobox/Nó

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


Módulo de suporte de infocaixas

Ver também

local general = require "Módulo:Infobox/Funções"

local function no_wiki_hash( localdata )
    if localdata["abok"] then
        return string.gsub(localdata["abok"], "^#", "#") -- substitua o primeiro '#' para não ser interpretado como wikicode
    end
end

local function add_hash(params)
    return "#" .. params.datavalue.value
end

return
    {
        maincolor = '#E1E1E1',
        parts =
        {
            general.title(),
            general.mainimage('!Artigos sem imagens'),
            {type = 'table', rows = {
                {type = 'row', label = 'Outros nomes', value = 'outros nomes'},
                {type = 'row', label = '[[The Ashley Book of Knots|ABoK]]', value = no_wiki_hash, wikidata = {property = 'P1806', displayformat=add_hash} },
                {type = 'row', label = 'Categoria', value = 'categoria'},
                {type = 'row', label = 'Origem', value = 'origem'},
                {type = 'row', label = 'Áreas', value = 'áreas'},
                {type = 'row', label = 'Vizinhos', value = 'nós vizinhos'},
                }
            }
        }
    }