Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
Changed doi validation test to accept all terminal punctuation except period and comma;
Fix kerning; tweak doi display;
வரிசை 67:
local right='<span style="padding-right:0.2em;">%1</span>'; -- spacing to use when title contains trailing single or double quote mark
if str:match ("^[\"\'][^\']") then
str = string.gsub( str, "^([\"\'])", left, 1 ); -- replace (captured) leading single or double quote with left-side <span>
str = string.gsub( str, "(^[\"\'])$", rightleft, 1 ); -- replace (captured) trailingleading single or double quote with rightleft-side <span>
end
if str:match ("[^\'][\"\']$") then
str = string.gsub( str, "^([\"\'])$", leftright, 1 ); -- replace (captured) leadingtrailing single or double quote with leftright-side <span>
end
return str;
end
வரி 339 ⟶ 343:
 
if nil == id:match("^10%.[^%s–]-[^%.,]$") then -- doi must begin with '10.', must not contain spaces or endashes, and must not end with period or comma
cat = ' ' .. seterror( 'bad_doi' );
end
return text .. inactive .. ' ' .. cat
end
 
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது