Difference between revisions 21306626 and 21306627 on frwiktionarylocal export = {} local m_submodule = nil -- The main entry point. -- This is the only function that can be invoked from a template. function export.show(frame) if mw.title.getCurrentTitle().nsText == "Template" then (contracted; show full) local parents = (info.code and m_submodule.new(info):getBasicParentLabels() or m_submodule.new(info):getUmbrellaParentLabels()) if not parents then return end for _, parent in ipairs(parents) do local sortkey = m_submodule.new(info):getBreadcrumbName() if if type(parent) == "string" or (type(parent) == "table" and not parent.namesort) then sortkey = parent.require("Module:debug").track("category tree/no sort") parent = parent.name{name = parent, sort = m_submodule.new(info):getBreadcrumbName()} end parent.sortkey = lang:makeSortKey(parent.sortkey) if type(parent.name) == "string" then table.insert(categories, "[[" .. parent.name .. "|" .. parent.sortkey .. "]]") else local parent_name = (info.code and parent.name:getBasicName() or parent.name:getUmbrellaName()) table.insert(categories, "[[Category:" .. parent_name .. "|" .. parent.sortkey .. "]]") end end if info.code then -- Also put the category in its corresponding "umbrella" or "by language" category. local umbrella = m_submodule.new(info):getUmbrellaName() (contracted; show full) return mw.getCurrentFrame():expandTemplate{title = TOC_template.text, args = {}} end end return nil 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=21306627.
![]() ![]() 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.
|