Module:Sandbox/trappist the monk/wikisource param fetch explained

--' or a '}'. The names aresorted and then rendered as a skeleton that will typically become part of .

To use this hack: 1. copy the source template's wikitext (typically a non-English template) into a sandbox and save. wikitext_param_fetch takes one argument: where is the name (with namespace) of the sandbox where you saved the source template's wikitext 2. edit this module and in the debug console enter: =p.wikitext_param_fetch('') example: =p.wikitext_param_fetch('User:Trappist the monk/sandbox') 3. copy paste the result (some editing required)]]

local function wikitext_param_fetch (template_name) if not template_name then return 'error: name of source page with namespace required'; end local knownargs_t = ; local emun_args_t = ; local out_t = ; local out_enum_t = ; if template_name then -- if a template name is supplied local template_content = mw.title.new (template_name):getContent or nil; if template_content then -- if we could get unparsed template content template_content = template_content:gsub ('', ); -- strip html comments; any unique parameters in comments are not supported for param in template_content:gmatch ('