Search results

View (previous 20 | ) (20 | 50 | 100 | 250 | 500)
  • to replace a target string or pattern within another string. Usage: {{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}}...
    18 KB (2,750 words) - 10:10, August 21, 2020
  • ['Module:String'] = 'Templates based on the String Lua module', ['Module:Math'] = 'Templates based on the Math Lua module', ['Module:BaseConvert']...
    4 KB (479 words) - 14:10, October 23, 2022
  • Module:Citation/CS1 (category Templates using TemplateStyles)
    byte ASCII characters use the string library functions f.gsub = string.gsub f.match = string.match f.sub = string.sub else --...
    209 KB (29,658 words) - 16:23, May 4, 2023
  • conds/60)/60) return string.format( "%." .. precision .. "f", decimal ) -- not tonumber since this whole thing is string based. end --[[ Checks input...
    23 KB (3,266 words) - 11:51, August 21, 2020
  • for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules...
    17 KB (2,082 words) - 15:42, September 12, 2022
  • local function move_hiding_templatestyles(args) local gfind = string.gfind local gsub = string.gsub local templatestyles_markers = {} local strip_marker_pattern...
    17 KB (2,482 words) - 16:23, May 4, 2023
  • ' editing it', }, template = { description = 'For [[Wikipedia:High-risk templates|high-risk]]' .. ' templates and Lua modules', text = 'This...
    45 KB (5,039 words) - 14:10, October 23, 2022
  • of calls. For convenience, such combinations could be wrapped into new templates that serve a specific need. See also the section on common use cases below...
    1 KB (985 words) - 14:23, September 2, 2020
  • Module:Documentation (category Templates using TemplateStyles)
    'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module...
    34 KB (3,996 words) - 14:10, October 23, 2022
  • is "/" or the end of the string. '^Wikipedia:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]', -- The userbox "template" space. '^User talk:UBX%f[/\0]'...
    761 bytes (96 words) - 10:11, August 21, 2020
  • end -- The following function parses a format string. -- -- The example below shows how a parsed string is structured in memory. -- Variables other than...
    67 KB (8,869 words) - 15:02, October 24, 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
  • "yes" then discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"]) else discussion_text = string.format("%son the [[%s|talk page]]"...
    7 KB (908 words) - 15:44, October 23, 2022
  • -------------- -- String replacement that ignores part of the string in "..." local function strReplace(String, old, new) if String:find('"') then local...
    16 KB (2,154 words) - 19:49, August 21, 2020
  • specific uses in template subpages and unusable as languages. --]] or string.find(subpage, "^[%l][%-%d%l]*[%d%l]$") ~= nil and string.find(subpage...
    12 KB (1,536 words) - 17:46, September 16, 2020
  • these: valid date string in df format - wayback date is valid (including the text string 'index' when date is '/*/') empty string - wayback date is malformed...
    37 KB (5,179 words) - 08:57, May 2, 2021
  • tostring(number_string) elseif type(number_string) ~= 'string' or not number_string:find('%S') then -- We were passed a non-string or a blank string, so exit...
    14 KB (2,185 words) - 16:23, May 4, 2023
  • ory2') if type(subpage) == 'string' then subpage = mw.ustring.lower(subpage) end if type(category2) == 'string' then subpage = mw.ustring.lower(category2)...
    8 KB (836 words) - 10:11, August 21, 2020
  • if count > 0 then if string.find(birthsplit[count], "^%d") then birth = birthsplit[count] elseif string.find(birthsplit[count], "BCE")...
    29 KB (4,267 words) - 23:19, September 10, 2020
  • then style = string.format( '%s;border:0;background-color:%s', style, color ) else style = string.format( '%s;border-width:%spx...
    21 KB (2,515 words) - 21:54, August 29, 2020
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)