Módulo:Citas: Diferenzas entre revisións

Contido eliminado Contido engadido
Banjo (conversa | contribucións)
comentado de asignación de categorías de mantemento e propiedades
Banjo (conversa | contribucións)
mSen resumo de edición
Liña 325:
-- is prefix one of these language codes?
if in_array (lang, {'ar', 'bg', 'bs', 'dv', 'el', 'fa', 'hy', 'ja', 'ka', 'ko', 'ku', 'he', 'ps', 'ru', 'sd', 'sr', 'th', 'uk', 'ug', 'yi', 'zh'}) then
-- add_prop_cat ('script_with_name', {name, lang})
else
-- add_prop_cat ('script')
end
lang = ' lang="' .. lang .. '" '; -- convert prefix into a lang attribute
Liña 700:
if id:match("^%d%d%d%d%d%d%d%d%d[%dX]$") then -- if 10-digit numeric (or 9 digits with terminal X)
if check_isbn( id ) then -- see if asin value is isbn10
-- add_maint_cat ('ASIN');
elseif not is_set (err_cat) then
err_cat = ' ' .. set_error ('bad_asin'); -- asin is not isbn10
Liña 923:
return embargo; -- still embargoed
else
-- add_maint_cat ('embargo')
return ''; -- unset because embargo has expired
end
Liña 1.485:
if true == etal then
-- add_maint_cat ('etal');
end
return names, etal; -- all done, return our list of names
Liña 1.718:
for _, lang in ipairs (names_table) do -- reuse lang
if 0 == namespace and (('en' == lang:lower()) or ('inglés' == lang:lower())) then
-- add_maint_cat ('inglés');
end
Liña 1.734:
if 'no' == code then name = 'noruego' end; -- override wikimedia when code is 'no'
if 0 == namespace and 'gl' ~= code then -- is this page main / article space and English not the language?
-- add_prop_cat ('foreign_lang_source', {name, code})
end
elseif false == unrec_cat then
unrec_cat = true; -- only add this category once
-- add_maint_cat (unknown_lang);
end
Liña 1.888:
max = tonumber (max); -- make it a number
if max >= count and 'authors' == list_name then -- AUTHORS ONLY -- if |display-xxxxors= value greater than or equal to number of authors/editors
-- add_maint_cat ('disp_auth_ed', list_name);
end
else -- not a valid keyword or number
Liña 2.365:
if 'none' == Title and is_set(Periodical) and not (( config.CitationClass == "encyclopaedia" ) or ( config.CitationClass == "citation" and is_set (Encyclopedia))) then -- special case
Title = ''; -- set title to empty string
-- add_maint_cat ('untitled');
end