Module:Citation/CS1: Difference between revisions

error trapping of empty citations
m>Dragons flight
(should be unneccesary now)
m>Dragons flight
(error trapping of empty citations)
Line 1,021: Line 1,021:
         args.id = id;
         args.id = id;
     end
     end
   
    if string.length(text) < 2 then
        text = '<span class="error">Citation is empty</span>';
    end
   
     text = z.mw.text.tag({name="span", contents=text, params=args})
     text = z.mw.text.tag({name="span", contents=text, params=args})


Anonymous user