Difference between revisions 18626517 and 18626519 on frwiktionarylocal 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) ["ug-Arab"] = "ۈۇې", -- TODO } -- first try to detect the script based on the native scripts of the language local scripts = languages[lang].scripts or {} for i, script in ipairs(scripts) do if chars_table[script] and mw.ustring.match(text, "[%[%*%d%p%s]-[" .. chars_table[script] .. "]") then return script end end -- not written in native scripts; check for all scripts for script, chars in ipairs(chars_table) do if mw.ustring.match(text, "[%[%d%p%s]-[" .. chars .. "]") then (contracted; show full) text = text .. " " .. gen.format_list(gender) end end return text end return export All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://fr.wiktionary.org/w/index.php?diff=prev&oldid=18626519.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|