Difference between revisions 18626529 and 18626530 on frwiktionarylocal languages = mw.loadData("Module:languages") local export = {} -- transliterate the text, if possible function export.translit(lang, text) -- TODO: the table's information should be moved to [[Module:languages]] local translit_modules = { ["ae"] = "Module:Avst-translit", (contracted; show full) else return "" end end -- Used by {{categorize}} function export.template_categorize(frame) NAMESPACE = NAMESPACE or mw.title.getCurrentTitle().nsText⏎ local args = frame:getParent().args local lang = args[1]; if lang == "" or lang == nil then⏎ local sort_key = args["sort"]; if sort_key == "" then sort_key = nil end local categories = {} if lang == "" or lang == nil then if NAMESPACE == "Template" then lang = "und" else⏎ error("Language code has not been specified. Please pass parameter 1 to the template.") end local sort_key = args["sort"]; if sort_key == "" then sort_key = nil end local categories = {} end end local i = 2 local cat = args[i] or "" while cat ~= "" do table.insert(categories, cat) i = i + 1 cat = args[i] or "" end return export.format_categories(categories, lang, sort_key) 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=18626530.
![]() ![]() 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.
|