Difference between revisions 21306610 and 21306611 on frwiktionarylocal export = {} -- 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 return "(This template should be used on pages in the Category: namespace.)" elseif mw.title.getCurrentTitle().nsText ~= "Category" then (contracted; show full) ["fundamental"] = "getFundamentalName", } -- Retrieves an item of information function export.get_item(info, item) local submodule = require("Module:category tree/" .. info.template) require("Module:debug").track("category tree/get item")⏎ if functions[item] then if submodule.new then⏎ local obj = submodule.new(info) if item == "label_exists" then return obj ~= nil else return obj[functions[item]](obj, info) end else require("Module:debug").track("category tree/no new") return submodule[functions[item]](info)⏎ end else error("The requested data item \"" .. item .. "\" is not recognized.") end end -- Check the name of the current page, and return an error if it's not right. function check_name(info) (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=21306611.
![]() ![]() 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.
|