Burocratas, emailconfirmed, Administradores da interface, Administradores (Semantic MediaWiki), Curadores (Semantic MediaWiki), Editores (Semantic MediaWiki), Supressores, Administradores
1 039
edições
(not yet) |
Sem resumo de edição |
||
title = string.gsub( title, '(:.*)', '<span style="font-weight: normal;">%1</span>')
-- Condição: entrada pelo autor, pelo contribuidor OU pelo título
if #creator >= 1 and #contributor >= 1 then
-- creator = string.gsub( creator, '(,%s%d%d%d%d%-?%d-)', '')▼
if string.match( creator, '^(.*,.*),') then
creator = string.match( creator, '^(.*,.*),') -- Assis, Machado de, 1839-1908
end
creator = string.match( creator, '^(.*)%s%(') -- Tolkien, J. R. R. (John Ronald Reuel), 1892-1973
end
if string.match( contributor, '^(.*,.*),') then
contributor = string.match( contributor, '^(.*,.*),') -- Assis, Machado de, 1839-1908
end
if string.match( contributor, '^(.*)%s%(') then
contributor = string.match( contributor, '^(.*)%s%(') -- Tolkien, J. R. R. (John Ronald Reuel), 1892-1973
end
agent = creator .. '; ' .. contributor
agent = frame:callParserFunction{ name = '#regex', args = { agent, '/(^.*?,)|(;.*?,)/', '<span style="text-transform: uppercase;">$1$2</span>' } }
reference = agent .. '. <b>' .. title .. '</b>. '
elseif #creator >= 1 and #contributor <= 1 then
if string.match( creator, '^(.*,.*),') then
creator = string.match( creator, '^(.*,.*),') -- Assis, Machado de, 1839-1908
reference = creator .. '. <b>' .. title .. '</b>. '
elseif #contributor >= 1 and #creator <= 1 then
contributor = frame:callParserFunction{ name = '#arraymap', args = { contributor, ';','@@@@', '{{#regex:@@@@|/(^.*?,){{!}}(;.*?,)/|<span style="text-transform: uppercase;">$1$2</span>}}', '; '} }
reference = contributor .. '. <b>' .. title .. '</b>. '
|