Edición de «Módulo:Citas»

Advertencia: no has iniciado sesión. Tu dirección IP se hará pública si haces cualquier edición. Si inicias sesión o creas una cuenta, tus ediciones se atribuirán a tu nombre de usuario, además de otros beneficios.

Puedes deshacer la edición. Antes de deshacer la edición, comprueba la siguiente comparación para verificar que realmente es lo que quieres hacer, y entonces publica los cambios para así efectuar la reversión.

Revisión actual Tu texto
Línea 367: Línea 367:
]]
]]
function pmid(id)
function pmid(id)
local test_limit = 45000000; -- update this value as PMIDs approach
local test_limit = 36000000; -- update this value as PMIDs approach
local handler = cfg.id_handlers['PMID'];
local handler = cfg.id_handlers['PMID'];
local err_cat =  ''; -- presume that PMID is valid
local err_cat =  ''; -- presume that PMID is valid
Línea 413: Línea 413:
]]
]]
function pmc(id, embargo)
function pmc(id, embargo)
local test_limit = 12000000; -- update this value as PMCs approach
local test_limit = 8000000; -- update this value as PMCs approach
local handler = cfg.id_handlers['PMC'];
local handler = cfg.id_handlers['PMC'];
local err_cat =  ''; -- presume that PMC is valid
local err_cat =  ''; -- presume that PMC is valid
Línea 419: Línea 419:
local text;
local text;


if id:match("^PMC%d") then
id = id:sub(4, j) -- remove 'PMC' preffix if given
end
if id:match("[^%d]") then -- if PMC has anything but digits
if id:match("[^%d]") then -- if PMC has anything but digits
err_cat = ' ' .. seterror( 'bad_pmc' ); -- set an error message
err_cat = ' ' .. seterror( 'bad_pmc' ); -- set an error message
Línea 597: Línea 594:
     while true do
     while true do
pattern = pages:match("%[(%w*:?//[^ ]+%s+)[%w%d].*%]"); -- pattern is the opening bracket, the url and following space(s): "[url "
pattern = pages:match("%[([%w/:\.]+%s+)[%w%d].*%]"); -- pattern is the opening bracket, the url and following space(s): "[url "
if nil == pattern then break; end -- no more urls
if nil == pattern then break; end -- no more urls
pages = pages:gsub(pattern, ""); -- remove as many instances of pattern as possible
pages = pages:gsub(pattern, ""); -- remove as many instances of pattern as possible
Línea 1273: Línea 1270:
      
      
     local Quote = A['Quote'];
     local Quote = A['Quote'];
     local TransQuote = A['TransQuote'];
     local PostScript = A['PostScript'];
local PostScript = A['PostScript'];


     local LayURL = A['LayURL'];
     local LayURL = A['LayURL'];
Línea 1468: Línea 1464:
if is_set(Interviewer) then
if is_set(Interviewer) then
if is_set(TitleType) then
if is_set(TitleType) then
Others = sepc .. ' ' .. TitleType .. ' con ' .. Interviewer  -- ' ' .. TitleType .. ' con ' .. Interviewer;
Others = sepc .. ' ' .. TitleType .. ' with ' .. Interviewer  -- ' ' .. TitleType .. ' with ' .. Interviewer;
TitleType = '';
TitleType = '';
else
else
Others = sepc .. ' ' .. wrap('interview', Interviewer, use_lowercase) .. Others  -- ' ' .. 'Entrevista con ' .. Interviewer;
Others = sepc .. ' ' .. wrap('interview', Interviewer, use_lowercase) .. Others  -- ' ' .. 'Interview with ' .. Interviewer;
end
end
if is_set(Cointerviewers) then
if is_set(Cointerviewers) then
Línea 1835: Línea 1831:
     if is_set(Title) then
     if is_set(Title) then
         if not is_set(TitleLink) and is_set(URL) then  
         if not is_set(TitleLink) and is_set(URL) then  
             Title = externallink( URL, Title, URL_origin, UrlAccess ) .. TransError .. Format       
             Title = externallink( URL, Title ) .. TransError .. Format       
             URL = "";
             URL = "";
             TieneURL = true;
             TieneURL = true;
Línea 2060: Línea 2056:
     if is_set(URL) then
     if is_set(URL) then
         URL = " " .. externallink( URL, nil, URLorigin, UrlAccess );
         URL = " " .. externallink( URL, nil, URLorigin );
     end
     end
      
      
Línea 2074: Línea 2070:
end     
end     


     if is_set(Quote) or is_set(TransQuote) then
     if is_set(Quote) then
     -- Eliminar comillas de Quote
     -- Eliminar comillas de Quote
         if (Quote:sub(1,1) == '"' and Quote:sub(-1,-1) == '"') or
         if (Quote:sub(1,1) == '"' and Quote:sub(-1,-1) == '"') or
Línea 2085: Línea 2081:
           Quote:sub(-1,-1) == '!' then
           Quote:sub(-1,-1) == '!' then
           PostScript = ""
           PostScript = ""
          end
         end
         
         -- Eliminar comillas de TransQuote
        if (TransQuote:sub(1, 1) == '"' and TransQuote:sub(-1, -1) == '"') or
          (Quote:sub(1,1) == '«' and Quote:sub(-1,-1) == '»') then
TransQuote = TransQuote:sub(2, -2);
end
          
          
        -- No añadir el punto final a la cita si el campo TransQuote ya incluye un punto
        if TransQuote:sub(-1,-1) == '.' or TransQuote:sub(-1,-1) == '?' or
          TransQuote:sub(-1,-1) == '!' then
          PostScript = ""
          end
if TransQuote and TransQuote ~= '' then
          Quote = Quote .. " " .. wrap( 'trans-quoted-title', TransQuote );
          TransQuote = wrap( 'trans-quoted-title', TransQuote );
end
         Quote = sepc .." " .. wrap( 'quoted-text', Quote );  
         Quote = sepc .." " .. wrap( 'quoted-text', Quote );  
     end
     end
Ten en cuenta que todas las contribuciones a Wiki TVenserio pueden ser editadas, modificadas o eliminadas por otros colaboradores. Si no deseas que las modifiquen sin limitaciones, no las publiques aquí.
Al mismo tiempo, asumimos que eres el autor de lo que escribiste, o lo copiaste de una fuente en el dominio público o con licencia libre (véase Wiki TVenserio:Derechos de autor para más detalles). ¡No uses textos con copyright sin permiso!
Cancelar Ayuda de edición (se abre en una ventana nueva)

Plantilla usada en esta página: