Difference between revisions 18626519 and 18626520 on frwiktionary

local languages = mw.loadData("Module:languages")
local export = {}
 
-- Create a tagged text from a given text. This is equivalent of the script templates.
function export.tag_text(text, lang, tag, class)
    return "<" .. (tag or "span") .. (class and (" class=\"" .. class .. "\"") or "")
(contracted; show full)            text = text .. "&nbsp;" .. gen.format_list(gender)
        end
    end
 
    return text
end
 
return export