יחידה:Citation/CS1: הבדלים בין גרסאות בדף
אין תקציר עריכה |
מ 111 גרסאות של הדף wikipedia:he:יחידה:Citation/CS1 יובאו |
||
| (9 גרסאות ביניים של 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 = | 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,045: | שורה 1,046: | ||
return str; | return str; | ||
else | else | ||
if str:sub(1,1) == "'" then str = "<span />" .. str; end | if str:sub(1,1) == "'" then str = "<span></span>" .. str; end | ||
if str:sub(-1,-1) == "'" then str = str .. "<span />"; end | if str:sub(-1,-1) == "'" then str = str .. "<span></span>"; end | ||
-- Remove newlines as they break italics. | -- Remove newlines as they break italics. | ||
| שורה 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']; | ||
LangCode = mw.ustring.gsub( Language, '-.*', '' ); | |||
Language = LangCode; | |||
-- our code end | -- our code end | ||