Search results

View ( | ) (20 | 50 | 100 | 250 | 500)
  • 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
  • _ISOyear( input ) if not input then return '' end input = mw.text.trim( input ) -- if empty string then return it if input == "" then return input...
    8 KB (1,377 words) - 19:49, August 21, 2020
  • to zero. If so, -- returns it as a number. If not, returns a default value. val = tonumber(val) if val and val >= 0 then return val else return...
    13 KB (1,817 words) - 19:51, August 21, 2020
  • { known_templates_anchor = known_templates_anchor, known_templates_cs12 = known_templates_cs12, known_templates_harvc = known_templates_harvc, known_templates_vcite...
    12 KB (1,577 words) - 12:20, September 2, 2020
  • Holy Mother (August album) (category Pages using duplicate arguments in template calls)
    of what he ultimately seeks, especially when he has no excuses or anything else to hold onto. Like that evening of April 20, 1992, when David Bowie - at...
    6 KB (852 words) - 22:22, November 3, 2022
  • templates', ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected templates ['all|all|blp|sysop|edit']...
    45 KB (5,039 words) - 14:10, October 23, 2022
  • tidyValDefault(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil else return val end else return val...
    10 KB (1,447 words) - 17:46, September 16, 2020
  • -- boolean: true if msg is "false" or starts with n or N if url == '' then if text == '' then if nomsg then return nil else return mw....
    4 KB (641 words) - 16:23, May 4, 2023
  • The 100 (TV series) (category Articles with invalid date parameter in template)
    food and water for three days before finally telling his father. Lincoln was then made to kill the man by his father. This experience of his childhood made...
    26 KB (3,089 words) - 17:34, September 12, 2021
  • body if we aren't substing. if not mw.isSubsting() then if body ~= nil then return body elseif frame.args[BODY_PARAM] ~= nil then return frame.args[BODY_PARAM]...
    4 KB (605 words) - 17:31, October 11, 2021
  • Fringe (TV series) (category Articles with invalid date parameter in template)
    it is unknown if any of these events will come to pass. Back in the present day, Peter creates a bridge between the universes but then he is erased from...
    44 KB (5,802 words) - 07:57, October 8, 2021
  • Hear Me Lord (category Articles with invalid date parameter in template)
    to which Chip Madinger and Mark Easter add: "If the Lord hadn't heard him by now, then there wasn't much else [Harrison] could do to get his ear." Huntley...
    32 KB (3,861 words) - 22:31, November 3, 2022
  • Module:Citation/CS1/styles.css (category Wikipedia pages with incorrect protection templates)
    could write the rule so that when this template is inside references/reflist, only then does it multiply by 0.95; else multiply by 0.85 */ .cs1-format { font-size:...
    3 KB (508 words) - 16:23, May 4, 2023
  • {}).value if propValue == value then if nocatsame == "" then return "[[Category:" .. catbase .. " same as Wikidata]]" -- yay! else return...
    2 KB (238 words) - 19:47, August 31, 2020
  • args[k] = v end end else for k, v in pairs( frame.args ) do if not specialParams[k] then if v == '__DATE__' then v = mw.getConten...
    5 KB (778 words) - 14:10, October 23, 2022
  • limit. if page then local success, pageObject = pcall(mw.title.new, page) if success then return pageObject else return nil end else return...
    6 KB (741 words) - 14:12, August 30, 2020
  • ) local success, titleObj = pcall(mw.title.new, ...) if success then return titleObj else return nil end end function p.redirect(frame) mArguments...
    4 KB (490 words) - 22:15, September 11, 2021
  • navbox_even_part if args[cfg.arg.evenodd] then if args[cfg.arg.evenodd] == cfg.keyword.evenodd_swap then first, second = second, first else first =...
    17 KB (2,482 words) - 16:23, May 4, 2023
  • the URL local url do local title if args.page then title = mw.title.new(args.page) if not title then error(string.format( "'%s' is...
    1 KB (153 words) - 10:11, August 21, 2020
  • collapsible_class = nil if is_collapsible then collapsible_class = cfg.classes.collapsible if not is_plain then is_mini = 1 end if font_color then font_style...
    5 KB (727 words) - 23:35, April 16, 2023
  • hour=0, min=0, sec=0}) if diff < 0 then returnval = 'Invalid date range' else if y1 == y2 then if dmy == false then returnval = pr1 ....
    2 KB (391 words) - 16:23, May 4, 2023
  • 'false' or val == 'f' or val == 'off' or tonumber(val) == 0 then return false else return default end end...
    745 bytes (116 words) - 17:46, September 16, 2020
  • (str) if not is_set (str) then return str end if str:sub (1, 1) == "'" then str = "<span></span>" .. str; end if str:sub (-1, -1) == "'" then str =...
    24 KB (3,557 words) - 17:26, October 23, 2022
  • La buona novella (category Articles with invalid date parameter in template)
    himself, and now he emerges from his solipsism and opens himself to someone else finding in this other person someone who is similar to him, someone who is...
    19 KB (2,453 words) - 21:26, October 18, 2020
  • else if 'map' == class or 'interview' == class then OCinSoutput["rft.genre"] = 'unknown'; -- standalone map or interview else ...
    16 KB (2,193 words) - 16:23, May 4, 2023
  • map) if not args then args = getArgs(frame, {wrappers = 'Template:Location map~'}) end local mapnames = {} if not map then if args[1] then map...
    20 KB (2,820 words) - 19:39, August 21, 2020
  • Template:Ifnotempty (category If-then-else templates)
    Template documentation With this template #if can be used in a way such that it does not strip spaces and newlines from the "then" and "else" part. For...
    1 KB (156 words) - 19:50, August 21, 2020
  • local v_range if chapter_only then if e_chap == s_chap then v_range = s_chap else v_range = s_chap .. '–' .. e_chap end else if e_chap == s_chap...
    13 KB (1,761 words) - 17:31, October 11, 2021
  • Genesis (band) (category Articles with invalid date parameter in template)
    evil/darkness. The programme describes this section as follows: "Above all else an egg is an egg. 'And did those feet ............' making ends meet. Jerusalem...
    31 KB (3,173 words) - 13:42, October 24, 2022
  • prop.rank if rank == 'preferred' then return 1 elseif rank == 'normal' then return 0 elseif rank == 'deprecated' then return -1 else -- No rank...
    5 KB (657 words) - 20:41, May 21, 2023
  • through each tag/name pair in the MediaWiki list if lang_name_table_t.lang[tag] then -- if the tag is in the main list lang_name_table_t.lang[tag]...
    27 KB (3,277 words) - 16:23, May 4, 2023
  • lum_fg = 1, 0 if args[2] then local lum = color2lum(args[2]) if lum ~= '' then bg, lum_bg = args[2], lum end end if args[3] then local lum = color2lum(args[3])...
    7 KB (1,260 words) - 10:10, August 21, 2020
  • function p.num(frame, count) if count == nil then if yesno(frame.args['fetch']) == false then if (frame.args[1] or '') ~= '' then count = tonumber(frame...
    7 KB (908 words) - 15:44, October 23, 2022
  • also parse templates that occur within other templates, * rather than just top-level templates. * @return object[] */ extraJs.parseTemplates = function(wikitext...
    29 KB (3,475 words) - 20:59, August 30, 2020
  • opacity/transparency, etc. (The default color palette if n <= 10 is Category10:                                         else is Category20:                            ...
    11 KB (1,356 words) - 21:54, August 29, 2020
  • number) if (number < 100) then return getOrdinalIndicatorLessThan100(number) elseif (number % 100 == 0) then return commonSuffix else -- Numbers...
    21 KB (2,630 words) - 23:42, April 16, 2023
  • page for templates indicating prior XfD or PROD var numTemplates = $(xmlDoc).find('templates tl').length; if (numTemplates) { var template = $(xmlDoc)...
    16 KB (1,926 words) - 20:27, August 30, 2020
  • duration[k] then return p._error('Invalid values') end end else if mw.ustring.find(tmp, 'class="duration"', 1, yes) then return tmp end -- if there is...
    3 KB (511 words) - 12:29, October 18, 2020
  • suffix if timeDiff >= 0 then -- Past if result_num == 1 then punctuation_key = 1 else punctuation_key = 2 end if args.ago == '' then suffix...
    5 KB (700 words) - 21:25, April 3, 2021
  • (args[i]) if pronItem then pron[#pron + 1] = pronItem pron[#pron + 1] = ' ' else break end end if #pron > 0 then ret[#ret +...
    4 KB (581 words) - 08:57, May 2, 2021
  • trimArg(args.id) if not id then error("Parameter id is missing. See [[Template:" .. tname .. "]] documentation") else if tonumber(id) then -- it's a...
    5 KB (614 words) - 23:13, September 10, 2020
  • variableValPostfix if calltemplates then local output = p.callTemplate(template, targs) if #mw.text.trim(output) == 0 then addSeparator =...
    3 KB (387 words) - 10:10, August 21, 2020
  • -------- function p.name(title) if type(title) == 'string' then title = mw.title.new(title) if not title then error("invalid title in parameter...
    4 KB (587 words) - 20:33, September 2, 2020
  • XfdVenue.Cfd(); } else if ( pageName.includes('Files_for_discussion') ) { return XfdVenue.Ffd(); } else if ( pageName.includes('Templates_for_discussion')...
    204 KB (21,994 words) - 20:59, August 30, 2020
  • boolean -- Extract section from page, if present if page then local p, s = page:match('^(.-)#(.*)$') if p then page, sections[1] = p, s end end --...
    4 KB (618 words) - 13:25, October 24, 2022
  • local and target parameter names if l_name and t_name then -- if both are set if tonumber (l_name) then l_name = tonumber (l_name); ...
    12 KB (1,773 words) - 13:25, October 24, 2022
  • length; i++ ) { if ( id.childNodes[ i ].nodeType === Node.TEXT_NODE ) { textLength += id.childNodes[ i ].nodeValue.length; } else if ( id.childNodes[...
    7 KB (732 words) - 20:32, August 30, 2020
  • Split season, then regular season if entry.startA then if not entry[key..'A'] then spanlength = spanlength + 1 else break end if not entry[key...
    21 KB (2,542 words) - 16:23, May 4, 2023
  • return 'Template:Graph:Chart' end, args = {} } setmetatable(newFrame, { __index = function(t, k) if type(frame[k]) == 'function' then ...
    639 bytes (68 words) - 16:23, May 4, 2023
  • or reverseLook(data.diacritics, s) if ret and dataType then if ret[dataType] then ret = ret[dataType] else error(string.format('Invalid data...
    3 KB (443 words) - 17:13, September 13, 2021
  • getLinksToolbar(args) if result then if args.sup then result = '<sup>' .. result .. '</sup>' end result = '&nbsp;' .. result else result = '' -- If there are...
    10 KB (1,106 words) - 21:21, October 12, 2021
  • text:match('%d([.,])%d%d%d%d+$') if decimal then return decimal end if text:match('%.%d+%.') then return ',' end if text:match('%,%d+,') then return '.' end end ...
    132 KB (20,570 words) - 19:38, August 21, 2020
  • removeBlanks) if type(s) ~= 'string' then return s end s = s:match('^%s*(.-)%s*$') if removeBlanks then if s ~= '' then return s else return...
    8 KB (836 words) - 10:11, August 21, 2020
  • end if average == 1 then -- If averages included, then set the averages cell with value or TBD if v ~= '' then row:ta...
    10 KB (1,378 words) - 16:23, May 4, 2023
  • title.new, frame.args[1]) if success and res then return "valid" else return "" end end return export...
    255 bytes (33 words) - 19:49, August 21, 2020
  • -- if the message parameter is present but blank, change it to nil so that Lua will -- consider it false. if args.message == "" then ...
    1 KB (163 words) - 19:40, August 21, 2020
  • Category:Short film (category Articles with hatnote templates targeting a nonexistent page)
    a package centered on a main and supporting feature, a cartoon and little else. With the rise of the double feature, two-reel shorts went into decline as...
    0 members (0 subcategories, 0 files) - 01:59, April 17, 2023
  • wikilink or a URL. if args.url then data.isUrl = true data.link = args.url if args[1] then data.display = args[1] else data.display = args...
    3 KB (500 words) - 11:39, August 21, 2020
  • num .. ' date'] if date then out = out .. '<br />Released: ' .. date end out = out .. '</span>' end if out ~= '' then if mw.ustring.match(out...
    4 KB (519 words) - 12:30, October 18, 2020
  • mod100 ~= 12 then if d then suffix = "d" else suffix = "nd" end elseif mod10 == 3 and mod100 ~= 13 then if d then suffix = "d" else suffix = "rd"...
    1 KB (232 words) - 17:13, September 13, 2021
  • local function valueFunc(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil end end return val...
    3 KB (373 words) - 23:46, December 10, 2020
  • getText().then( function ( result ) { if ( !replaceAndEdit( result ) ) { editFailed( 'sdh-edit-failed' ); } } ); } else { if ( isRedirect...
    33 KB (3,691 words) - 20:38, August 30, 2020
  • } } else if (params.area) { text += '|area=' + params.area; } else { if (params.noemail) { text += '|email=yes'; } if (params...
    61 KB (7,190 words) - 20:27, August 30, 2020
  • 'line-height:1.1em' -- Image if not isPlain and not isEmbedded then if args.image then sbargs.image = args.image else local images = { speech...
    5 KB (684 words) - 12:20, September 2, 2020
  • /phabricator:T(\d*)/ ); if ( titleMatch !== null ) { ids.push( parseInt( titleMatch[1], 10 ) ); } }); // Do not query if no ids were found if ( !ids.length...
    3 KB (338 words) - 20:59, August 30, 2020
  • getn(ParamsA) if PN > 1 then if ParamsA[2]=='i' then IsInv = true else StartN = tonumber (ParamsA[2]) end if PN == 3 then StartN = tonumber...
    4 KB (535 words) - 21:54, August 29, 2020
  • redirectTitle.exists then args[1] = args[1] .. '[[Category:Missing redirects]]' elseif not redirectTitle.isRedirect then if string.find(redirectTitle:getContent()...
    2 KB (202 words) - 22:15, September 11, 2021
  • maintenance templates', summary: 'General note: Removal of maintenance templates' }, level2: { label: 'Removal of maintenance templates', ...
    62 KB (7,256 words) - 20:27, August 30, 2020
  • subpageText] then local category = args.category or cfg['default_category'] if category then cats[#cats + 1] = category end if not yesno(args...
    4 KB (478 words) - 15:44, October 23, 2022
  • isbn_str:len(); if len ~= 10 and len ~= 13 then return error_string; end if len == 10 then if isbn_str:match( "^%d*X?$" ) == nil then return error_string;...
    6 KB (916 words) - 19:40, August 21, 2020
  • Labels, NLabels, ColWidth, IsTemplate, OutlineColor) if ColWidth then ColWidth = mw.text.trim(ColWidth) if #ColWidth == 0 then ColWidth = nil end...
    4 KB (585 words) - 21:54, August 29, 2020
View ( | ) (20 | 50 | 100 | 250 | 500)