Search results

Jump to navigation Jump to search
  • -- Return the formatted string return mw.text.listToText(list, separator .. s, conjunction) end --DRY function function conjList (conj, list, fmt) return
    7 KB (897 words) - 13:49, 2 August 2018
  • makeInvokeFunc('_func1') function p._func1(args) -- Code for the first function goes here. end p.func2 = makeInvokeFunc('_func2') function p._func2(args) -- Code
    15 KB (1,861 words) - 14:04, 2 August 2018
  • end of the list. ]] local function first_set (list, count) local i = 1; while i <= count do -- loop through all items in list if is_set( list[i] ) then
    166 KB (23,391 words) - 22:23, 15 October 2018
  • local invArgs_list = {} -- sort a parameter list; preferable to randomly sorted output for k, v in pairs(invArgs) do invArgs_list[#invArgs_list + 1] = k end
    4 KB (565 words) - 14:06, 2 August 2018
  • Template:Unbulleted list (category List formatting and function templates)
    surrounding the list, e.g. plainlinks. style – a custom CSS style for the <div>...</div> tags surrounding the list, e.g. font-size: 90%;. list_style – a custom
    181 bytes (325 words) - 10:30, 26 May 2020
  • of lion]] → Etymology of lion mHatnote.formatPages(...) Formats a list of pages using the _formatLink function, and returns the result as an array. For example
    6 KB (682 words) - 14:04, 2 August 2018
  • Module:Hatnote (category Hatnote templates with errors)
    ret[i] = p._formatLink(page) end return ret end function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted
    7 KB (761 words) - 02:56, 5 January 2018
  • Parameter aliases can be listed in |$aliases= (and shouldn't be listed in |$params=), and will be replaced automatically. Each alias and its replacement should
    4 KB (402 words) - 14:04, 2 August 2018
  • Module:Uses TemplateStyles (category Uses TemplateStyles templates with errors)
    protectionLevels["edit"] and tsTitleObj.protectionLevels["edit"][1] or nil if tsProt ~= currentProt then cats[#cats + 1] = "Templates using TemplateStyles with a different
    3 KB (366 words) - 13:46, 2 August 2018
  • %s' end local text = string.format(mainForm, pageType, list) -- Process the options and pass the text to the _rellink function in -- Module:Hatnote. options
    2 KB (302 words) - 03:01, 5 January 2018
  • 'Lua String-based templates', ['Module:Math'] = 'Templates based on the Math Lua module', ['Module:BaseConvert'] = 'Templates based on the BaseConvert
    4 KB (451 words) - 10:30, 26 May 2020
  • If we are substing, this function returns a template invocation, and if -- not, it returns the template body. The template body can be specified in --
    4 KB (571 words) - 03:20, 5 January 2018
  • end end function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { wrappers = 'Template:Section link', valueFunc = function (key, value)
    4 KB (511 words) - 14:04, 2 August 2018
  • Module:Portal (category Portal templates without a parameter)
    :wikitext(string.format('%s%sportal', portal, portal, args['break'] and ' ' or ' ')) end return tostring(root) end function p._image(portals) -- Wrapper function to
    10 KB (1,475 words) - 18:11, 6 August 2018
  • -------- makes a list of templates use in the article. ]] local function template_list_add (template) local template = template:match ('{{%s*(.-)[|}]');
    36 KB (4,927 words) - 10:30, 26 May 2020
  • 'string' and mainCat allCat = type(allCat) == 'string' and allCat if mainCat and date and date ~= '' then local catTitle = string.format('%s %s %s'
    17 KB (2,326 words) - 10:30, 26 May 2020
  • various template parameter values used to modify some manually handled identifiers ]] local function build_id_list( id_list, options ) local new_list, handler
    47 KB (7,107 words) - 22:23, 15 October 2018
  • '[[Category:List templates with deprecated parameters]]' end return ret end function p.makeList(listType, args) if not listType or not listTypes[listType]
    5 KB (756 words) - 10:30, 26 May 2020
  • Module:Location map (category Location maps with different longitude and latitude precisions)
    args['caption'] then if args['caption'] == "" then while #caption_list < #map do caption_list[#caption_list + 1] = args['caption'] end else for caption in mw.text
    20 KB (2,533 words) - 22:20, 15 October 2018
  • day); result=result and is_valid_date(year,month,day2); elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 ~= month2 and 0 ~= day2 then --
    44 KB (7,077 words) - 13:46, 2 August 2018
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)