Módulo:ABNT: mudanças entre as edições

not yet
imported>Jaideraf
Sem resumo de edição
imported>Jaideraf
(not yet)
local creator = frame:callParserFunction{ name = '#show', args = { target, '?Has creator#', link = 'none', valuesep = '; '} }
-- Definir se há editores(es) para o início da referência
local editorcontributor = frame:callParserFunction{ name = '#show', args = { target, '?Has editorcontributor#', link = 'none', valuesep = '; '} }
-- Definir o título e o subtítulo
local title = frame:callParserFunction{ name = '#show', args = { target, '?Display title of#', link = 'none' } }
title = string.gsub( title, '(:.*)', '<span style="font-weight: normal;">%1</span>')
-- Condição: entrada pelo autor OU, pelo editorcontribuidor OU pelo título
if #creator >= 1 then
-- creator = string.gsub( creator, '(,%s%d%d%d%d%-?%d-)', '')
reference = creator .. '. <b>' .. title .. '</b>. '
elseif #editorcontributor >= 1 then
editorcontributor = frame:callParserFunction{ name = '#regexarraymap', args = { editorcontributor, ';','@@@@', '{{#regex:@@@@|/(^.*?,)|{{!}}(;.*?,)/', '|<span style="text-transform: uppercase;">$1$2</span>}}', ';&#32;'} }
reference = editorcontributor .. ' (Org.). <b>' .. title .. '</b>. '
else
Usuário anônimo