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

Ir para navegação Ir para pesquisar
sem sumário de edição
imported>Jaideraf
Sem resumo de edição
imported>Jaideraf
Sem resumo de edição
table.insert(infos, info)
elseif f100:sub(1, 1) == "2" or f100:sub(1, 1) == "4" or f100:sub(1, 1) == "5" or f100:sub(1, 1) == "6" or f100:sub(1, 1) == "7" or f100:sub(1, 1) == "8" or f100:sub(1, 1) == "9" then
info = info .. ", porém, <strong class='error'>o primeiro indicador foi preenchido incorretamente.</strong>"
table.insert(infos, info)
end
table.insert(infos, info)
end
-- testa se existe ", " no subcampo $a (Nome, Sobrenome)
local f100a = frame:expandTemplate{ title = 'Select', args = { '100', 'a' } }
if f100a ~= '' then
if not string.match(f100a, '.-,.') then
-- testa se existe ","info no subcampo $a (Nome, Sobrenome) --> {{#if: {{#regex:{{Select|100|a}}|/.*?,./r|}} ||= "* <strong class="'error"'>Em pontos de acesso, o nome pessoal deve ser invertido (Nome, Sobrenome). Verifique o campo 100.</strong>"
table.insert(infos, info)
end
if string.match(f100a, '[a-zÀ-ü],[A-ZÀ-ü]') then
info = "* <strong class='error'>Falta espaço após a vírgula. Verifique o campo 100.</strong>"
table.insert(infos, info)
end
end
local f100q = frame:expandTemplate{ title = 'Select', args = { '100', 'q' } }
if f100q ~= '' then
if not string.match(f100q, '^%(') then
info = "* <strong class='error'>O subcampo $q do campo 100 necessita de parênteses.</strong>"
table.insert(infos, info)
end
end
local f100d = frame:expandTemplate{ title = 'Select', args = { '100', 'd' } }
if f100d ~= '' then
if string.match(f100d, '%$d %d%d%d%d$') then
info = "* <strong class='error'>O subcampo $d do campo 100 necessita hífen.</strong>"
table.insert(infos, info)
end
end
--[[
-- testa se existe "," no subcampo $a (Nome, Sobrenome) --> {{#if: {{#regex:{{Select|100|a}}|/.*?,./r|}} || * <strong class="error">Em pontos de acesso, o nome pessoal deve ser invertido (Nome, Sobrenome). Verifique o campo 100.</strong>
}} {{#if: {{#regex:{{Select|100|a}}|/[a-zÀ-ü],[A-ZÀ-ü]/r|}} |* <strong class="error">Falta espaço após a vírgula. Verifique o campo 100.</strong>}} {{#if: {{Select|100|q}} | {{#if: {{#regex:{{Select|100|q}}|/^\(/r|}} || * <strong class="error">O subcampo $q do campo 100 necessita de parênteses.</strong>}} }} {{#if: {{Select|100|d}} | {{#if: {{#regex:{{Field data string|100|2|}}|/\$d \d\d\d\d$/r|}} |* <strong class="error">O subcampo $d do campo 100 necessita hífen.</strong>}} }}
}}
--]]
Usuário anônimo

Menu de navegação