Jump to content

Module:Citation/CS1: Difference between revisions

fix script error caused by abandoned error check.
m>Dragons flight
(better)
m>Dragons flight
(fix script error caused by abandoned error check.)
Line 32: Line 32:
function errorcomment( content, hidden )
function errorcomment( content, hidden )
     if hidden then  
     if hidden then  
         return '<span style="display:none;font-size:100%" class="error citation-comment">' .. (content or "") .. '</span>';
         return '<span style="display:none;font-size:100%" class="error citation-comment">' .. content .. '</span>';
     else
     else
         return '<span style="font-size:100%" class="error">' .. (content or "") .. '</span>';
         return '<span style="font-size:100%" class="error">' .. content .. '</span>';
     end         
     end         
end
end
Line 1,504: Line 1,504:
         if v ~= '' then
         if v ~= '' then
             if not validate( k ) then             
             if not validate( k ) then             
                error_text = "";
                 if type( k ) ~= 'string' then
                 if type( k ) ~= 'string' then
                     -- Exclude empty numbered parameters
                     -- Exclude empty numbered parameters
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.