Module:Citation/CS1: Difference between revisions

    (synch from sandbox;)
    w>Trappist the monk
    (synch from sandbox;)
    Line 3,534: Line 3,534:
    for k, v in pairs( pframe.args ) do
    for k, v in pairs( pframe.args ) do
    if v ~= '' then
    if v ~= '' then
    k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- for enumerated parameters, translate 'local' digits to Western 0-9
    if ('string' == type (k)) then
    k = mw.ustring.gsub (k, '%d', cfg.date_names.local_digits); -- for enumerated parameters, translate 'local' digits to Western 0-9
    end
    if not validate( k, config.CitationClass ) then
    if not validate( k, config.CitationClass ) then
    error_text = "";
    error_text = "";