Search results

View (previous 50 | ) (20 | 50 | 100 | 250 | 500)
  • function renderTrackingCategories() if args.decat == 'yes' then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Pages...
    20 KB (2,611 words) - 23:35, April 16, 2023
  • Module:Citation/CS1 (category Templates using TemplateStyles)
    title_type) if utilities.is_set (title_type) then if 'none' == cfg.keywords_xlate[title_type] then title_type = ''; -- if |type=none then type...
    209 KB (29,658 words) - 16:23, May 4, 2023
  • end end if result == nil then if nomatch == nil then return str._error( 'Match not found' ) else return nomatch end else return result...
    18 KB (2,750 words) - 10:10, August 21, 2020
  • Module:Message box (category Templates using TemplateStyles)
    cfg -- Add template categories. if cfg.templateCategory then if cfg.templateCategoryRequireName then if self.isTemplatePage then self:addCat(10...
    18 KB (2,367 words) - 14:10, October 23, 2022
  • '] else -- Deal with regular protection types. local images = obj._cfg.images if images[action] then if images[action][level] then ...
    25 KB (3,007 words) - 14:10, October 23, 2022
  • 0; if strong then if lat_d < 0 then table.insert(errors, {source, "latitude degrees < 0 with hemisphere flag"}) end if long_d < 0 then table...
    23 KB (3,266 words) - 11:51, August 21, 2020
  • shortname = false end else label, islabel = labelOrId(id) end if mw.site.siteName ~= "Wikimedia Commons" then if sitelink then if not (dtxt or shortname)...
    135 KB (17,493 words) - 19:47, August 21, 2020
  • == 'include')) then -- just return if redlinks is not "yes" or similar if trackingEnabled then if portals[2] or portals[3] then root = root...
    6 KB (891 words) - 19:51, August 21, 2020
  • true end if aY > bY then return false end if aM < bM then return true end if aM > bM then return false end if aD < bD then return true...
    67 KB (8,869 words) - 15:02, October 24, 2022
  • valid; nil else if template_t[2] then -- if template is a preprint or uses unique parameters if whitelist.preprint_arguments[template_t[2]]...
    58 KB (8,323 words) - 13:25, October 24, 2022
  • dates if (2 == month) then -- if February month_length = 28; -- then 28 days unless if 1582 > tonumber(year) then ...
    62 KB (9,817 words) - 16:23, May 4, 2023
  • Module:Documentation (category Templates using TemplateStyles)
    local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype...
    34 KB (3,996 words) - 14:10, October 23, 2022
  • pagetype = "" if redirect then pagetype = redirect else pagetype = getNsDetectValue(args) end if yesno(args.plural, false) then if cfg.irregularPlurals[pagetype]...
    7 KB (835 words) - 14:12, August 30, 2020
  • namespace local category if level == 'sysop' or level == 'templateeditor' then if namespace == 2 or namespace == 3 then category = 'Wikipedia move-protected...
    1 KB (179 words) - 02:34, September 4, 2020
  • if type( v ) ~= "nil" then if not tag then if access then if not...
    38 KB (3,826 words) - 10:39, August 21, 2020
  • the template name. local template if args._template then template = args._template else local currentTitle = mw.title.getCurrentTitle() if currentTitle...
    2 KB (208 words) - 19:32, August 21, 2020
  • removed. If this is the case add the cleanup category if not (portallen == #portals) then if (trackingEnabled) then if #portals == 0 then return...
    13 KB (1,951 words) - 19:51, August 21, 2020
  • titleObj) if yesno(args.nocat) then return '' end local cats = {} -- Error category if #modules < 1 then cats[#cats + 1] = 'Lua templates with errors'...
    4 KB (479 words) - 14:10, October 23, 2022
  • Help:Citation Style 1 (category Citation Style 1 templates) (section Templates)
    number of templates that use one of the general use templates as a meta-template to cite a specific source. To be compliant with CS1, a template must: Use...
    65 KB (9,464 words) - 19:52, September 2, 2020
  • value) if not value or not mw.ustring.find(value, '%S') then return nil end if mw.ustring.find(value, '^%s*[%*#;:]') then return value else ...
    5 KB (761 words) - 23:35, April 16, 2023
  • Module:Graph (category Graph, chart and plot templates)
    tonumber(xMax) if not xType then if isInteger then xType = "integer" else xType = "number" end end else if xType then error("Numbers expected...
    43 KB (5,510 words) - 16:23, May 4, 2023
  • "") if (disambiguation == "") then return "" else return disambiguation end end --[[ The main function. --]] local function _main(title) if (not...
    3 KB (412 words) - 23:52, April 16, 2023
  • renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1...
    16 KB (1,681 words) - 19:34, August 21, 2020
  • Help:Footnotes (category Wikipedia pages with incorrect protection templates) (section Template use by reference group type)
    These predefined note and citation groups have templates that make the wikitext markup simpler. These templates also allow a standard reference to be inserted...
    30 KB (3,025 words) - 20:04, October 13, 2020
  • ipairs(shortcuts) do local templatePath, prefix if templateMode then -- Namespace detection local titleObj = mw.title.new(shortcut, 10) if titleObj.namespace...
    4 KB (559 words) - 08:57, May 2, 2021
  • strippedTemplate end else return self.title.prefixedText end end function Template:getName() if self.template then return self.template else return...
    24 KB (2,873 words) - 20:33, September 2, 2020
  • strip templates from the cs1|2 template if not ref then if template:match ('|%s*ref%s*=([^|}]+)') then -- |ref={{template}} not found; if there...
    37 KB (5,067 words) - 17:13, September 13, 2021
  • Help:CS1 errors (category Wikipedia pages with incorrect protection templates) (section Cite <template> requires |<param>=)
    article. If |access-date= has been included in the citation without |url= then this message appears. If the citation does not use a web link, then |access-date=...
    137 KB (13,198 words) - 13:25, October 24, 2022
  • removed. If this is the case add the cleanup category if not (portallen == #portals) then if #portals == 0 then if trackingEnabled then return...
    7 KB (991 words) - 00:00, September 2, 2020
  • args[ii] if val ~= nil then val = mw.text.unstripNoWiki(val) else break end if _ne(args.nowiki) then val = nw(val) end if italic then val = '<span...
    3 KB (475 words) - 10:10, August 21, 2020
  • 0 if (n > 0) then if (n >= 2) then arguments[n - 1] = v end else ...
    12 KB (1,536 words) - 17:46, September 16, 2020
  • (tscript) then -- when both are specified if title_t[std] then -- and if standard is legitimate if title_t[std][tscript] then ...
    74 KB (10,742 words) - 16:23, May 4, 2023
  • list; else a tally local msg; local category; if not tally then if args.ignore then return ''; -- if ignore is true then no message...
    23 KB (3,211 words) - 17:13, September 13, 2021
  • columnName = names[pos] if columnName == 'name' then name = val else newVal[columnName] = val end end if name then params[name] = newVal...
    6 KB (831 words) - 17:46, September 16, 2020
  • pairs(args) do if type(k) == 'number' then if k > imax then invalid = tostring(k) break end else if not good[k] then invalid...
    31 KB (4,600 words) - 10:11, August 21, 2020
  • the template config. local templateCfgPage = TEMPLATE_ROOT .. template local templateCfg = maybeLoadData(templateCfgPage) if not templateCfg then error(string...
    5 KB (677 words) - 22:14, September 11, 2021
  • quoteRight then title = mw.html.create("span"):wikitext(title) end if quoteLeft then title:css("padding-left", "0.15em") end if quoteRight then title...
    6 KB (666 words) - 14:10, October 23, 2022
  • empty string else. ]=] local function make_label (link, display, suffix) local label = ''; if is_set (link) then if is_set (display) then label =...
    9 KB (1,320 words) - 12:55, September 10, 2020
  • args[1]:match('^%s*(.-)%s*$') or '' if warning == '' then return warning_text(cfg.missing_warning) end if not cfg.preview then return '' end return warning_text(warning)...
    1 KB (212 words) - 22:14, September 11, 2021
  • references if (not onInitialPage) then args.ShortSummary = nil end else if (initiallistTitle == "") then onInitialPage = true else onInitialPage...
    31 KB (3,878 words) - 16:23, May 4, 2023
  • i ) if focus( c ) then if flat( c ) then if j then if m then ...
    23 KB (2,422 words) - 14:48, October 26, 2022
  • textPart if not dontBrace then ret = nw('{{') .. ret .. nw('}}') end if _ne(args.a) then ret = nw('*') .. '&nbsp;' .. ret end if _ne(args.kbd) then ret =...
    4 KB (586 words) - 15:48, October 23, 2022
  • uncategorized_subpages, templates_using_volume = templates_using_volume, templates_using_issue = templates_using_issue, templates_not_using_page = templates_not_using_page...
    95 KB (12,388 words) - 16:23, May 4, 2023
  • least one is present if options.link == '' then options.link = nil end if options.target == '' then options.target = nil end if not (options.link or...
    6 KB (768 words) - 14:10, October 23, 2022
  • code --if args.italic_title then -- return "" --end local article if args.page_test then article = mw.title.new(args.page_test) else article...
    15 KB (2,051 words) - 16:23, May 4, 2023
  • unset else date = udate; end end elseif 'webcite' == ulx.url1.service then if date then if config.verifydates then if ldf then ...
    37 KB (5,179 words) - 08:57, May 2, 2021
  • = 'File:' .. args.file -- Format if args.format then checkArg('format', args.format) if args.formatfile then checkArg('formatfile', args.formatfile)...
    2 KB (363 words) - 10:10, August 21, 2020
  • == "" then sep = ", " end local pattern = ".*" .. sep .. "(.*)" local a, b, last = s:find(pattern) if a then return last else return s end end ...
    12 KB (1,973 words) - 13:25, October 24, 2022
  • entity = mw.wikibase.getEntityObject(qid) if entity then local thisQid if qid then thisQid = qid else thisQid = entity.id end -- Named parameter...
    2 KB (328 words) - 05:37, September 3, 2020
  • end end if #pages == 0 then if options.ifexists then mw.addWarning( string.format( msg.noOutputWarning, options.template or defaults...
    5 KB (576 words) - 14:10, October 23, 2022
View (previous 50 | ) (20 | 50 | 100 | 250 | 500)