יחידה:Citation/CS1: הבדלים בין גרסאות בדף

אין תקציר עריכה
מ 111 גרסאות של הדף wikipedia:he:יחידה:Citation/CS1 יובאו
 
(7 גרסאות ביניים של 3 משתמשים אינן מוצגות)
שורה 199: שורה 199:
elseif inArray( key, { 'italic-title', 'trans-italic-title' } ) then
elseif inArray( key, { 'italic-title', 'trans-italic-title' } ) then
-- avoid italics for hebrew script
-- avoid italics for hebrew script
if (is_set(lang) and lang == 'he' ) then
local isHebrew = mw.ustring.find( str, '[א-ת]' )
if (is_set(lang) and lang == 'he') or (isHebrew~=nil) then
return str
return str
else
else
שורה 684: שורה 685:
]]
]]
function pmc(id, embargo)
function pmc(id, embargo)
local test_limit = 5000000; -- update this value as PMCs approach
local test_limit = 6000000; -- 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
שורה 1,558: שורה 1,559:


-- our part
-- our part
if name == 'נורבגית'
if name == 'ויאטנמית'
   then name = 'נורווגית'
   then name = 'וייטנאמית'
   end
   end
-- our part end
-- our part end
שורה 1,698: שורה 1,699:
-- our code start
-- our code start
local Month = A['Month'];
local Month = A['Month'];
if (Language == 'en-GB' or Language == 'en-US') then
LangCode = mw.ustring.gsub( Language, '-.*', '' );
Language = 'en'
Language = LangCode;
LangCode = 'en'
end
if (Language == 'he-IL') then
Language = 'he'
LangCode = 'he'
end
-- our code end
-- our code end