Search Results: Module:Find sources/templates
Sorry, the article you're looking for isn't specifically available. Here are related topics:
Module:Str find word/doc
Sabtu, 2026-03-28 19:20:34Implements template {{Str find word}}. This module looks for a word being present in a comma-separated list of words. It then returns a True or False value...
Click to read more »Module:Find sources/templates/Find biographical sources
Selasa, 2023-06-27 07:57:06-- $1 is the intro link, and $2 represents the other links. blurb = "<i>Find biographical sources:</i> $1$2", -- Links links = { { code =...
Click to read more »Module:Find sources
Minggu, 2022-02-27 20:33:28-- This module implements {{find sources}} and other similar templates, and -- also provides a mechanism to easily create new source-finding templates...
Click to read more »Module:Find sources/templates/Find sources
Minggu, 2022-12-18 01:18:03-- $1 is the intro link, and $2 represents the other links. blurb = "''Find sources:'' $1$2", -- Links links = { { code = 'google', display...
Click to read more »Module:Find sources/templates/Find sources mainspace
Selasa, 2022-03-01 14:33:51return { blurb = "''Find sources:'' $1 – $2", introLink = { code = 'google' }, links = { { code = 'google news', display =...
Click to read more »Module:Find sources/templates/Find sources medical
Rabu, 2025-08-13 07:43:22-- $1 is the intro link, and $2 represents the other links. blurb = "''Find medical sources:'' $1$2", -- Links links = { { code = 'medrs'...
Click to read more »Module:Str find word
Senin, 2023-04-03 07:35:55'explain' asked local function initReport() report = require('Module:Str find word/report') end -- Turn "A" into "A" etc. asap -- and reduce multi-spaces...
Click to read more »Module:Find sources/templates
Kamis, 2023-11-23 04:41:29used by [[Module:Find sources]]. It is used to -- generate the automatic documentation. return { ["Find general sources"] = true, ["Find sources mainspace"]...
Click to read more »Module:Find sources/doc
Kamis, 2024-10-17 00:11:21list of links to search engines to help editors find sources about a given subject. It implements {{find sources}} and other similar templates. It is highly...
Click to read more »Module:Find sources/templates/Find general sources
Jumat, 2024-01-12 23:51:24-- $1 is the intro link, and $2 represents the other links. blurb = "''Find sources:'' $1$2", -- Links links = { { code = 'google', display...
Click to read more »Module:Find sources/sandbox
Rabu, 2024-10-16 05:26:50-- This module implements {{find sources}} and other similar templates, and -- also provides a mechanism to easily create new source-finding templates...
Click to read more »Module:Find sources/templates/Find sources video games
Rabu, 2025-08-13 07:52:05-- $1 is the intro link, and $2 represents the other links. blurb = "''Find video game sources:'' $1 – $2", -- Links introLink = {...
Click to read more »Module:Find sources/autodoc
Senin, 2021-12-06 17:15:44-- Load necessary modules. local mFindSources = require('Module:Find sources') local cfg = mw.loadData('Module:Find sources/autodoc/config') local p...
Click to read more »Module:Find sources/templates/Find sources/sandbox
Jumat, 2021-10-01 23:56:51-- $1 is the intro link, and $2 represents the other links. blurb = "''Find sources:'' $1$2", -- Links links = { { code = 'google', display...
Click to read more »Module:Find sources/templates/Find sources medical/doc
Jumat, 2024-08-30 04:23:14{{#invoke:Find sources/templates/Find sources medical}} {{#invoke:Find sources/templates/Find sources medical|query-terms}} {{#invoke:Find sources|Find sources...
Click to read more »Module:Find sources/templates/Find general sources/doc
Jumat, 2024-08-30 04:22:37{{#invoke:Find sources/templates/Find general sources|function_name}}...
Click to read more »Module:Find sources/templates/Find general sources/autodoc
Kamis, 2023-11-23 04:42:24source-finding template. Until September 2014 it was transcluded on all [[WP:AFD|AfD]] discussion pages.", shortcuts = {'find', 'find source', 'findsources'} }...
Click to read more »Module:Find country
Selasa, 2022-08-09 17:48:32Islands', 'Virgin Islands', 'Wales', 'Yemen', 'Zambia', 'Zimbabwe', 'Find country/testcases' } -- returns the name of a country that is found in the...
Click to read more »Module:Find sources/templates/Find sources mainspace/sandbox
Kamis, 2022-11-24 02:46:18return { blurb = "''Find sources:'' $1 – $2", introLink = { code = 'google' }, links = { { code = 'google', display = 'Google'...
Click to read more »Module:Find country/testcases
Jumat, 2026-02-13 21:15:28-- Unit tests for [[Module:Find country]]. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. -- function p:test_main()...
Click to read more »Module:Find demonym
Selasa, 2025-08-12 06:05:04'Wallis and Futuna', 'Yemeni', 'Zambian', 'Zimbabwean', 'Åland', 'Find demonym/testcases' } -- returns the name of a country demonym that is found...
Click to read more »Module:Find sources/templates/Find sources/doc
Jumat, 2024-08-30 04:22:48This module is generally no longer used. You probably want Module:Find sources/templates/Find general sources instead....
Click to read more »Module:Find sources/templates/Find sources mainspace/autodoc
Selasa, 2014-09-30 07:59:40produces a series of links to various search " .. "interfaces to help find additional reference material for articles. " .. "It is intended for use...
Click to read more »Module:Find sources/templates/Find general sources/sandbox
Kamis, 2024-10-17 00:18:00-- $1 is the intro link, and $2 represents the other links. blurb = "''Find sources:'' $1$2", -- Links links = { { code = 'google', display...
Click to read more »Module:Find sources/config
Kamis, 2023-03-16 10:37:43-- Configuration data for [[Module:Find sources]]. return { -- Define the error message and category to be used if the module is used in -- the main...
Click to read more »Module:Find sources/templates/Find sources video games/doc
Jumat, 2024-08-30 04:23:23{{#invoke:Find sources/templates/Find sources video games|function_name}}...
Click to read more »Module:Find sources/templates/Find sources medical/sandbox
Kamis, 2024-10-17 00:10:11-- $1 is the intro link, and $2 represents the other links. blurb = "''Find medical sources:'' $1$2", -- Links links = { { code = 'medrs'...
Click to read more »Module:Find sources/templates/Find sources/sandbox2
Selasa, 2018-08-21 05:42:07-- $1 is the intro link, and $2 represents the other links. blurb = "''Find sources:'' $1 $2", -- Links introLink = { code = 'google'...
Click to read more »Module:Find country/doc
Sabtu, 2024-09-07 23:30:18For use by Template:Find country. See documentation there. {{#invoke:Find country|function_name}}...
Click to read more »Module:Find sources/templates/Find sources video games/autodoc
Selasa, 2017-04-18 02:47:37various search interfaces. It is used in [[WP:AFD|AfD]] discussions to help find additional reference material for the articles being discussed. It additionally...
Click to read more »Module:Find sources/autodoc/config
Selasa, 2019-06-25 23:49:12.. '[[Template:Find sources documentation]] with data provided by ' .. '[[Module:Find sources/autodoc]]. See ' .. '[[Module:Find sources#Automatic...
Click to read more »Module:Find sources/autodoc/doc
Jumat, 2024-08-30 04:21:26module provides automatic documentation for templates based on Module:Find sources. See Module:Find sources#Automatic documentation for an overview....
Click to read more »Module:Find sources/links
Jumat, 2023-11-24 09:47:34-- This is a list of links used by [[Module:Find sources]]. return { ["archive.org"] = { url = 'https://archive.org/search.php?query=$1%20AND%20mediatype:texts'...
Click to read more »Module:Find sources/autodoc/sandbox
Sabtu, 2021-11-27 17:46:51-- Load necessary modules. local mFindSources = require('Module:Find sources') local cfg = mw.loadData('Module:Find sources/autodoc/config') local p...
Click to read more »Module:Find demonym/doc
Jumat, 2025-08-22 04:55:34Implements {{Find demonym}}...
Click to read more »Module:Find templates in use/doc
Kamis, 2025-10-30 23:04:33Module:Yesno), allow for different search behaviors and return results. {{#invoke:Find templates in use|main | page = <!-- required; "Example" or "Draft:Example"...
Click to read more »Module:String
Selasa, 2025-08-12 06:48:56Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start...
Click to read more »Module:Find sources/links/sandbox
Kamis, 2024-10-17 00:27:46-- This is a list of links used by [[Module:Find sources]]. return { ["archive.org"] = { url = 'https://archive.org/search.php?query=$1%20AND%20mediatype:texts'...
Click to read more »Module:Find templates in use
Senin, 2025-10-27 22:12:30class="error">[[Module:Find templates in use]] '..message..'.</span>' -- TODO ..'[[Category:Pages displaying alarming messages about Module:Find templates in use]]'...
Click to read more »Module:FindYDCportal/doc
Jumat, 2024-08-30 04:20:54A helper module to find the most specific chronology portal which actually exists for a given year or decade. Used to simplify linking to a chronology...
Click to read more »Module:Sandbox/Wnt/FindAndReplace
Rabu, 2018-05-09 07:38:08args end local find=args.find or pargs.find or args[1] or pargs[1] if not(find) then return "error you need to say what to find! (first unnamed parameter...
Click to read more »Module:FindYDCportal
Sabtu, 2026-02-14 05:40:38--[[ For a given 3- or 4-digit year or decade, find the most specific portal which actually exists. Takes one parameter, which must be either...
Click to read more »Module:String/sandbox
Selasa, 2025-08-12 06:46:44Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start...
Click to read more »Module:Road data/strings/USA/AR
Senin, 2022-09-12 09:13:06below = "Interstate %route% in Arkansas"}} for k, v in pairs(AR) do if k:find ("^I") then v.link = AR.I.link end end AR.US.name = "U.S. Highway %route%"...
Click to read more »Module:Math
Jumat, 2026-04-10 21:26:08[[Module:Yesno]]. local pos = string.find(input_string, '/', 1, true); if pos ~= nil then if string.find(input_string, '/', pos + 1, true) == nil...
Click to read more »Module:Road data/strings/USA/WA
Kamis, 2023-07-20 10:39:44do if k:find ("^I") then v.link = WA.I.link end end WA.BL.link = "Interstate %route% Business" .. suffix for k, v in pairs(WA) do if k:find ("^BL")...
Click to read more »Module:InfoboxImage
Sabtu, 2025-10-18 16:45:47getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then ...
Click to read more »Module:Transclude DYK
Rabu, 2018-07-25 23:07:18sectionstart = mw.ustring.find(text, "\n==''Did you know?'' articles==", 1, true) if sectionstart then local sectionend = mw.ustring.find(text, "\n==", sectionstart...
Click to read more »Module:InfoboxImage/sandbox
Kamis, 2026-06-04 23:55:51getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then ...
Click to read more »Module:Selected current events
Rabu, 2025-01-01 09:00:51add added affirm affirmed include included on true yes y ' return string.find(affirmedWords, ' '..string.lower(val)..' ', 1, true ) and true or false end...
Click to read more »Module:ISO 3166
Rabu, 2025-10-29 00:55:28return '' end --[[----------F I N D N A M E----------]]-- -- Finds the name in the database local function findname(code,cdata,qry) local...
Click to read more »Module:Random portal component
Sabtu, 2020-10-03 17:08:46selected/featured articles, biogs etc if ((string.find(header, "/[sS]elected") == -1) and (string.find(header, "/[fF]eatured") == -1)) then return retval...
Click to read more »Module:Coordinates
Senin, 2026-01-26 03:35:45return nil end local s = (first .. second):upper() return s:find('^[NS][EW]$') or s:find('^[EW][NS]$') end --[[ Wrapper function to grab args, see Module:Arguments...
Click to read more »Module:Str find word/sandbox
Jumat, 2023-04-21 15:19:06xpReportType end local function initReport( tArgs ) report = require('Module:Str find word/report') report.xpCheckExplain() -- dummy end local function isPreview(...
Click to read more »Module:Selected recent additions
Senin, 2026-03-16 11:37:42add added affirm affirmed include included on true yes y ' return string.find(affirmedWords, ' '..string.lower(val)..' ', 1, true ) and true or false end...
Click to read more »Module:Road data/strings/USA/NY
Rabu, 2025-04-30 04:02:21I.link = "Interstate %route% (New York)" for k, v in pairs(NY) do if k:find ("^I") then v.link = NY.I.link end end NY.BL.link = "Interstate...
Click to read more »Module:Unsubst
Sabtu, 2021-10-09 01:22:16frame object with a parent " .. "frame available", 2 ) end -- Find the invocation name. local mTemplateInvocation = require('Module:Template...
Click to read more »Module:Find sources/templates/Find sources mainspace/doc
Jumat, 2024-08-30 04:23:02...
Click to read more »Module:Road data/strings/USA/NJ
Minggu, 2022-09-25 10:26:42below = "Interstate %route% in New Jersey"}} for k, v in pairs(NJ) do if k:find ("^I") then v.link = NJ.I.link end end NJ["I-Alt"].banner = "Alt plate...
Click to read more »Module:Coordinates/sandbox
Senin, 2026-01-12 03:40:02return nil end local s = (first .. second):upper() return s:find('^[NS][EW]$') or s:find('^[EW][NS]$') end --[[ Wrapper function to grab args, see Module:Arguments...
Click to read more »Module:Road data/strings/HKG
Senin, 2021-12-20 06:27:01line if you want them to have browse and maint for k, v in pairs(HKG) do if k:find ("^%a") then v.maint = "[[Highways Department]]" end end return HKG...
Click to read more »Module:List
Senin, 2026-03-02 12:52:06parameters. for k, v in pairs(args) do k = tostring(k) if k:find('^item_style%d+$') or k:find('^item_value%d+$') then isDeprecated = true break ...
Click to read more »Module:WikidataIB
Sabtu, 2025-12-27 18:46:46Dependencies: findLang ------------------------------------------------------------------------------- p.findLanguage = function(frame) return findLang(frame...
Click to read more »Module:WikidataCheck/sandbox
Kamis, 2023-11-30 17:34:06references) do local ref = mw.wikibase.renderSnaks(vr.snaks) if not ref:find("Wiki") then sourced = true break end end end if propValue...
Click to read more »Module:Excerpt/portals
Rabu, 2026-05-13 00:55:29lower(key) if string.find(keyLower,"caption") or string.find(keyLower,"size") or string.find(keyLower,"width") or string.find(keyLower,"upright")...
Click to read more »Module:Citation/CS1
Sabtu, 2026-02-28 22:14:46str_find = { -- use string.find() for en.wiki (['en']) and use mw.ustring.find() or local.wiki (['local']) ['en'] = string.find, ['local']...
Click to read more »Module:Check for unknown parameters
Jumat, 2025-10-17 18:01:38if type(k) == 'number' then v = trim(v) knownargs[v] = 1 elseif k:find('^regexp[1-9][0-9]*$') then table.insert(regexps, '^' .. v .. '$') end...
Click to read more »Module:Wikt-lang
Minggu, 2025-06-22 00:01:58errorText = 'no language or script code provided' elseif codes:find("^%a%a%a?$") or codes:find("^%a%a%a?%-%a%a%a%a$") then -- A three- or two-letter lowercase...
Click to read more »Module:WikidataCheck
Kamis, 2023-11-30 18:27:19references) do local ref = mw.wikibase.renderSnaks(vr.snaks) if not ref:find("Wiki") then sourced = true break end end end if propValue...
Click to read more »Module:Check for unknown parameters/sandbox
Senin, 2025-10-06 13:52:57if type(k) == 'number' then v = trim(v) knownargs[v] = 1 elseif k:find('^regexp[1-9][0-9]*$') then table.insert(regexps, '^' .. v .. '$') end...
Click to read more »Module:Road data/strings/USA/TX
Sabtu, 2023-12-16 07:06:16spec = TX[" aux "][auxType] for k, v in pairs(TX) do if k:find (auxType) then if k:find ("^I-") then v.link = "Interstate %route% " .. spec.name...
Click to read more »Module:String2
Rabu, 2025-02-19 19:24:59. "(.*)" local a, b, last = s:find(pattern) if a then return last else return s end end -- stripZeros finds the first number and strips leading...
Click to read more »Module:List/sandbox
Senin, 2026-03-02 12:57:07parameters. for k, v in pairs(args) do k = tostring(k) if k:find('^item_style%d+$') or k:find('^item_value%d+$') then isDeprecated = true break ...
Click to read more »Module:Text
Sabtu, 2025-04-26 19:19:49suffixLen == 0 then return s end local i = s:find(prefix, 1, true) local r = s local j while i do j = r:find(suffix, i + prefixLen) if j then r =...
Click to read more »Module:Lang/sandbox
Rabu, 2026-05-13 06:17:18validate_text_t.no_text, args, template); end if args.text:find ("%f[\']\'\'\'\'%f[^\']") or args.text:find ("\'\'\'\'\'[\']+") then -- because we're looking,...
Click to read more »Module:Lang
Rabu, 2026-05-13 06:20:12validate_text_t.no_text, args, template); end if args.text:find ("%f[\']\'\'\'\'%f[^\']") or args.text:find ("\'\'\'\'\'[\']+") then -- because we're looking,...
Click to read more »Module:FindYDCportal/sandbox
Rabu, 2019-10-02 18:11:37--[[ For a given 3- or 4-digit year or decade, find the most specific portal which actually exists. Takes one parameter, which must be either...
Click to read more »Module:Citation/CS1/sandbox
Minggu, 2026-04-26 21:34:02str_find = { -- use string.find() for en.wiki (['en']) and use mw.ustring.find() or local.wiki (['local']) ['en'] = string.find, ['local']...
Click to read more »Module:Autotaxobox
Selasa, 2026-03-17 12:06:48local dummy -- if link text is missing, try to find a replacement if linkText == '' then if string.find(taxon, 'Incertae sedis', 1, true) then linkText...
Click to read more »Module:Find sources/links/doc
Selasa, 2024-11-19 13:23:57...
Click to read more »Module:Math/sandbox
Jumat, 2026-04-10 00:08:08[[Module:Yesno]]. local pos = string.find(input_string, '/', 1, true); if pos ~= nil then if string.find(input_string, '/', pos + 1, true) == nil...
Click to read more »Module:WikidataIB/sandbox
Senin, 2025-12-22 06:49:07Dependencies: findLang ------------------------------------------------------------------------------- p.findLanguage = function(frame) return findLang(frame...
Click to read more »Module:Road data/strings/MEX
Jumat, 2025-01-17 11:07:54have the provincial highway browse and maint for k, v in pairs(MEX) do if k:find ("^%a") then v.browse = stateBrowse v.lang = "es-mx" end end return MEX...
Click to read more »Module:Gridiron color
Senin, 2026-04-13 00:56:07'table') then for team, year_colors in pairs(colors[6]) do if mw.ustring.find(team, "%d%d%d%dthru%d%d%d%d$") then local start_year, end_year = mw.ustring...
Click to read more »Module:Portal-inline
Senin, 2026-03-16 21:34:14called from a sandbox local isSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) local sandbox = isSandbox and '/sandbox' or '' local...
Click to read more »Module:Article stub box
Senin, 2026-03-23 03:14:13make this a separate string local code for k, _ in pairs(args) do --Find category parameters and store the number (main cat = '') table.insert(stubCats...
Click to read more »Module:ConvertNumeric
Kamis, 2023-02-09 08:04:17exponent = tonumber(exponent) local negative = num:find("^%-") local _, decimal_pos = num:find("%.") -- Mantissa will consist of all decimal digits...
Click to read more »Module:Sandbox/Wnt/FindFeatures/doc
Minggu, 2023-11-19 19:34:52module are created by {{#invoke:FindFeatures|venus|displaydatabase=yes}} and then copied to places like Module:FindFeatures/Venus (in module space) for...
Click to read more »Module:Hatnote
Selasa, 2025-03-18 22:47:33format('%s (%s)', page, disambiguator) end function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename...
Click to read more »Module:Arguments
Rabu, 2020-04-01 13:12:40tidyValRemoveBlanksOnly(key, val) if type(val) == 'string' then if val:find('%S') then return val else return nil end else return val end...
Click to read more »Module:Team bracket
Kamis, 2024-08-15 01:16:30deprecated syntax|3]]' elseif k:find('^' .. rdbstr) then k = mw.ustring.gsub(k, '^' .. rdbstr, '3rd') elseif k:find('^' .. rdstr .. '%-[a-z]+3')...
Click to read more »Module:Unsubst/sandbox
Rabu, 2026-06-03 03:52:34frame object with a parent " .. "frame available", 2 ) end -- Find the invocation name. local mTemplateInvocation = require('Module:Template...
Click to read more »Module:TemplatePar
Kamis, 2023-04-20 01:13:15== "function" then local lazy = accept:find( "W", 1, true ) if accept:find( "s", 1, true ) then local group =...
Click to read more »Module:Routemap
Kamis, 2026-03-26 07:59:00string.find(t1, '^%s*$') then if not t2 then t2 = '' end if string.find(t2, '<br ?/?>') == nil then t1 = ' ' end end if not t2 or string.find(t2...
Click to read more »Module:Arguments/sandbox
Rabu, 2021-04-21 16:30:15tidyValRemoveBlanksOnly(key, val) if type(val) == 'string' then if val:find('%S') then return val else return nil end else return val end...
Click to read more »Module:Flagg
Selasa, 2025-11-04 05:18:43if string.find(x,"^%s*$") then return "" else return x end end local function nopx(x) if x~=nil and (string.find(x,"^%d+$") or string.find(x,"^%d+px$"))...
Click to read more »Module:IPAddress
Selasa, 2023-02-14 10:16:49s:find("[^:%x]") -- only colon and hex digits are legal chars or s:find("^:[^:]") -- can begin or end with :: but not with single : or s:find("[^:]:$")...
Click to read more »Module:Political party
Sabtu, 2026-02-21 23:27:56else return party end end if out_type == 'color' then if string.find(return_value, '#') then return_value = string.gsub(return_value, '#',...
Click to read more »Module:Box-header
Senin, 2025-06-02 12:08:25titleBackground, contentForeground, contentBackground end local function findHue(colour) local colourAsNumber = tonumber(colour) if colourAsNumber and...
Click to read more »Module:Excerpt slideshow
Minggu, 2024-08-18 18:19:31excluded false none not no n off omit omitted remove removed " return string.find(declinedWords , ' '..val..' ', 1, true ) and true or false end --[[ @param...
Click to read more »Module:Protection banner
Rabu, 2026-02-18 15:46:08if args[1] then obj.reason = mw.ustring.lower(args[1]) if obj.reason:find('|') then error('reasons cannot contain the pipe character ("|")', 3)...
Click to read more »Module:Sidebar
Selasa, 2025-12-30 01:10:22"%1") if mw.ustring.find(s, '^[#*:;]') or mw.ustring.find(s, '^{|') then return '\n' .. s else return s end end --[[ Finds whether a sidebar has...
Click to read more »Module:Team bracket/sandbox
Rabu, 2024-08-14 14:16:16deprecated syntax|3]]' elseif k:find('^' .. rdbstr) then k = mw.ustring.gsub(k, '^' .. rdbstr, '3rd') elseif k:find('^' .. rdstr .. '%-[a-z]+3')...
Click to read more »Module:ParameterCount
Sabtu, 2017-02-11 21:32:57-- Test whether a string is blank local function isBlank(s) return not s:find('%S') end -- Tests whether a string is a valid positional key, and if so...
Click to read more »Module:Location map
Selasa, 2026-05-26 13:47:54else return mapData[name] end end else error('Unable to find the specified location map definition: "Module:Location map/data/' .. map...
Click to read more »Module:String/doc
Minggu, 2026-05-24 13:57:35Examples: {{#invoke:String|find|abc123def|12}} → 4 {{#invoke:String|find|source=abc123def|target=12}} → 4 {{#invoke:String|find|source=abc123def|target=pqr}}...
Click to read more »Module:Portal
Minggu, 2025-05-25 01:07:03called from a sandbox local isSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) local sandbox = isSandbox and '/sandbox' or '' local...
Click to read more »Module:Wikidata
Sabtu, 2023-03-04 11:35:36data["language"]), "%%text", data["text"]) return result end end local function findClaims(entity, property) if not property or not entity or not entity.claims...
Click to read more »Module:Sandbox/Wnt/FindFeatures
Rabu, 2020-02-12 03:54:39-- This module finds features with coordinates in a certain area on a globe. -- It uses other modules containing database files, which can be generated...
Click to read more »Module:Excerpt
Jumat, 2026-03-06 19:56:17start = e + 1 s, e = mw.ustring.find( excerpt, '%s*%b{}%s*', start ) until not s or s > start s, e = mw.ustring.find( excerpt, '%b()', start ) -- get...
Click to read more »Module:Convert
Kamis, 2026-01-15 09:19:56mark. -- Otherwise return nothing (decimal mark not known). if not text:find('[.,]') then return ',' end text = text:gsub('^%-', ''):gsub('%+%d+/%d+$'...
Click to read more »Module:Delink
Sabtu, 2024-02-17 11:47:33this we need to find the -- title area of the link, i.e. the part before any pipes. local target_area if result:match("|") then -- Find if we're dealing...
Click to read more »Module:Episode list
Sabtu, 2025-10-11 08:47:09search) local valFind = string.find(val, search, 1, true) if (valFind == nil) then return val else return string.sub(val, 0, valFind-1) end end --...
Click to read more »Module:Navbox
Rabu, 2026-02-25 00:16:57'string' and mw.ustring.find(arg, cfg.pattern.class) then for _, pattern in ipairs(patterns) do if mw.ustring.find(args[arg] or '', pattern)...
Click to read more »Module:Find sources/config/doc
Jumat, 2024-08-30 04:22:04...
Click to read more »Module:Infobox
Sabtu, 2025-12-13 06:40:10pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end ...
Click to read more »Module:Is infobox in lead
Senin, 2019-10-07 11:35:39local offset = string.find(content, "==", 1 , true) if offset then local lead = string.sub(content, 1, offset-1) if (string.find(lead, searchString))...
Click to read more »Module:Infobox/sandbox
Kamis, 2026-06-04 03:40:46pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end ...
Click to read more »Module:WLink
Jumat, 2020-10-30 22:03:05local r3 = attempt:find( "]", 2, true ); if r3 then local s = attempt:sub( 2, r3 - 1 ); local i = s:find( "[", 1, true ); ...
Click to read more »Module:Redirect
Jumat, 2021-09-10 14:46:37luaMain(rname, bracket, fulltext) if type(rname) ~= "string" or not rname:find("%S") then return nil end bracket = bracket and "[[%s]]" or "%s" rname...
Click to read more »Module:Message box
Senin, 2025-10-20 01:19:52imageNeedsLink -- Find if the box has been wrongly substituted. self.isSubstituted = cfg.substCheck and args.subst == 'SUBST' -- Find whether we are using...
Click to read more »Module:RfD close
Sabtu, 2019-03-02 11:17:02red rounded square.svg' find_count = find_count + 1 end if (parameter_lower:find('retarget') or parameter_lower:find('soft redirect'))then ...
Click to read more »Module:Sports table
Senin, 2025-12-08 23:02:04(currentTitle.namespace == 2) or (currentTitle.fullText):find('/sandbox$') or (currentTitle.fullText):find('/testcases$') local getTracking = require('Module:Sports...
Click to read more »Module:Autotaxobox/sandbox
Kamis, 2025-07-17 19:35:19local dummy -- if link text is missing, try to find a replacement if linkText == '' then if string.find(taxon, 'Incertae sedis', 1, true) then linkText...
Click to read more »Module:Detect singular
Kamis, 2025-10-16 13:01:56determine whether "sub" occurs in "s" local function plainFind(s, sub) return mw.ustring.find(s, sub, 1, true) end -- function to count the number of...
Click to read more »Module:Settlement short description
Sabtu, 2022-02-12 23:43:02if not(subdivision_names[3] and (string.find(settlement_type, '[nN]eighbo[u]?rhood') or string.find(settlement_type, '[sS]uburb'))) then subdivision_names[3]...
Click to read more »Module:EFloras
Sabtu, 2022-10-22 04:57:39string.find(name, "^%u%l+ae$") then if string.find(name, "eae$") then if string.find(name, "aceae$") then rank = "family" elseif string.find(name...
Click to read more »Module:Sortkey
Rabu, 2021-10-06 01:54:13{{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}} if string.find(sortkey, "sortkey") or string.find(sortkey, "data-sort-value") then return ""; end ...
Click to read more »Module:Routemap/sandbox
Kamis, 2026-03-26 07:43:54string.find(t1, '^%s*$') then if not t2 then t2 = '' end if string.find(t2, '<br ?/?>') == nil then t1 = ' ' end end if not t2 or string.find(t2...
Click to read more »Module:Road data/strings/CAN/ON
Kamis, 2025-06-05 19:26:18abbr.default, orientation = "upright" } for k, v in pairs(ON) do if k:find ("TCH") then v.shield = "Trans-Canada Highway shield.svg" v.orientation...
Click to read more »Module:Location map/sandbox
Selasa, 2026-06-02 04:25:47else return mapData[name] end end else error('Unable to find the specified location map definition: "Module:Location map/data/' .. map...
Click to read more »Module:Flag list
Selasa, 2025-11-04 05:08:56{} function p.luawidth(size) --For use within Lua local w if string.find(size,"^%d+x%d+px$") then -- width and height (eg. 20x10px) -- use specified...
Click to read more »Module:Unsubst-infobox
Senin, 2024-07-29 08:54:24-- Combine passed args with passed defaults local args = {} if string.find( ','..(frame.args['$flags'] or '')..',', ',%s*override%s*,' ) then for...
Click to read more »Module:Rail-interchange multi
Senin, 2019-09-23 08:23:261 then args[i2] = (string.find((v2 or ''), '^%s*$') and default or v2) else args[i2] = (string.find((v2 or ''), '^%s*$') and nil or v2)...
Click to read more »Module:AfC submission catcheck
Sabtu, 2024-12-07 13:51:02getCurrentTitle():getContent()) if mw.ustring.find(text, '{{AfC submission||', 1, true) or mw.ustring.find(text, '{{AFC submission||', 1, true) then return...
Click to read more »Module:Sandbox/Wnt/FindFeatures/testcases
Rabu, 2020-02-12 03:53:11function p:test_mars() self:preprocess_equals('{{#invoke:Sandbox/Wnt/FindFeatures|mars|10S|10N|10W|10E}}', '[[Ada (crater)|Ada]] ({{Coord|3|S|3.2|W|globe:Mars}})...
Click to read more »Module:Political party/sandbox
Sabtu, 2026-02-21 21:25:57else return party end end if out_type == 'color' then if string.find(return_value, '#') then return_value = string.gsub(return_value, '#',...
Click to read more »Module:Category series navigation
Selasa, 2025-12-09 01:35:27--find the variable parts of pagename local findvar = find_var(pagename) if findvar.vtype == 'error' then --basic format error checking in find_var()...
Click to read more »Module:Month translator
Sabtu, 2022-10-22 11:19:11break; -- and done; if here found pattern match but did not find non-English month name in <month_names_t> end end return args_t[1];...
Click to read more »Module:CountryData
Kamis, 2021-05-06 03:40:05pcall(getcontents,frame,country,params or {}) if bool and (string.find(s,"^%{%{ *%{%{%{1") or string.find(s,"^%{%{safesubst: *%{%{%{1")) then --Replace parameter...
Click to read more »Module:Commons link
Kamis, 2024-10-24 17:43:16require('strict') -- Module to find commons galleries and categories based on wikidata entries local getArgs = require('Module:Arguments').getArgs local...
Click to read more »Module:Interlinear
Jumat, 2024-09-06 16:54:50if mw.ustring.find(glossing, 'link') then GlossingType = "wikilink" elseif mw.ustring.find(glossing, 'label') or mw.ustring.find(glossing, 'no...
Click to read more »Module:Road data/strings/doc
Rabu, 2025-12-10 01:20:58parser will attempt to include it. The above entries are primarily used to find the string module itself, so they should not be a concern for module writers...
Click to read more »Module:Find sources/links/J-STAGE
Rabu, 2022-03-23 07:22:04return { url = 'https://www.jstage.jst.go.jp/result/global/-char/ja?globalSearchKey=$1', display = 'J-STAGE' }...
Click to read more »Module:Adjacent stations
Jumat, 2025-10-03 10:27:24end local default = data.lines._default or {} if icon and string.find(icon, "%%1") and default and default.icon then icon = mw.ustring.gsub(default...
Click to read more »Module:Delink/sandbox
Minggu, 2023-04-23 01:29:13this we need to find the -- title area of the link, i.e. the part before any pipes. local target_area if result:match("|") then -- Find if we're dealing...
Click to read more »Module:Sidebar/sandbox
Selasa, 2025-12-30 01:00:41"%1") if mw.ustring.find(s, '^[#*:;]') or mw.ustring.find(s, '^{|') then return '\n' .. s else return s end end --[[ Finds whether a sidebar has...
Click to read more »Module:Random slideshow
Jumat, 2025-03-28 20:28:55excluded false none not no n off omit omitted remove removed " return string.find(declinedWords , ' '..val..' ', 1, true ) and true or false end function...
Click to read more »Module:ConvertNumeric/sandbox
Jumat, 2026-02-13 20:42:25exponent = tonumber(exponent) local negative = num:find("^%-") local _, decimal_pos = num:find("%.") -- Mantissa will consist of all decimal digits...
Click to read more »Module:AfC submission catcheck/sandbox
Senin, 2024-09-16 02:26:10getCurrentTitle():getContent()) if mw.ustring.find(text, '{{AfC submission||', 1, true) or mw.ustring.find(text, '{{AFC submission||', 1, true) then return...
Click to read more »Module:Protection banner/sandbox
Kamis, 2026-04-16 03:24:56if args[1] then obj.reason = mw.ustring.lower(args[1]) if obj.reason:find('|') then error('reasons cannot contain the pipe character ("|")', 3)...
Click to read more »Module:String2/sandbox
Rabu, 2025-02-19 19:23:52. "(.*)" local a, b, last = s:find(pattern) if a then return last else return s end end -- stripZeros finds the first number and strips leading...
Click to read more »Module:Wikidata/sandbox
Sabtu, 2023-03-04 11:34:03data["language"]), "%%text", data["text"]) return result end end local function findClaims(entity, property) if not property or not entity or not mw.wikibase...
Click to read more »Module:A or an
Selasa, 2020-05-19 02:06:15ĬĮıIJŌŎŐŒÑĤĦĹĻĽĿŁŃŅŇŊŔŖŘŚŜŞ' local function findWord(s, t) for i, v in ipairs(t) do if mw.ustring.find(s, '^' .. v .. '$') then return true end...
Click to read more »Module:External links
Selasa, 2024-05-28 13:09:32end end end --mw.log("findSiteLinksOnWikidata returning="..dump(output)) return output end local function findMainLinksLocal(props, pagetitle...
Click to read more »Module:Ancient Greek
Selasa, 2021-10-12 01:38:22gsub(translit, '([aA])', '%1' .. macron) end if token:find(rough) then if mw.ustring.find(token, '[Ρρ]') then translit = translit .. 'h' else...
Click to read more »Module:Roman
Kamis, 2023-02-09 03:14:10then return args[2] or 'N/A' end local ret = '' -- Find the Roman numerals for the large part of numbers. -- 23 April 2016 -...
Click to read more »Module:SortName
Selasa, 2013-04-16 04:58:27if string.find( pagetitle, ' ' .. parts[i] .. ' ' ) ~= nil then text1 = string.sub( pagetitle, string.find( pagetitle, ' ' ...
Click to read more »Module:Labelled list hatnote
Kamis, 2025-05-29 01:18:35"Target" → "Target" local function getTarget(pagename) local pipe = string.find(pagename, '|') return string.sub(pagename, 0, pipe and pipe - 1 or nil)...
Click to read more »Module:Infobox television episode
Rabu, 2026-06-03 14:33:30find(page_text, "{{[Ii]talic dab") local has_italic_title, _ = string.find(page_text, "{{[Ii]talic title") local has_display_title, _ = string.find(page_text...
Click to read more »Module:Highest archive number
Selasa, 2019-10-08 22:47:04-- This module finds the highest existing archive number for a set of talk -- archive pages. local expSearch = require('Module:Exponential search') local...
Click to read more »Module:Redirect hatnote
Selasa, 2022-09-06 01:21:32directly from the docs, or if we aren't in main- or category-space. if not v:find('^REDIRECT%d*$') and v ~= 'TERM' -- and currentTitle.namespace == 0 or...
Click to read more »Module:Commons link/sandbox
Kamis, 2024-10-24 17:40:20require('strict') -- Module to find commons galleries and categories based on wikidata entries local getArgs = require('Module:Arguments').getArgs local...
Click to read more »Module:ISO 639 name
Kamis, 2024-07-11 22:43:33-- make a link to the language article? if name:find ('languages') or name:find ('[Ll]anguage$') then name = make_wikilink (name, label);...
Click to read more »Module:Parameter names example
Kamis, 2025-04-24 01:00:35local function plain(s) return s end function p._main(args, frame) -- Find how we want to format the arguments to the template. local formatFunc if...
Click to read more »Module:Excerpt/portals/sandbox
Jumat, 2026-02-06 20:41:50lower(key) if string.find(keyLower,"caption") or string.find(keyLower,"size") or string.find(keyLower,"width") or string.find(keyLower,"upright")...
Click to read more »Module:Submit an edit request
Senin, 2024-12-16 22:29:26content = mw.title.new(talkPageName):getContent() if content and content:find("== *" .. escape(sectionname) .. " *==") then local dedup = 2 while true...
Click to read more »Module:Flagg/sandbox
Sabtu, 2025-07-12 17:24:08if string.find(x,"^%s*$") then return "" else return x end end local function nopx(x) if x~=nil and (string.find(x,"^%d+$") or string.find(x,"^%d+px$"))...
Click to read more »Module:Respell
Kamis, 2019-08-15 00:08:51(ret[#ret]:find('_') or ret[#ret]:find('%-%)?$')) and not (v:find('_') or v:find('^%(?%-')) then table.insert(ret, '-') end if v:find('^[%u%(%)]+$')...
Click to read more »Module:CFB schedule
Sabtu, 2026-05-23 06:34:49= 'Coaches\'' end -- if p is linked then just return p if (p or ''):find('[%[%]]') then return p end -- else if y is a number if isnotempty(y)...
Click to read more »Module:Wd
Rabu, 2025-07-23 02:53:47a1 end local function split(str, del) local out = {} local i, j = str:find(del) if i and j then out[1] = str:sub(1, i - 1) out[2] = str:sub(j...
Click to read more »Module:Pinyin
Kamis, 2026-01-08 06:53:49chara then return end if chara:find('^.*A') then return chara:gsub("A", attachTone("A", n)) end if chara:find('^.*a') then return chara:gsub("a"...
Click to read more »Module:Detect singular/sandbox
Kamis, 2025-10-16 12:59:12determine whether "sub" occurs in "s" local function plainFind(s, sub) return mw.ustring.find(s, sub, 1, true) end -- function to count the number of...
Click to read more »Module:ISO 3166/sandbox
Selasa, 2025-08-26 00:55:47return '' end --[[----------F I N D N A M E----------]]-- -- Finds the name in the database local function findname(code,cdata,qry) local...
Click to read more »Module:Table row counter
Kamis, 2019-11-14 05:11:54content = titleObj:getContent() if not content then return nil end -- Find the wikitables on that page. local wikitables = {} do local iWikitable...
Click to read more »Module:Random
Rabu, 2015-11-11 23:32:54t2 = args[2] -- Find the start timestamp and the end timestamp. local startTimestamp, endTimestamp if not t1 then -- Find the first and last second...
Click to read more »Module:Unicode data
Selasa, 2025-09-16 09:46:49Zinh, and Zzzz. -- See the codepage in the [[UTF-8]] article. if not str:find "[\205-\244]" then for codepoint in mw.ustring.gcodepoint(str) do if...
Click to read more »Module:IPAddress/sandbox
Senin, 2025-12-08 09:27:07s:find("[^:%x]") -- only colon and hex digits are legal chars or s:find("^:[^:]") -- can begin or end with :: but not with single : or s:find("[^:]:$")...
Click to read more »Module:Category handler
Rabu, 2020-04-01 13:12:40handler/blacklist') ) end end function CategoryHandler:isSuppressed() -- Find if categories are suppressed by either the arguments or by -- matching the...
Click to read more »Module:Unsigned
Rabu, 2026-01-21 06:35:14local function findFromInput(target) return mw.ustring.match( s or '', target, 0) end -- find the date local theDate = findFromInput('%d%d?...
Click to read more »Module:Infobox television
Selasa, 2026-04-28 18:25:24pairs(args) do if string.find(string.lower(v), "original") and not string.find(string.lower(v), "aboriginal") or string.find(string.lower(v), "revival")...
Click to read more »Module:Geological time
Rabu, 2025-12-10 18:48:23-- Function to find timespan before argument function p._before(s) local findOut = s and find(tostring(s)) return findOut and findOut.prev end --...
Click to read more »Module:Redirect template
Selasa, 2025-08-12 06:33:36local beCompatibleWithBug14974 = args.info and (args.info:find('^[:;#*]', 1) == 1 or args.info:find('{|', 1, true) == 1) and '\n' or ' ' local content...
Click to read more »Module:Taxonbar
Minggu, 2025-12-14 22:45:10local link, returnVal = '', {} returnVal.isError = false if mw.ustring.find( val, '//' ) then link = val else if type(property) == 'number' and...
Click to read more »Module:Template parameter value
Kamis, 2025-10-23 22:11:46new, title) if success then return titleObj else return nil end end -- Finds all templates in the given string, including nested templates -- Templates...
Click to read more »Module:Road data/strings/USA
Minggu, 2026-04-12 07:47:50width = "expand", bannersuffix = "1971" } for k, v in pairs(USA) do if k:find ("US 19%d%d") then v.color = { arg = "route", ["66"] = "hist" } end...
Click to read more »Module:Convert/sandbox
Senin, 2026-03-02 10:48:21mark. -- Otherwise return nothing (decimal mark not known). if not text:find('[.,]') then return ',' end text = text:gsub('^%-', ''):gsub('%+%d+/%d+$'...
Click to read more »Module:Gridiron color/sandbox
Jumat, 2026-04-24 00:23:23'table') then for team, year_colors in pairs(colors[6]) do if mw.ustring.find(team, "%d%d%d%dthru%d%d%d%d$") then local start_year, end_year = mw.ustring...
Click to read more »Module:Navbox/sandbox
Kamis, 2026-05-21 17:13:41'string' and mw.ustring.find(arg, cfg.pattern.class) then for _, pattern in ipairs(patterns) do if mw.ustring.find(args[arg] or '', pattern)...
Click to read more »Module:Trim quotes/sandbox
Selasa, 2019-05-21 01:27:13local p = {} function p._trim(s) if s then if mw.ustring.find(s,'^".*"$') or mw.ustring.find(s,"^'.*'$") then return p._trim(string.sub(s,2,-2)) else...
Click to read more »Module:Road data/strings/USA/GA
Senin, 2022-09-12 23:09:10if k:find ("^I") then v.link = GA.I.link end end GA.BL.link = "Interstate %route% Business " .. suffix for k, v in pairs(GA) do if k:find ("^B%a")...
Click to read more »Module:Format TemplateData
Minggu, 2026-02-08 09:48:03source:find("params", 2) if Data.jump then Data.jump = Data.jump + 7 else Data.jump = 1 end end i, k = Data.source:find(seek...
Click to read more »Module:Formatnum
Sabtu, 2021-02-20 22:49:21an internal bug, e.g. in Hindi) local exponent local pos = string.find(number, '[Ee]') if pos ~= nil then exponent = string.sub(number...
Click to read more »Module:Subject bar
Senin, 2026-04-13 07:28:52called from a sandbox local isSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) local sandbox = isSandbox and '/sandbox' or '' local...
Click to read more »Module:Citation/CS1/Utilities
Minggu, 2026-01-18 02:25:10elseif argument:find ("'''", 1, true) then -- bold (3) argument, flag=argument:gsub ("%'%'%'", ""); elseif argument:find ("''", 1, true) then...
Click to read more »Module:Person length
Rabu, 2019-10-09 00:59:50'&[Nn][Bb][Ss][Pp];', ' ') local m = mw.ustring.find(s, 'm') local c = mw.ustring.find(s, 'cm') local i = mw.ustring.find(s, 'in') if m == nil and i == nil...
Click to read more »Module:UnitTests
Senin, 2026-04-27 06:17:38return max + 1 end local function add_diff_highlighting(str) if mw.ustring.find(str, "%s") then return '<span style="background-color: var(--wikt-palette-red-4...
Click to read more »Module:Labelled list hatnote/sandbox
Kamis, 2025-05-29 01:10:23"Target" → "Target" local function getTarget(pagename) local pipe = string.find(pagename, '|') return string.sub(pagename, 0, pipe and pipe - 1 or nil)...
Click to read more »Module:Settlement short description/sandbox
Jumat, 2023-09-29 17:44:20if not(subdivision_names[3] and (string.find(settlement_type, '[nN]eighbo[u]?rhood') or string.find(settlement_type, '[sS]uburb'))) then subdivision_names[3]...
Click to read more »Module:AutosortTable
Minggu, 2021-02-21 07:27:13tonumber( (ai:find('.', 1, true) and ai:match('[+-]?%d*%.%d+') or ai:match('[+-]?%d+')) or 0 ) bi = tonumber( (bi:find('.', 1, true) and...
Click to read more »Module:Message box/sandbox
Rabu, 2026-01-14 07:04:32imageNeedsLink -- Find if the box has been wrongly substituted. self.isSubstituted = cfg.substCheck and args.subst == 'SUBST' -- Find whether we are using...
Click to read more »Module:Format link
Selasa, 2022-10-04 20:37:11entered after a pipe (may be nil) link = removeInitialColon(link) -- Find whether a faux display value has been added with the {{!}} magic -- word...
Click to read more »Module:Infobox/dates
Kamis, 2021-07-08 03:09:16start_date:find("dtstart") then return error_category end end local end_date = args.last_aired if end_date then if not end_date:find("dtend")...
Click to read more »Module:CountryData/sandbox
Sabtu, 2023-07-22 13:11:06pcall(getcontents,frame,country,params or {}) if bool and (string.find(s,"^%{%{ *%{%{%{1") or string.find(s,"^%{%{safesubst: *%{%{%{1")) then --Replace parameter...
Click to read more »Module:Football manager history
Jumat, 2024-11-22 11:17:34error. -- Can append "#FormattingError" to URL of a page with a problem to find it. -- If given, caller is the title of the navbox which has the error....
Click to read more »Module:Respell/sandbox
Kamis, 2019-08-15 00:08:24(ret[#ret]:find('_') or ret[#ret]:find('%-%)?$')) and not (v:find('_') or v:find('^%(?%-')) then table.insert(ret, '-') end if v:find('^[%u%(%)]+$')...
Click to read more »Module:Road data/strings/USA/NV
Selasa, 2022-09-13 04:22:36do if k:find ("^I") then v.link = NV.I.link end end NV.BL.link = NV.I.base .. " Business" .. suffix for k, v in pairs(NV) do if k:find ("^B%a")...
Click to read more »Module:Redirect/sandbox
Senin, 2023-04-17 04:25:54luaMain(rname, bracket, fulltext) if type(rname) ~= "string" or not rname:find("%S") then return nil end bracket = bracket and "[[%s]]" or "%s" rname...
Click to read more »Module:Infobox television season name
Sabtu, 2026-05-16 20:45:57local _, _, showNameModified, seasonNumber = string.find(showName, "(.*)%s+(%d+)$") return showNameModified, seasonNumber end ---...
Click to read more »Module:Infobox television episode/sandbox
Rabu, 2026-06-03 19:49:08find(page_text, "{{[Ii]talic dab") local has_italic_title, _ = string.find(page_text, "{{[Ii]talic title") local has_display_title, _ = string.find(page_text...
Click to read more »Module:Infobox3cols
Senin, 2026-05-25 12:20:24pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end ...
Click to read more »Module:Unsigned/sandbox
Rabu, 2026-01-21 06:31:44local function findFromInput(target) return mw.ustring.match( s or '', target, 0) end -- find the date local theDate = findFromInput('%d%d?...
Click to read more »Module:Road data/strings/USA/KY
Jumat, 2025-02-07 04:08:32I.link = "Interstate %route% (Kentucky)" for k, v in pairs(KY) do if k:find ("^I") then v.link = KY.I.link end end KY.BL.link = "Interstate %route%...
Click to read more »Module:Citation/CS1/Identifiers
Senin, 2026-01-19 22:36:14local handler = options.handler; if id:find ('[Jj][Ss][Tt][Oo][Rr]') or id:find ('^https?://') or id:find ('%s') then set_message ('err_bad_jstor');...
Click to read more »Module:CIA World Factbook
Jumat, 2026-02-13 18:20:58day = mw.ustring.find(date,"(20%d%d)-(%d+)-(%d+)") if year then return year, month, day end _, _, day, month, year = mw.ustring.find(date,"(%d+)%s+(%a+)%s+(20%d%d)")...
Click to read more »Module:Road data/strings/USA/LA
Selasa, 2022-01-11 06:29:25"Interstate %route% ([dab||%dab%, |]Louisiana)" for k, v in pairs(LA) do if k:find ("^I") then v.link = LA.I.link end end LA.BL.link = "Interstate %route%...
Click to read more »Module:A or an/sandbox
Sabtu, 2022-05-21 19:23:46a = "a", an = "an", } local function findWord(text, array) for _, v in ipairs(array) do if mw.ustring.find(text, '^' .. v .. '$') then return true...
Click to read more »Module:Person weight
Minggu, 2025-10-05 08:25:17'&[Nn][Bb][Ss][Pp];', ' ') local kg = mw.ustring.find(s, 'kg') local st = mw.ustring.find(s, 'st') local lb = mw.ustring.find(s, 'lb') if kg == nil and st == nil...
Click to read more »Module:Geological time/sandbox
Rabu, 2025-12-10 18:33:04-- Function to find timespan before argument function p._before(s) local findOut = s and find(tostring(s)) return findOut and findOut.prev end --...
Click to read more »Module:Automated taxobox
Selasa, 2026-06-02 13:33:55end if mw.ustring.find(frame:expandTemplate{ title = 'Period start', args = { oldestFossil } }, '[Ee]rror') or mw.ustring.find(frame:expandTemplate{...
Click to read more »Module:Clickable button
Sabtu, 2024-07-27 05:19:50makeLinkData(args) local data = {} -- Get the link and display values, -- and find whether we are outputting -- a wikilink or a URL. if args.url then data...
Click to read more »Module:Road data/strings/USA/RI
Sabtu, 2021-09-25 01:23:47do if k:find ("^I") then v.link = RI.I.link end end RI.BL.link = RI.I.base .. " Business" .. suffix for k, v in pairs(RI) do if k:find ("^B%a")...
Click to read more »Module:Road data/strings/USA/IA
Rabu, 2023-03-15 04:58:00below = "Interstate %route% in Iowa" } } for k, v in pairs(IA) do if k:find ("^I") then v.link = IA.I.link end end IA.BL.name = IA.I.name .. " Business...
Click to read more »Module:Wikt-lang/sandbox
Sabtu, 2025-06-21 23:44:00errorText = 'no language or script code provided' elseif codes:find("^%a%a%a?$") or codes:find("^%a%a%a?%-%a%a%a%a$") then -- A three- or two-letter lowercase...
Click to read more »Module:MultiReplace
Rabu, 2022-11-16 03:58:00for _, change in ipairs(changeList) do local start, stop = mw.ustring.find(input, change.pattern, pos, plain) if start and (start < bestStart) then...
Click to read more »Module:Roman/sandbox
Rabu, 2025-01-01 20:22:41then return args[2] or 'N/A' end local ret = '' -- Find the Roman numerals for the large part of numbers. -- 23 April 2016 -...
Click to read more »Module:Template invocation
Jumat, 2024-09-06 03:21:20----------------------------- -- Name: p.name -- Purpose: Find a template invocation name from a page name or a -- mw.title...
Click to read more »Module:Clade
Kamis, 2024-03-28 23:33:49local divCSS = ' class="clade"' -- ' style="overflow:auto;"' if string.find(cladeString, divCSS) then cladeString = string.gsub(cladeString, divCSS...
Click to read more »Module:Is infobox in lead/sandbox
Senin, 2019-10-07 11:02:05local offset = string.find(content, "==", 1 , true) if offset then local lead = string.sub(content, 1, offset-1) if (string.find(lead, searchString))...
Click to read more »Module:Multilingual
Selasa, 2022-08-09 07:07:40multilingual texts and ISO 639 (BCP47) issues etc. * fair() * fallback() * findCode() * fix() * format() * getBase() * getLang() * getName() * i18n() * int()...
Click to read more »Module:Road data/strings/USA/MI
Jumat, 2023-01-13 11:18:35} for k, v in pairs(MI) do if k:find ("^I") then v.link = MI.I.link end end for k, v in pairs(MI) do if k:find ("^I %d") then v.shield = v.shieldmain...
Click to read more »Module:Disambiguation
Selasa, 2025-02-04 15:22:29then return true end end -- check for magic word if string.find(content, "__DISAMBIG__", 1, true) ~= nil then return true end return...
Click to read more »Module:Check DYK hook
Minggu, 2020-11-29 19:31:57is valid. -- We use the patterns in the validationPatternGroups table to find whether -- a hook is valid or not. Hooks are treated as valid if they match...
Click to read more »Module:Redirect/doc
Jumat, 2026-02-06 12:11:39This module contains functions to find the target of a redirect page. The main function accepts the name of a single page. It determines if the page is...
Click to read more »Module:Hatnote/sandbox
Kamis, 2022-08-11 23:24:18present. return s:match('^:?(.*)') end function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename...
Click to read more »Module:Random portal component/sandbox
Kamis, 2020-10-01 22:17:46selected/featured articles, biogs etc if ((string.find(header, "/[sS]elected") == -1) and (string.find(header, "/[fF]eatured") == -1)) then return retval...
Click to read more »Module:Sports table/argcheck
Jumat, 2025-12-05 00:26:08and (k:find('^name_') or k:find('^short_')) then found_arg = 1 table.insert(orphaned_names, k) end if found_arg == 0 and (k:find('^note_')...
Click to read more »Module:Val
Minggu, 2025-06-01 12:39:35warning. -- Can append "#FormattingError" to URL of a page with a problem to find it. local anchor = '<span id="FormattingError"></span>' local body, category...
Click to read more »Module:Road data/strings/USA/NH
Jumat, 2024-08-23 06:25:13pairs(NH) do if k:find ("^I") then v.link = NH.I.link end end NH.BL.link = NH.I.base .. " Business" .. suffix for k, v in pairs(NH) do if k:find ("^B%a") then...
Click to read more »Module:Track listing
Senin, 2025-05-12 11:35:39minutes, seconds = length:match('^(%d?%d):(%d%d)$') if minutes and minutes:find('^0%d$') then -- Special case to disallow lengths like "01:23". This check...
Click to read more »Module:Extract short description
Sabtu, 2022-10-22 04:19:43start = string.find (content, '{{%s*[Ss]hort description') or -- find the start of {{Short description}} template string.find (content, '{{%s*SHD');...
Click to read more »Module:Lang/data/iana languages/make
Rabu, 2024-07-10 21:55:31= false; if string.find (record, 'Deprecated', 1, true) or string.find (record, 'Preferred-Value', 1, true) or string.find (record, 'Private use'...
Click to read more »Module:Infobox3cols/sandbox
Senin, 2026-05-25 12:16:45pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end ...
Click to read more »Module:Citation/CS1/Configuration
Sabtu, 2026-02-28 22:14:44control various things. these setting located here to make them easy to find ]] -- these settings local to this module only local...
Click to read more »Module:Sandbox/Deryck Chan/rfdt
Kamis, 2017-02-23 05:03:34'Keep' find_count = find_count + 1 end if (parameter_lower:find('delete')) then result_match = 'Delete' find_count = find_count + 1 ...
Click to read more »Module:Sandbox/DePiep/sandbox
Selasa, 2023-08-01 22:43:21[[Module:Yesno]]. local pos = string.find(input_string, '/', 1, true); if pos ~= nil then if string.find(input_string, '/', pos + 1, true) == nil...
Click to read more »Module:Rail-interchange multi/sandbox
Rabu, 2023-05-10 01:53:54args[i2] = (string.find((v2 or ''), '^%s*$') and default or v2) elseif i2 < 5 then args[i2] = (not string.find((v2 or ''), '^%s*$') and...
Click to read more »Module:User scripts table
Rabu, 2025-03-26 05:18:58that have been blanked or redirected as non-functional if not jsContent:find("mw.log.warn( 'You installed the userscript", 1, true) then data[script]...
Click to read more »Module:Format link/sandbox
Selasa, 2022-10-04 20:36:21entered after a pipe (may be nil) link = removeInitialColon(link) -- Find whether a faux display value has been added with the {{!}} magic -- word...
Click to read more »Module:Table row counter/sandbox
Jumat, 2025-08-29 01:46:51content = titleObj:getContent() if not content then return nil end -- Find the wikitables on that page. local wikitables = {} do local iWikitable...
Click to read more »Module:XfD old/AfD and MfD
Selasa, 2022-02-01 08:14:41endindex = content:find("==Old business==") local count = 0 for line in mw.text.gsplit(content:sub(endindex,#content), "\n") do if line:find("{{Wikipedia:Miscellany...
Click to read more »Module:Babel
Sabtu, 2026-05-23 23:31:27argument is blank; otherwise treat it as normal if args[1] and args[1]:find('%S') then userboxes = showUserbox(frame, args[1], nocat) else userboxes...
Click to read more »Module:Date
Rabu, 2026-02-18 10:21:21local sign = (era_text[eraopt] or {}).sign if not sign or format:find('%{era}', 1, true) then sign = '' if value <= 0 then value...
Click to read more »Module:Timeline of release years
Selasa, 2025-10-14 23:22:57items(args, year, oldrange) local itemList = {} -- First loop through is to find the lowest year range, if any. If oldrange is supplied, the year range must...
Click to read more »Module:Parameter names example/sandbox
Kamis, 2020-03-26 10:42:46local function plain(s) return s end function p._main(args, frame) -- Find how we want to format the arguments to the template. local formatFunc if...
Click to read more »Module:Flags
Kamis, 2013-08-22 10:50:39preceded by "File:" in the table values. if commonsName ~= nil and string.find( commonsName, "File:", 1 ) == 1 then commonsName = string.sub( commonsName...
Click to read more »Module:Interlinear/sandbox
Rabu, 2026-01-07 06:23:33if mw.ustring.find(glossing, 'link') then GlossingType = "wikilink" elseif mw.ustring.find(glossing, 'label') or mw.ustring.find(glossing, 'no...
Click to read more »Module:Road data/strings/USA/MA
Kamis, 2022-08-11 09:03:16k:find ("^BL") then v.link = MA.BL.link end end MA.US.link = "U.S. Route %route% in Massachusetts"for k, v in pairs(MA) do if k:find ("^US...
Click to read more »Module:Road data/strings/USA/NM
Jumat, 2025-08-01 05:01:47below = "Interstate %route% in New Mexico" } for k, v in pairs(NM) do if k:find ("^I") then v.link = NM.I.link end end NM.BL.link = "Interstate %route%...
Click to read more »Module:Ordnance Survey coordinates
Senin, 2026-06-01 06:48:41if not mw.ustring.find(input,"region") and LL.region then url = url..'_region:'..LL.region end if not mw.ustring.find(input,"scale") and ...
Click to read more »Module:Road data/strings/USA/MS
Selasa, 2023-05-16 10:30:16"Interstate %route% in Mississippi" } } for k, v in pairs(MS) do if k:find ("^I") then v.link = MS.I.link end end MS.US.name = "U.S. Highway %route%"...
Click to read more »Module:Citation/CS1/Identifiers/sandbox
Kamis, 2026-06-04 20:26:17local handler = options.handler; if id:find ('[Jj][Ss][Tt][Oo][Rr]') or id:find ('^https?://') or id:find ('%s') then set_message ('err_bad_jstor');...
Click to read more »Module:Road data/strings/USA/IL
Jumat, 2023-10-20 22:21:49do if k:find ("^I") then v.link = IL.I.link end end IL.BL.link = IL.I.base .. " Business" .. suffix for k, v in pairs(IL) do if k:find ("^BL") then...
Click to read more »Module:Road data/strings/USA/AL
Kamis, 2023-08-17 06:58:50spec = AL[" aux "][auxType] for k, v in pairs(AL) do if k:find (auxType) then if k:find ("^US") then v.link = AL.US.base .. " " .. spec.name .. suffix...
Click to read more »Module:Road data/strings/USA/WY
Rabu, 2026-01-14 22:02:03default = "Interstate %route% in Wyoming" } for k, v in pairs(WY) do if k:find ("^I") then v.link = WY.I.link end end WY.BL.link = "Interstate %route%...
Click to read more »Module:Arbitration Committee open tasks
Sabtu, 2025-12-27 06:40:20local p = {} local sub = mw.ustring.sub local find = mw.ustring.find local gmatch = mw.ustring.gmatch local match = mw.ustring.match local trim = mw.text...
Click to read more »Module:Gallery
Senin, 2025-02-10 17:31:44as it is possible to combine multiple classes, we use find instead of == if mw.ustring.find(class, 'bg%-transparent') then alt = alt .. bgtransparent...
Click to read more »Module:Road data/strings/USA/CO
Sabtu, 2025-01-04 14:11:52default = "Interstate %route% in Colorado" } for k, v in pairs(CO) do if k:find ("^I") then v.link = CO.I.link end end CO.BL.link = "Interstate %route%...
Click to read more »Module:Road data/strings/USA/TN
Senin, 2022-09-12 20:29:49below = "Interstate %route% in Tennessee" } for k, v in pairs(TN) do if k:find ("^I") then v.link = TN.I.link end end TN.US.link = { ["70N"] = "U.S...
Click to read more »Module:TFRRS
Rabu, 2025-05-14 02:48:56if k:find('^id[1-9][0-9]*$') then ids[paramno] = v elseif k:find('^label[1-9][0-9]*$') then labels[paramno] = v elseif k:find('^xc[1-9][0-9]*$')...
Click to read more »Module:Hatnote list
Selasa, 2023-11-14 04:00:31function searchDisp(haystack, needle) return string.find( string.sub(haystack, (string.find(haystack, '|') or 0) + 1), needle ) end -- Stringifies...
Click to read more »Module:Road data/strings/USA/WI
Rabu, 2023-02-01 05:14:53spec = WI[" aux "][auxType] for k, v in pairs(WI) do if k:find (auxType) then if k:find ("I-") then v.link = WI.I.base .. " " .. spec.name .. " (Wisconsin)"...
Click to read more »Module:In lang
Selasa, 2025-11-11 20:56:46-- add this language or error message to the list if code:find ('%-') and not override_t[code] then -- except for the IETF tags listed...
Click to read more »Module:Road data/strings/USA/ND
Jumat, 2021-09-24 08:37:23default="Interstate %route% in North Dakota" } for k, v in pairs(ND) do if k:find ("^I") then v.link = ND.I.link end end ND.BL.link = "Interstate %route%...
Click to read more »Module:CountryAdjectiveDemonym
Minggu, 2026-04-26 12:10:50if string.find(s, adjective) or string.find(s, noun) then for longerNoun, nameToUse in pairs(similarLongerNouns) do if string.find(s, longerNoun)...
Click to read more »Module:COVID-19 data
Rabu, 2025-06-11 18:33:20number then return '' end local _, _, minus, int, _ = tostring(number):find('([-]?)(%d+)([.]?%d*)') int = int:reverse():gsub("(%d%d%d)", "%1,") int...
Click to read more »Module:Highest archive number/sandbox
Selasa, 2019-10-01 22:01:53-- This module finds the highest existing archive number for a set of talk -- archive pages. local expSearch = require('Module:Exponential search') local...
Click to read more »Module:Infobox television/sandbox
Selasa, 2026-05-26 01:46:48pairs(args) do if string.find(string.lower(v), "original") and not string.find(string.lower(v), "aboriginal") or string.find(string.lower(v), "revival")...
Click to read more »Module:Chessboard mxn
Rabu, 2026-05-27 11:25:15for a number. Can have multiple digits pstart, pend = srow:find("%d+", index) if pstart == index then piece =...
Click to read more »Module:Road data/strings/USA/OR
Sabtu, 2021-09-25 10:58:10below = "Interstate %route% in Oregon" } } for k, v in pairs(OR) do if k:find ("^I") then v.link = OR.I.link end end OR["I 1961"].shield = { ...
Click to read more »Module:LoadData
Jumat, 2021-10-01 05:57:10local p = {} -- Finds the next key key <= or >= the given i. -- operator is ±1 local function findItemRange(data, i, operator) local bestIndex = nil...
Click to read more »Module:Soccerway
Kamis, 2019-07-11 15:43:49args.url if string.find( url, "scoresway", 1, true ) and string.find( url, "sport=soccer", 1, true ) then if (string.find( url, "page=player"...
Click to read more »Module:Road data/strings/USA/MT
Senin, 2022-07-11 00:52:24do if k:find ("^I") then v.link = MT.I.link end end MT.BL.link = MT.I.base .. " Business" .. suffix for k, v in pairs(MT) do if k:find ("^BL") then...
Click to read more »Module:Native name
Jumat, 2024-10-11 00:06:54then args_t[1] = lang_module._tag_from_name ({args_t[1]}); if args_t[1]:find ('Error') then return error_msg ((args_t.index and messages_t.tag_required_idx)...
Click to read more »Module:Portal bar
Senin, 2026-03-16 21:32:43called from a sandbox local isSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) local sandbox = isSandbox and '/sandbox' or '' local...
Click to read more »Module:Road data/strings/USA/NE
Kamis, 2021-12-16 21:36:38"Interstate %route% ([dab||%dab%|Nebraska])" } for k, v in pairs(NE) do if k:find ("^I") then v.link = NE.I.link end end NE.BL.link = "Interstate %route%...
Click to read more »Module:Portal/sandbox
Jumat, 2025-09-12 19:30:32called from a sandbox local isSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) local sandbox = isSandbox and '/sandbox' or '' local...
Click to read more »Module:Road data/strings/USA/UT
Jumat, 2021-12-10 12:26:37html Utah Code §72-4-%section%]</span>" for k, v in pairs(UT) do if k:find ("^I") then v.link = UT.I.link end end UT.BL.link = "Interstate %route%...
Click to read more »Module:Road data/strings/USA/ID
Senin, 2023-03-06 10:28:21} for k, v in pairs(ID) do if k:find ("^I") then v.link = ID.I.link end end for k, v in pairs(ID) do if k:find ("^B%a") then v.link = ID.BL.link...
Click to read more »Module:Road data/strings/USA/SC
Jumat, 2024-08-23 00:49:49"Interstate %route% in South Carolina" } } for k, v in pairs(SC) do if k:find ("^I") then v.link = SC.I.link end end SC.BL.link = "Interstate %route%...
Click to read more »Module:Sidebar games events
Selasa, 2025-12-30 09:50:48tonumber(num)) end -- find number of columns if k:match('^results%d+%.(%d+)$') then cols = (2 > cols) and 2 or cols end -- find number of columns...
Click to read more »Module:Sandbox/28bytes/acm
Senin, 2018-12-10 06:52:45--optional end local c = "" if mw.ustring.find(fmter,"q") ~= nil then c = "\"" elseif mw.ustring.find(fmter,"t") ~= nil then c = "''" end local...
Click to read more »Module:Tabular data
Jumat, 2021-10-01 05:58:04data | lookup | Table name | search_value = Value to find in column | search_pattern = Pattern to find in column | search_column = Name of column to search...
Click to read more »Module:Road data/strings/USA/SD
Selasa, 2022-09-13 05:52:09do if k:find ("^I") then v.link = SD.I.link end end SD.BL.link = SD.I.base .. " Business" .. suffix for k, v in pairs(SD) do if k:find ("^B%a")...
Click to read more »Module:Text/sandbox
Sabtu, 2025-04-26 19:20:09suffixLen == 0 then return s end local i = s:find(prefix, 1, true) local r = s local j while i do j = r:find(suffix, i + prefixLen) if j then r =...
Click to read more »Module:Fiction-based redirects to list entries category handler
Jumat, 2026-05-29 15:04:01categoryType in ipairs(typeList) do local _, _, articleTitle = string.find(currentTitle, "^(.*) " .. categoryType.redirectType .. " " .. categoryType...
Click to read more »Module:IncrementParams
Kamis, 2022-11-03 00:53:30changes" function in the edit window of the template you are editing -- to find any false positives. -- STEP 7: When you are finished, undo your changes...
Click to read more »Module:Footnotes/whitelist/sort
Sabtu, 2023-10-14 22:26:09text local find_pattern = '%s*local%s+whitelist%s+=%s+'; -- find the whitelist table local tstart, tend = content:find (find_pattern); content...
Click to read more »Module:Citation/CS1/Utilities/sandbox
Kamis, 2026-01-22 22:00:17elseif argument:find ("'''", 1, true) then -- bold (3) argument, flag=argument:gsub ("%'%'%'", ""); elseif argument:find ("''", 1, true) then...
Click to read more »Module:Submit an edit request/sandbox
Kamis, 2024-09-05 07:07:59content = mw.title.new(talkPageName):getContent() if content and content:find("== *" .. escape(sectionname) .. " *==") then local dedup = 2 while true...
Click to read more »Module:Clade/sandbox
Jumat, 2026-01-16 16:14:49local divCSS = ' class="clade"' -- ' style="overflow:auto;"' if string.find(cladeString, divCSS) then cladeString = string.gsub(cladeString, divCSS...
Click to read more »Module:ISO 639 name/sandbox
Selasa, 2024-12-10 03:15:12-- make a link to the language article? if name:find ('languages') or name:find ('[Ll]anguage$') then name = make_wikilink (name, label);...
Click to read more »Module:Road data/strings/USA/ME
Jumat, 2021-09-24 04:14:39k:find ("^I") then v.link = ME.I.link end end ME.US.link = ME.US.base .. " [dab||(%dab%, Maine)|in Maine]" for k, v in pairs(ME) do if k:find ("^US...
Click to read more »Module:Road data/strings/USA/IN
Senin, 2023-01-16 12:13:03pairs(IN) do if k:find ("^I") then v.link = IN.I.link end end IN.US.link = "U.S. Route %route% in Indiana" for k, v in pairs(IN) do if k:find ("^US %d")...
Click to read more »Module:Urltowiki
Jumat, 2019-11-08 12:05:32host_id = host_id -- Find the language in the interwiki prefix, if applicable. local lang = mw.ustring.match(host, "^(.-)%.") -- Find the text before the...
Click to read more »Module:Person height
Rabu, 2025-12-10 18:10:59local m = mw.ustring.find(s, 'm') local c = mw.ustring.find(s, 'cm') local f = mw.ustring.find(s, 'ft') local i = mw.ustring.find(s, 'in') if m ==...
Click to read more »Module:Sandbox/Angr pukhlya/2
Kamis, 2018-12-27 09:04:23month = "" for i = 1, #months do k = string.find(date, months[i]) if k == nil then k = string.find(date, string.lower(string.sub(months[i], 1, 1))...
Click to read more »Module:Random/sandbox
Selasa, 2023-04-04 01:40:10t2 = args[2] -- Find the start timestamp and the end timestamp. local startTimestamp, endTimestamp if not t1 then -- Find the first and last second...
Click to read more »Module:Category series navigation/sandbox
Kamis, 2025-12-04 03:48:08--find the variable parts of pagename local findvar = find_var(pagename) if findvar.vtype == 'error' then --basic format error checking in find_var()...
Click to read more »Module:Findimage
Sabtu, 2020-11-21 01:50:52-- Find Image -- returns the first filename in the current page -- checks for [[File:, [[Image:, infobox image, gallery local p = {} function p.scan(frame)...
Click to read more »Module:Archive list
Selasa, 2026-02-17 22:19:42first page that doesn't exist, so we want to -- subtract it by one to find the biggest existing archive. return check1 - 1 end -- Get the archive...
Click to read more »Module:Lang/documentor tool
Senin, 2025-05-12 23:10:52local private_t = {} for tag, lang in pairs (override_t) do if tag:find ('%-x%-') then table.insert (private_t, table.concat ({'\n|-\n|', lang...
Click to read more »Module:Canadian federal election results
Sabtu, 2022-10-22 02:51:23type(k) ~= 'string' then return end if k:find('^party[1-9]%d*[a-e]$') then -- valid and not tracked if k:find('^party[1-9]%d*a$') then local n = mw...
Click to read more »Module:CS1 translator/data
Minggu, 2026-04-26 06:54:08cs1|2 equivalent) if (k:find ('#', 1, true) and not v:find ('#', 1, true)) or (not k:find ('#', 1, true) and v:find ('#', 1, true))then ...
Click to read more »Module:GetParameters
Selasa, 2024-11-26 04:58:30--end --if mw.ustring.find(arg, '^%s*-?[1-9][0-9]*%s*$') ~= nil or arg == '0' then -- arg = tonumber(arg) --end if mw.ustring.find(arg, '^-?[1-9][0-9]*$')...
Click to read more »Module:Infobox/dates/sandbox
Selasa, 2025-04-08 21:45:18start_date:find("dtstart") then return error_category end end local end_date = args.last_aired if end_date then if not end_date:find("dtend")...
Click to read more »Module:Date table sorting
Rabu, 2019-07-10 22:00:29parseDayOrMonth(s) if s:find('^%d%d?$') then return tonumber(s) end end local function parseYear(s) if s:find('^%d%d%d%d?$') then return...
Click to read more »Module:Road data/strings/USA/VA
Rabu, 2022-09-14 19:32:55I.link = "Interstate %route% (Virginia)" for k, v in pairs(VA) do if k:find ("^I") then v.link = VA.I.link end end VA["I-Express"].link = "Interstate...
Click to read more »Module:Road data/strings/USA/PA
Kamis, 2022-12-15 09:50:57link = "Interstate %route% (Pennsylvania)" for k, v in pairs(PA) do if k:find ("^I") then v.link = PA.I.link end end PA.BL.link = "Interstate %route%...
Click to read more »Module:Sports table/argcheck/sandbox
Jumat, 2025-12-05 00:35:05and (k:find('^name_') or k:find('^short_')) then found_arg = 1 table.insert(orphaned_names, k) end if found_arg == 0 and (k:find('^note_')...
Click to read more »Module:Infobox television/testcases
Jumat, 2026-02-27 20:57:58'last_aired')}, -- find 'revival' {'released=Original series ' .. get_date("start"), getCategory(categories.incorrectly_formatted, 'released')}, -- find 'original'...
Click to read more »Module:Road data/strings/USA/NC
Rabu, 2022-09-14 19:39:16"Interstate %route% in North Carolina" } } for k, v in pairs(NC) do if k:find ("^I") then v.link = NC.I.link end end NC["Future"].shield = "I-%route%...
Click to read more »Module:Check for deprecated parameters
Kamis, 2025-11-20 18:54:16removes[k] then table.insert(remove_values, k) end end end -- find out about calling context local title = mw.title.getCurrentTitle() ...
Click to read more »Module:Road data/strings/USA/MD
Jumat, 2022-08-19 02:32:13below = "Interstate %route% in Maryland" } } for k, v in pairs(MD) do if k:find ("^I") then v.link = MD.I.link end end MD["I-Spur"].link = "Interstate...
Click to read more »Module:Number table sorting
Senin, 2019-06-10 02:39:47somewhat but completely broken at some point self.isFraction = (string.find(s, '/') ~= nil) if self.isFraction then error(string.format( "Fractions...
Click to read more »Module:Automated taxobox/sandbox
Selasa, 2026-06-02 13:27:36end if mw.ustring.find(frame:expandTemplate{ title = 'Period start', args = { oldestFossil } }, '[Ee]rror') or mw.ustring.find(frame:expandTemplate{...
Click to read more »Module:Ordnance Survey coordinates/sandbox
Jumat, 2026-06-05 20:48:06if not mw.ustring.find(input,"region") and LL.region then url = url..'_region:'..LL.region end if not mw.ustring.find(input,"scale") and ...
Click to read more »Module:Sandbox/PHansen/Trunc
Senin, 2015-01-05 17:39:10https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.find -- Mulig forbedring med tabel der gennemløbes -- ? topdomaene = { ".da"...
Click to read more »Module:Template parameter value/sandbox
Kamis, 2025-10-23 22:00:38new, title) if success then return titleObj else return nil end end -- Finds all templates in the given string, including nested templates -- Templates...
Click to read more »Module:Transclusion count/data/F
Minggu, 2026-05-31 12:13:02= 2800, ["Find"] = 8500, ["FindYDCportal"] = 222000, ["Find_a_Grave"] = 24000, ["Find_country"] = 41000, ["Find_demonym"] = 38000, ["Find_general_sources"]...
Click to read more »Module:Arbitration Committee open tasks/sandbox
Sabtu, 2025-12-27 06:32:18local p = {} local sub = mw.ustring.sub local find = mw.ustring.find local gmatch = mw.ustring.gmatch local match = mw.ustring.match local trim = mw.text...
Click to read more »Module:Person weight/sandbox
Minggu, 2025-10-05 08:25:27'&[Nn][Bb][Ss][Pp];', ' ') local kg = mw.ustring.find(s, 'kg') local st = mw.ustring.find(s, 'st') local lb = mw.ustring.find(s, 'lb') if kg == nil and st == nil...
Click to read more »Module:CFB schedule/sandbox
Senin, 2026-05-25 03:29:07= 'Coaches\'' end -- if p is linked then just return p if (p or ''):find('[%[%]]') then return p end -- else if y is a number if isnotempty(y)...
Click to read more »Module:DemoTemplate
Jumat, 2022-10-21 13:42:10local ipairsArgs = {} for k,v in ipairs(frame.args) do if string.find(v, '=', 1, true) then break end ipairsArgs[k] = true printf('|%s'...
Click to read more »Module:TaxonList
Selasa, 2025-06-10 10:51:53{{extinct}} before it? if (string.sub(taxonName,1,5) == '<abbr') and mw.ustring.find(taxonName, '†') then taxonName = string.gsub(taxonName, '^.*</abbr>'...
Click to read more »Module:Convert/makeunits
Selasa, 2024-10-22 14:42:28everything before "== Conversions ==". -- * Process the following lines: -- * Find next level-3 heading like "=== Length ===". -- * Parse each following line...
Click to read more »Module:Ancient Egypt kings
Sabtu, 2023-09-30 10:28:39inputYear > tonumber( lang:formatDate( 'Y' ) ) then return "''N/A''" end -- Find the length of the data. -- We need the length of the data so that we can...
Click to read more »Module:Infobox mapframe
Senin, 2025-11-24 11:39:55the zoom local separator = (mw.ustring.find(config.geomask, "###", 0, true ) and "###") or (mw.ustring.find(config.geomask, ";", 0, true ) and ";")...
Click to read more »Module:Infobox television season name/sandbox
Kamis, 2024-08-15 16:28:54local _, _, showNameModified, seasonNumber = string.find(showName, "(.*)%s+(%d+)$") return showNameModified, seasonNumber end ---...
Click to read more »Module:Timeline of release years/sandbox
Selasa, 2025-10-14 23:10:34items(args, year, oldrange) local itemList = {} -- First loop through is to find the lowest year range, if any. If oldrange is supplied, the year range must...
Click to read more »Module:Redirect hatnote/sandbox
Selasa, 2022-09-06 01:20:21directly from the docs, or if we aren't in main- or category-space. if not v:find('^REDIRECT%d*$') and v ~= 'TERM' -- and currentTitle.namespace == 0 or...
Click to read more »Module:Sandbox/GhostInTheMachine/Test
Jumat, 2020-10-09 00:12:18= mw.ustring.find( sPage, '{{', 1, true ) or 0 -- any templates? if iCB < 1 then return false end local iLC = mw.ustring.find( sPage, '{{short...
Click to read more »Module:Road data/strings/USA/KS
Sabtu, 2021-10-09 07:27:04below = "Interstate %route% in Kansas" } } for k, v in pairs(KS) do if k:find ("^I") then v.link = KS.I.link end end KS["I-Alt"].banner = "Alt plate...
Click to read more »Module:WPSHIPS utilities
Selasa, 2026-04-07 00:38:23the line'. Starting with the least possible series of fragments (1) would find 'ship' and make 'of the line' part of the italicized name. Returns 0 if...
Click to read more »Module:Arbcom election banner
Selasa, 2025-10-21 04:33:53tonumber(unixDate) -- Subtract the timestamp from the current unix timestamp to find the time left, and output that in a readable way. local secondsLeft = unixDate...
Click to read more »Module:External links/sandbox
Sabtu, 2024-08-10 22:29:38regex:gsub("\\d{(%d)}", function(num) return string.rep("%d", num) end) return string.find(str, '^' .. regex .. '$') end local function getFormatterUrl( prop, value...
Click to read more »Module:SPI archive notice
Rabu, 2022-02-16 20:30:31(redirectTarget ~= nil) then if (mw.ustring.find(redirectTarget, '^User:' .. args[1]) or mw.ustring.find(redirectTarget, '^User talk:' .. args[1])) then...
Click to read more »Module:Template test case
Kamis, 2025-08-07 00:01:43categories = {} for k, v in pairs(options) do if type(k) == 'string' and k:find('heading') then obj.categories['Test cases using heading parameters']...
Click to read more »Module:Road data/strings/USA/DE
Senin, 2022-09-19 08:52:42pairs(DE) do if k:find ("^I") then v.link = DE.I.link end end DE.US.link = "U.S. Route %route% in Delaware" for k, v in pairs(DE) do if k:find ("^US %d")...
Click to read more »Module:Episode list/sandbox
Sabtu, 2025-10-11 08:48:25search) local valFind = string.find(val, search) if (valFind == nil) then return val else return string.sub(val, 0, valFind-1) end end -- Local...
Click to read more »Module:RfD
Rabu, 2025-04-16 04:48:47transcluded, or we can't figure out how to display our target. -- Check if we can find the target. local target = getTargetFromText(args.content) messageBox =...
Click to read more »Module:Age
Rabu, 2025-12-10 15:08:14module or its sandbox. if not _Date then local sandbox = frame:getTitle():find(mtext['txt-sandbox'], 1, true) and ('/' .. mtext['txt-sandbox']) or '' ...
Click to read more »Module:UserLinks
Minggu, 2024-09-01 00:20:30interwikiTable[key].iw_prefix -- Using prefixes[2] is a bit of a hack, but should find the long name -- most of the time. return prefixes[2] or prefixes[1]...
Click to read more »Module:Commons link/doc
Jumat, 2026-03-27 22:16:47{{#invoke:Commons link|getGallery}} Use wikidata to find Commons gallery corresponding to this article. If unable to find gallery in wikidata, default to searching...
Click to read more »Module:Calendar date/recurring
Sabtu, 2022-10-22 04:13:59day=1} local dateparts = os.date("*t", date) if weeknumber > 0 then -- find the first [dayofweek] of this month while dateparts["wday"] ~= dayofweek...
Click to read more »Module:Sandbox/Jts1882/CladeN
Senin, 2022-10-24 04:14:07suffix[i]] or "SUBCLADE_" .. suffix[i] if subclade then if string.find(cladeString, target) then cladeString = string.gsub(cladeString,target...
Click to read more »Module:Page tabs
Rabu, 2024-08-14 11:36:32link, args, i, class, css) local thisPage = (args.This == 'auto' and link:find('[[' .. mw.title.getCurrentTitle().prefixedText .. '|', 1, true)) or tonumber(args...
Click to read more »Module:Road data/strings/USA/WV
Sabtu, 2021-09-25 12:53:34= "Interstate %route% in West Virginia" } for k, v in pairs(WV) do if k:find ("^I") then v.link = WV.I.link end end WV.US.link = { ["35"] = "U.S...
Click to read more »Module:COVID-19 data/sandbox
Minggu, 2024-08-04 11:35:41number then return '' end local _, _, minus, int, _ = tostring(number):find('([-]?)(%d+)([.]?%d*)') int = int:reverse():gsub("(%d%d%d)", "%1,") int...
Click to read more »Module:Selected current events/sandbox
Sabtu, 2019-03-09 15:18:28add added affirm affirmed include included on true yes y ' return string.find(affirmedWords, ' '..string.lower(val)..' ', 1, true ) and true or false end...
Click to read more »Module:Check DYK hook/sandbox
Minggu, 2020-11-29 19:28:27is valid. -- We use the patterns in the validationPatternGroups table to find whether -- a hook is valid or not. Hooks are treated as valid if they match...
Click to read more »Module:Road data/strings/USA/FL
Sabtu, 2022-01-15 06:14:36below = "Interstate %route% in Florida" } } for k, v in pairs(FL) do if k:find ("^I") then v.link = FL.I.link end end FL["I-Express"].link = "Interstate...
Click to read more »Module:Person length/sandbox
Selasa, 2020-05-26 15:06:08'&[Nn][Bb][Ss][Pp];', ' ') local m = mw.ustring.find(s, 'm') local c = mw.ustring.find(s, 'cm') local i = mw.ustring.find(s, 'in') if m == nil and i == nil...
Click to read more »Module:Redirect-distinguish
Selasa, 2025-07-15 00:52:23'[[Category:Missing redirects]]' elseif not redirectTitle.isRedirect then if string.find(redirectTitle:getContent(), '#invoke:RfD') then args[1] = args[1] .. ...
Click to read more »Module:Road data/strings/USA/OH
Jumat, 2023-03-03 10:00:01k:find ("^I") then v.link = OH.I.link end end OH.BL.link = "Interstate %route% Business ([dab||%dab%, |]Ohio)" for k, v in pairs(OH) do if k:find ("^BL")...
Click to read more »Module:Road data/strings/USA/CT
Sabtu, 2022-09-03 07:11:37"Interstate %route% in Connecticut" } } for k, v in pairs(CT) do if k:find ("^I") then v.link = CT.I.link end end CT.US.link = {...
Click to read more »Module:Road data/strings/USA/OK
Sabtu, 2024-03-16 11:20:18below = "Interstate %route% in Oklahoma"}} for k, v in pairs(OK) do if k:find ("^I") then v.link = OK.I.link end end OK.BL.link = "Interstate %route%...
Click to read more »Module:All Ireland by county category navigation
Senin, 2026-03-23 02:30:26validCountyName = findCountyNameInPagename(pn, newCounties, "new counties", false) end elseif (countySet == "six") then validCountyName = findCountyNameInPagename(pn...
Click to read more »Module:TableTools
Minggu, 2024-08-18 11:19:07------------------------------------------------------- -- length -- -- Finds the length of an array, or of a quasi-array with keys such as "data1", --...
Click to read more »Module:MultiReplace/sandbox
Minggu, 2019-03-03 01:54:56for _, change in ipairs(changeList) do local start, stop = mw.ustring.find(input, change.pattern, pos, plain) if start and (start < bestStart) then...
Click to read more »Module:Lua class
Senin, 2025-08-11 23:03:29or invalid key"):format(key, tostring(value)), 2) elseif key:find('[^_%w]') or key:find('^%d') then error(("AttributeError: invalid attribute name...
Click to read more »Module:Administrators' noticeboard archives
Selasa, 2026-04-28 23:28:42end local function inhibitEditLink() local emit if string.find(mw.title.getCurrentTitle().text, "Archive%d") then emit = "__NOEDITSECTION__\n"...
Click to read more »Module:Convert/wikidata
Kamis, 2021-05-06 12:08:27nothing. text = text:gsub(' ', ' '):gsub('%s+', ' ') local pos = text:find(' ', 1, true) if pos then -- Leave checking of value to convert which...
Click to read more »Module:Mapframe
Senin, 2026-06-01 22:40:49return nil end local separator = (mw.ustring.find(listString, "###", 0, true ) and "###") or (mw.ustring.find(listString, ";", 0, true ) and ";") or ","...
Click to read more »Module:DYK nompage links
Senin, 2025-04-14 11:03:32historyPages[1] then return makeWikitextError('no articles specified') end -- Find out whether we are dealing with multiple history pages. local isMulti =...
Click to read more »Module:Road data/strings/USA/MN
Kamis, 2024-08-01 04:14:41%section%[subsection||(%subsection%)|]]</span>" for k, v in pairs(MN) do if k:find ("^I") then v.link = MN.I.link end end MN["I-Alt"].link = "Interstate...
Click to read more »Module:Autotaxobox/doc
Jumat, 2026-02-20 07:48:49{{#invoke:Autotaxobox|find|Felis|ordo}} → Carnivora {{#invoke:Autotaxobox|find|Felis|classis}} → Mammalia/skip {{#invoke:Autotaxobox|find|Pteranodon|phylum}}...
Click to read more »Module:NUMBEROF
Minggu, 2024-09-29 10:52:34trimArg(args[2], 2) site = aliases[site] or site if not wantMeta and not site:find('.', 1, true) then -- site is like "af" or "af.wikipedia" or "af.wikiquote"...
Click to read more »Module:Road data/strings/USA/VT
Sabtu, 2021-09-25 11:30:45spec = VT[" aux "][auxType] for k, v in pairs(VT) do if k:find (auxType) then if k:find ("^US") then v.link = VT.US.base .. " " .. spec.name .. suffix...
Click to read more »Module:Ancient Egypt era
Sabtu, 2023-09-30 10:28:13inputYear > tonumber( lang:formatDate( 'Y' ) ) then return "''N/A''" end -- Find the length of the data. -- We need the length of the data so that we can...
Click to read more »Module:Webarchive
Selasa, 2026-02-24 05:19:3612d0c2532cc3cf629b8bc8c8e if dt[2]:find ('query', 1, true) or dt[2]:find ('cache', 1, true) or dt[2]:find ('getfile', 1, true) or tonumber(dt[2])...
Click to read more »Module:Lang/tag from name
Sabtu, 2021-12-25 22:49:59string: ["yaka"] = '', later we find "iyx" and add it to rev_lang_table{}. We look in dedabbed_names_list{} and find ["yaka"] has been unset to empty...
Click to read more »Module:Subject bar/sandbox
Senin, 2026-04-13 07:20:19called from a sandbox local isSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) local sandbox = isSandbox and '/sandbox' or '' local...
Click to read more »Module:Babel/sandbox
Sabtu, 2026-05-23 23:25:00argument is blank; otherwise treat it as normal if args[1] and args[1]:find('%S') then userboxes = showUserbox(frame, args[1], nocat) else userboxes...
Click to read more »Module:Team roster navbox
Selasa, 2020-09-22 22:16:22value = colorlinks(value, abovestyle) elseif mw.ustring.find(argName, '^group[0-9][0-9]*$') then if parentArgs[argName...
Click to read more »Module:Road data/strings/USA/MO
Selasa, 2022-09-13 03:18:01if k:find ("^I") then v.link = MO.I.link end end MO.BL.link = "Interstate %route% Business" .. suffix for k, v in pairs(MO) do if k:find ("^B%a")...
Click to read more »Module:Urltowiki/sandbox
Kamis, 2023-04-13 03:15:12host_id = host_id -- Find the language in the interwiki prefix, if applicable. local lang = mw.ustring.match(host, "^(.-)%.") -- Find the text before the...
Click to read more »Module:Naval Vessel Register URL
Senin, 2025-08-11 23:02:19there a group for the hull number? make_error_message (output, 'unable to find group: [\'', hull_prefix, '\'] in [[Module:Naval Vessel Register URL/data]]');...
Click to read more »Module:PopulationFromWikidata
Kamis, 2023-07-20 08:57:48-- If there's a Wikidata item connected to the article it will find it here. end -- mw.logObject(item) --------------- CHECK: If item.claims[Pop_P]...
Click to read more »Module:Taxonbar/candidate
Rabu, 2024-04-17 21:48:58string.match( currentTitle.text, '^List of ') then return '' end --find Wikidata item if currentTitle.namespace == 0 then --mainspace local...
Click to read more »Module:USN fleet totals/data
Sabtu, 2023-07-22 22:23:07local find_pattern = '|%-'; local type_label_index, note_label_index; local tstart, tend = wikitable:find (find_pattern); -- find the table...
Click to read more »Module:Election box US auto
Jumat, 2019-08-30 22:54:12expr( "" .. 100 * part / total .. " round " .. round_to ) if not string.find( ret, ".", 1, true ) then -- add the decimals that expr doesn't ret =...
Click to read more »Module:STikiLeaderboard
Kamis, 2024-07-25 12:39:38lb:getContent()) or error('Could not find the leaderboard text') -- Get a specific data value for a given username. local function findLeaderboardData(dfield, username)...
Click to read more »Module:Catalog lookup link
Jumat, 2025-09-12 01:09:00not is_set (args['allow_icons']) or args['allow_icons']:find ('all') or args['allow_icons']:find (icon) then --if all allowed or specified icon is allowed...
Click to read more »Module:OSM
Senin, 2015-09-28 05:48:01primitives = args.prim else primitives = 'nwr' end if primitives:find("n") then -- Include nodes overpassUrl = overpassUrl .. 'node' .. leftbracket...
Click to read more »Module:Road data/strings/USA/HI
Minggu, 2021-09-26 02:16:35"Interstate H-%route%" HI.I.abbr = "H-%route%" for k, v in pairs(HI) do if k:find ("^I%-") then v.shield = HI.I.shield v.name = HI.I.name v.link = HI.I...
Click to read more »Module:Icon
Jumat, 2026-01-30 13:27:05being called from a sandbox local sandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) and '/sandbox' or '' -- Implements [[Template:Icon]]...
Click to read more »Module:Sandbox/MjolnirPants
Kamis, 2021-07-22 21:10:23i, j = string.find(pageSource, "==" .. args[1]) pageSource = string.sub(pageSource, i + string.len(args[1]) + 4) i, j = string.find(pageSource, "==")...
Click to read more »Module:Sandbox/Danski454/chance
Rabu, 2019-01-16 02:15:57gsub(content, "%b[]", function (match) if string.find(match, "[[File:", 1, true) == 1 or string.find(match, "[[Image:", 1, true) == 1 then return...
Click to read more »Module:Pagetype
Rabu, 2024-05-22 00:35:20default then return default end end end end end end -- Find pages which do not exist local function nonExistent(title, args) local arg...
Click to read more »Module:Transclude TOC
Sabtu, 2022-10-22 16:17:38heading (returned from string.find()) local e = 1; -- end position of found heading (returned from string.find()) local section_name; ...
Click to read more »Module:SportsRankings
Kamis, 2023-08-03 23:08:11= string.gsub( keyword, "INSERT_LAST_DATE", getDate("LAST")) if string.find(keyword, "INSERT_REFERENCE") then keyword = string.gsub( keyword, "INSERT_REFERENCE"...
Click to read more »Module:Template invocation/sandbox
Sabtu, 2024-07-13 19:42:56----------------------------- -- Name: p.name -- Purpose: Find a template invocation name from a page name or a -- mw.title...
Click to read more »Module:Template link general
Kamis, 2026-02-12 18:19:37local nw = mw.text.nowiki local function addTemplate(s) local i, _ = s:find(':', 1, true) if i == nil then return 'Template:' .. s end local ns...
Click to read more »Module:Medical cases chart
Minggu, 2026-02-15 06:50:15lang:formatDate('M', '2020-' .. ('%02d'):format(i)) end local p = {} function p._findIntervalRow(tRows, nTime, nTol, bAll) -- Loop backwards in tRows, assuming...
Click to read more »Module:TNTTools
Rabu, 2026-05-13 19:08:14CaseSensitive, S) if (S == nil) or (S == '') then error('Not arguments trying to find "'..val..'"') --It doesn't require translation, only for degug end local...
Click to read more »Module:Citation/CS1/COinS
Sabtu, 2025-04-12 20:48:47' '); -- replace hair space with plain space if not mw.ustring.find (value, cfg.indic_script) then -- don't remove zero-width joiner characters...
Click to read more »Module:Sandbox/Kid116/Dates
Kamis, 2017-12-28 17:50:16() else if input:find ("%s%d%d%s") then if input:find ("AD") or input:find ("BC") or input:find ("CE") or input:find ("BCE") then year...
Click to read more »Module:Infobox sort
Jumat, 2026-02-27 20:31:31table.sort( list, function (a, b) local indexA = a:find("%%") local indexB = b:find("%%") local numberA = tonumber(a:sub(1, indexA - 1))...
Click to read more »Module:TV ratings
Minggu, 2024-09-22 20:22:10return string.format('[[%s|%s]]', page, display) end end local function findSortText(wikitext) -- Simplified wikitext parser that returns a value that...
Click to read more »Module:Redirect template handler
Kamis, 2024-06-27 16:55:32true elseif objectType == "song" and (disambiguation == "song" or string.find(disambiguation, " song")) then return true else return false end end...
Click to read more »Module:Citation/CS1/Configuration/sandbox
Rabu, 2026-06-03 02:12:03control various things. these setting located here to make them easy to find ]] -- these settings local to this module only local...
Click to read more »Module:Icon/sandbox
Jumat, 2026-01-30 13:16:00being called from a sandbox local sandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) and '/sandbox' or '' -- Implements [[Template:Icon]]...
Click to read more »Module:Video game series reviews
Kamis, 2024-10-24 23:58:08all the arguments. for k, v in pairs(args) do if(string.find(k, "game%d+") or string.find(k, "qid%d+")) then local num = tonumber(string.match(k...
Click to read more »Module:ScribuntoUnit
Rabu, 2026-05-27 01:46:51not mw.ustring.find(s, pattern, nil, plain) then DebugHelper.raise({ ScribuntoUnit = true, text = mw.ustring.format('Failed to find %s "%s" in string...
Click to read more »Module:Convert/wikidata/sandbox
Senin, 2020-12-14 13:00:27nothing. text = text:gsub(' ', ' '):gsub('%s+', ' ') local pos = text:find(' ', 1, true) if pos then -- Leave checking of value to convert which...
Click to read more »Module:Sandbox/Angr pukhlya/2/sandbox
Kamis, 2018-12-27 09:04:24month = "" for i = 1, #months do k = string.find(date, months[i]) if k == nil then k = string.find(date, string.lower(string.sub(months[i], 1, 1))...
Click to read more »Module:Redirect template/sandbox
Kamis, 2024-08-22 22:37:45local beCompatibleWithBug14974 = args.info and (args.info:find('^[:;#*]', 1) == 1 or args.info:find('{|', 1, true) == 1) and '\n' or ' ' local content...
Click to read more »Module:Section sizes
Sabtu, 2026-04-18 10:58:52cat link }); return err_msg; end --[[--------------------------< FIND_STRING_IN >-------------------------------- Function returns True if the...
Click to read more »Module:Cite Q
Senin, 2026-04-27 10:27:09and citeq_args.language end end if not langcodes[1] then -- try to find language of work langcodes = _lang_code(qid) end if not langcodes[1]...
Click to read more »Module:Flagg/sandbox2
Kamis, 2020-07-02 18:20:03if string.find(x,"^%s*$") then return "" else return x end end local function nopx(x) if x~=nil and (string.find(x,"^%d+$") or string.find(x,"^%d+px$"))...
Click to read more »Module:Complex date
Sabtu, 2020-05-16 02:21:05precision2, state.era2) if (not d1) or (not d2) then return '' end -- find date with lower precision in common to both dates local cd local year1...
Click to read more »Module:Sandbox/Ste1la/Names
Jumat, 2018-11-30 03:24:58any appendages if name:find("Jr") or name:find("Jr.") or name:find("Sr") or name:find("Sr.") or name:find("II") or name:find("III") then local i...
Click to read more »Module:Currency
Sabtu, 2026-04-18 11:04:04local digits = {}; local decimals; local sign = ''; local _; if amount:find ('[^%-−%d%.,]') then -- anything but sign, digits, decimal points...
Click to read more »Module:Date table sorting/sandbox
Rabu, 2019-07-10 21:25:21parseDayOrMonth(s) if s:find('^%d%d?$') then return tonumber(s) end end local function parseYear(s) if s:find('^%d%d%d%d?$') then return...
Click to read more »Module:Ko-translit/clean
Sabtu, 2026-05-02 06:30:17local p = {} local m_utils = require('Module:Ko-utils') local find = mw.ustring.find local gsub_iterate = m_utils.gsub_iterate -- Initial input validations...
Click to read more »Module:Video game reviews
Jumat, 2025-08-22 22:53:34then local seen = {} for k in pairs(args) do local splitPos = string.find(k, '_') if splitPos then local halfarg = string.sub(k, 1, splitPos...
Click to read more »Module:Excerpt/sandbox
Jumat, 2026-03-06 19:54:40start = e + 1 s, e = mw.ustring.find( excerpt, '%s*%b{}%s*', start ) until not s or s > start s, e = mw.ustring.find( excerpt, '%b()', start ) -- get...
Click to read more »Module:Category handler/sandbox
Minggu, 2020-05-17 21:35:33handler/blacklist') ) end end function CategoryHandler:isSuppressed() -- Find if categories are suppressed by either the arguments or by -- matching the...
Click to read more »Module:Item
Jumat, 2019-01-25 04:24:24ignore[key] then local _, _, paramKey = string.find(key, "^param (.*)") local _, _, importantKey = string.find(key, "^important (.*)") paramKey = paramKey...
Click to read more »Module:Clade/transclude
Jumat, 2025-07-11 22:40:18string.find(selectedTree, pattern2 ) then -- if a subtree that hasn't been substituted. --local i,j,target = string.find(value,...
Click to read more »Module:Selected recent additions/sandbox
Sabtu, 2019-03-09 14:28:15add added affirm affirmed include included on true yes y ' return string.find(affirmedWords, ' '..string.lower(val)..' ', 1, true ) and true or false end...
Click to read more »Module:Table template counter
Rabu, 2023-04-19 18:56:34content = titleObj:getContent() if not content then return nil end -- Find the wikitables on that page. local wikitables = {} do local iWikitable...
Click to read more »Module:Number table sorting/sandbox
Senin, 2019-06-10 02:39:48somewhat but completely broken at some point self.isFraction = (string.find(s, '/') ~= nil) if self.isFraction then error(string.format( "Fractions...
Click to read more »Module:Suppress categories
Rabu, 2025-08-13 07:59:36return content end -- Get the content to suppress categories from, and find -- whether the content has already been preprocessed. (If the -- module is...
Click to read more »Module:In lang/sandbox
Sabtu, 2023-07-22 13:11:35namespace) or list_cats then -- when in article space if lang:find ('error') then -- add error category (message provided by Module:Lang)...
Click to read more »Module:Naval Vessel Register URL/sandbox
Jumat, 2022-10-21 17:00:16there a group for the hull number? make_error_message (output, 'unable to find group: [\'', hull_prefix, '\'] in [[Module:Naval Vessel Register URL/data]]...
Click to read more »Module:Table template counter/sandbox
Senin, 2022-07-18 16:52:56content = titleObj:getContent() if not content then return nil end -- Find the wikitables on that page. local wikitables = {} do local iWikitable...
Click to read more »Module:Check isxn
Jumat, 2022-11-04 06:27:58return return_result (false, err_msg_supl_t.form); end if id:find ('^63[01]') then -- 630xxxxxxx and 631xxxxxxx are (apparently)...
Click to read more »Module:Weather/sandbox
Jumat, 2022-10-21 17:06:22length defaults to "13"') end -- Find C or F, but not both if string.find(inputParameter, "C") and string.find(inputParameter, "F") then error("Input...
Click to read more »Module:Tabular data/sandbox
Kamis, 2021-07-01 15:55:32Value to find in column | search_pattern = Pattern to find in column | search_column = Name of column to search in | search_value2 = Value to find in second...
Click to read more »Module:Indent
Rabu, 2025-08-13 08:17:33at 5, 9, 13, 17, etc., so repeat the -- text (indent - 1)/4 times and find the remainder. local reps = math.floor( (indent - 1) / 4 ) local...
Click to read more »Module:RfD close/sandbox
Selasa, 2023-04-11 09:40:48red rounded square.svg' find_count = find_count + 1 end if (parameter_lower:find('retarget') or parameter_lower:find('soft redirect'))then ...
Click to read more »Module:Wd/sandbox
Jumat, 2025-08-08 00:45:17a1 end local function split(str, del) local out = {} local i, j = str:find(del) if i and j then out[1] = str:sub(1, i - 1) out[2] = str:sub(j...
Click to read more »Module:Transclude random subpage
Kamis, 2020-11-05 08:40:36selected/featured articles, biogs etc if ((string.find(pages.subpage, "/[sS]elected") == -1) and (string.find(pages.subpage, "/[fF]eatured") == -1)) then ...
Click to read more »Module:Lang/documentor tool/sandbox
Jumat, 2025-04-11 14:14:34local private_t = {} for tag, lang in pairs (override_t) do if tag:find ('%-x%-') then table.insert (private_t, table.concat ({'\n|-\n|', lang...
Click to read more »Module:Taxonbar/sandbox
Rabu, 2025-12-17 19:42:44local link, returnVal = '', {} returnVal.isError = false if mw.ustring.find( val, '//' ) then link = val else if type(property) == 'number' and...
Click to read more »Module:String2/doc
Kamis, 2026-02-05 22:33:45pattern matching is needed to find river or River. The last example finds {{coord and {{Coord. The penultimate example finds a wiki-link. The Template:Findpagetext...
Click to read more »Module:Wikidata table
Kamis, 2026-02-12 20:56:00slink and label then if slink:lower() == label:lower() then if label:find("^%u") then -- match label's case lbl = slink:gsub("^(%l)", mw.ustring...
Click to read more »Module:Arbcom election banner/sandbox
Rabu, 2025-07-30 13:55:11tonumber(unixDate) -- Subtract the timestamp from the current unix timestamp to find the time left, and output that in a readable way. local secondsLeft = unixDate...
Click to read more »Module:Road data/strings/CAN/NB
Rabu, 2022-08-10 08:34:28orientation = "upright" } NB.NB = NB.Route for k, v in pairs(NB) do if k:find ("TCH") then v.shield = "NB %route% (TCH).svg" v.name = NB.Route.name...
Click to read more »Module:Roman/doc
Senin, 2023-08-21 07:47:13arithmetic expressions to a precision of 1/1728. Uses #expr: at line 122. Find the Roman numerals for the integer part of the number. If the number is not...
Click to read more »Module:Road data/strings/CAN/NS
Selasa, 2023-01-03 02:40:09%route%[dab|| (%dab%)|]", abbr = "Trunk %route%" } for k, v in pairs(NS) do if k:find ("TCH") then v.shield = "Nova Scotia Highway %route% (TCH).svg" v.shieldmain...
Click to read more »Module:Hatnote/doc
Kamis, 2024-12-26 03:59:22mHatnote.findNamespaceId('Lion') → 0 mHatnote.findNamespaceId('Category:Lions') → 14 mHatnote.findNamespaceId(':Category:Lions') → 14 mHatnote.find...
Click to read more »Module:Hatnote list/sandbox
Sabtu, 2023-11-11 06:01:37function searchDisp(haystack, needle) return string.find( string.sub(haystack, (string.find(haystack, '|') or 0) + 1), needle ) end -- Stringifies...
Click to read more »Module:SportsRankings/sandbox
Kamis, 2023-08-03 22:32:13= string.gsub( keyword, "INSERT_LAST_DATE", getDate("LAST")) if string.find(keyword, "INSERT_REFERENCE") then keyword = string.gsub( keyword, "INSERT_REFERENCE"...
Click to read more »Module:Dating/sandbox
Selasa, 2023-04-11 05:53:25end end if input:find ("%s%d%d%d%d%s") then yrs[k] = tonumber(string.sub(input, input:find ("%s%d%d%d%d%s")+1, input:find ("%s%d%d%d%d%s")+4))...
Click to read more »Module:Transclusion count
Selasa, 2025-08-12 05:36:46return(mw.loadData('Module:Transclusion_count/data/' .. (mw.ustring.find(index, "%a") and index or "other"))) end) if status then return_value...
Click to read more »Module:Chessboard mxn/sandbox
Rabu, 2026-05-27 11:27:45for a number. Can have multiple digits pstart, pend = srow:find("%d+", index) if pstart == index then piece =...
Click to read more »Module:Ko-translit
Rabu, 2025-11-26 04:57:46local p = {} local find = mw.ustring.find local gsub = mw.ustring.gsub local m_data = require('Module:Ko-translit/data') local m_utils = require('Module:Ko-utils')...
Click to read more »Module:Citation/CS1/testcases/anchor
Selasa, 2021-04-27 10:07:20= v end for k, v in pairs(t2) do t3[k] = v end return t3 end -- Finds the citeref in an expanded CS1/2 template. Takes a test_parameters -- table...
Click to read more »Module:Format TemplateData/sandbox
Jumat, 2025-11-14 09:11:27find() -- Find JSON data within page source (title) -- Returns string, or nil local s = Data.title:getContent() local i, j = s:find(...
Click to read more »Module:Video game series reviews/sandbox
Jumat, 2023-08-11 09:03:24all the arguments. for k, v in pairs(args) do if(string.find(k, "game%d+") or string.find(k, "qid%d+")) then local num = tonumber(string.match(k...
Click to read more »Module:Hatnote/testcases
Senin, 2026-03-09 22:46:37self:assertThrows(mHatnote.findNamespaceId, "bad argument #1 to 'findNamespaceId' (string expected, got number)", nil, 9) self:assertThrows(mHatnote.findNamespaceId...
Click to read more »Module:DYK queue formatting check
Sabtu, 2025-12-13 13:02:20((expandedLine:find("{{") and not wikitextLine:find("{{%(")) or (expandedLine:find("}}") and not wikitextLine:find("{{%)")) or (expandedLine:find("%[%[")...
Click to read more »Module:String/testcases
Kamis, 2022-04-07 13:49:37'}}', cases) end function p:test_find() self:preprocess_equals_many('{{#invoke:String/sandbox|find|', '}}', { {'', '0'}, {'source=', '0'}...
Click to read more »Module:WPSHIPS utilities/sandbox
Senin, 2025-12-29 14:36:53the line'. Starting with the least possible series of fragments (1) would find 'ship' and make 'of the line' part of the italicized name. Returns 0 if...
Click to read more »Module:Footnotes/anchor id list
Selasa, 2025-01-14 09:04:50local find_pattern = '%f[{]{{[^{]'; local tstart, tend = article_content:find (find_pattern); -- find the first template; do not find template...
Click to read more »Module:Sandbox/Melvintong1516/Names
Kamis, 2020-01-23 21:50:44enposofblank1, enposofblank2 = string.find(name, "(%s)%a+(%s)") if enposofbalnk1 == nil then enposofblank1 = string.find(name, "(%s)%a+") end if enposofblank2...
Click to read more »Module:Sidebar games events/sandbox
Selasa, 2025-12-30 09:49:18tonumber(num)) end -- find number of columns if k:match('^results%d+%.(%d+)$') then cols = (2 > cols) and 2 or cols end -- find number of columns...
Click to read more »Module:Ancient Greek/typing
Kamis, 2020-01-09 04:14:10item2) -- non-letters after letters if item1:find("^%a$") ~= item2:find("^%a$") then return item1:find("^%a$") end local lower1, lower2 = item1:lower()...
Click to read more »Module:TrainingPages
Senin, 2023-04-03 04:47:58index=Project:Training/For students/Editing module index }} -- Used like this to find the next page after a specified page: --{{#invoke:TrainingPages| next_page...
Click to read more »Module:Taxon authority
Sabtu, 2019-07-06 00:50:43-- if the passed authority contains the authority name if string.find( name, k, 1, false) then -- plain=true as don't want to treat . as...
Click to read more »Module:Ns has subpages
Sabtu, 2024-02-17 11:01:43{{NAMESPACE}} in most cases. if not nsTable and type(ns) == 'string' and not ns:find('[<>|%[%]{}]') then local nsStripped = ns:gsub('^[_%s]*:', '') nsStripped...
Click to read more »Module:Parsedate
Kamis, 2013-08-29 04:24:06"%w+") do -- catch numbers like '27th' local found1, found2 = string.find(w, "%d+") if found1 then w = string.sub(w, found1, found2) end --...
Click to read more »Module:Portal bar/sandbox
Jumat, 2025-09-12 20:21:02called from a sandbox local isSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) local sandbox = isSandbox and '/sandbox' or '' local...
Click to read more »Module:NUMBEROFSECTIONS
Minggu, 2023-02-05 04:15:26we have needles to look for for index, needle in ipairs(needles) do -- find them all in our haystack for m in string.gmatch(haystack, needle) do ...
Click to read more »Module:Sandbox/trappist the monk/MSGJ regex
Minggu, 2022-11-13 02:00:56test string that I think matches the regex local part1, part2; if target:find ('_res', 1, true) then part1, part2 = target:match ('([^_]+)(_res.+)');...
Click to read more »Module:Road data/strings/USA/CA
Minggu, 2024-11-24 11:30:15pairs(CA) do if k:find ("^I%-") then v.shield = CA.I.shield v.shieldmain = CA.I.shieldmain end end for k, v in pairs(CA) do if k:find ("^I") then v...
Click to read more »Module:Television episode short description
Minggu, 2025-10-19 06:32:02Search for the TV series name in the article name disambiguation. if (string.find(disambiguation, tvSeriesName)) then return true end return false end...
Click to read more »Module:Road data/strings/USA/AZ
Selasa, 2025-05-20 06:27:011957"].shield = "I-%route% (AZ 1957).svg" for k, v in pairs(AZ) do if k:find ("^I") then v.link = AZ.I.link end end AZ.BL.link = "Interstate %route%...
Click to read more »Module:Dating
Sabtu, 2017-12-30 01:43:11end end if input:find ("%s%d%d%d%d%s") then yrs[k] = tonumber(string.sub(input, input:find ("%s%d%d%d%d%s")+1, input:find ("%s%d%d%d%d%s")+4))...
Click to read more »Module:Sandbox/Ajuanca/Dates
Jumat, 2020-01-24 00:43:35"oct", "nov", "dec"} if(strInput:find("(%a+)"))then for w, month in ipairs(months)do if(strInput:lower():find(month)~= nil)then return tonumber(w)...
Click to read more »Module:SortName/sandbox
Selasa, 2023-04-11 10:31:17if string.find( pagetitle, ' ' .. parts[i] .. ' ' ) ~= nil then text1 = string.sub( pagetitle, string.find( pagetitle, ' ' ...
Click to read more »Module:FeaturedTopicSum/doc
Jumat, 2024-08-30 04:19:08Module:FeaturedTopicSum is used to find out whether a topic is good or featured. Each call to a new topic, using any of the functions in this module, will...
Click to read more »Module:Sandbox/Module:Location map/data/Karpathia/doc
Kamis, 2025-07-17 10:34:02projection map of [[Lua error in Module:Location_map at line 42: Unable to find the specified location map definition: "Module:Location map/data/data" does...
Click to read more »Module:Infobox mapframe/sandbox
Senin, 2026-02-02 23:39:37the zoom local separator = (mw.ustring.find(config.geomask, "###", 0, true ) and "###") or (mw.ustring.find(config.geomask, ";", 0, true ) and ";")...
Click to read more »Module:Age/sandbox
Selasa, 2025-12-09 10:52:00module or its sandbox. if not _Date then local sandbox = frame:getTitle():find(mtext['txt-sandbox'], 1, true) and ('/' .. mtext['txt-sandbox']) or '' ...
Click to read more »Module:Convert/tester
Selasa, 2026-03-03 13:50:15first <= #text do local last, heading first, last, heading = text:find('==+[\t ]*([^\n]-)[\t ]*==+[\t\r ]*\n', first) if first then if...
Click to read more »Module:Lang/tag from name/sandbox
Rabu, 2024-10-02 01:54:39string: ["yaka"] = '', later we find "iyx" and add it to rev_lang_table{}. We look in dedabbed_names_list{} and find ["yaka"] has been unset to empty...
Click to read more »Module:Ko-utils/sandbox
Senin, 2025-09-08 10:17:20local p = {} local find = mw.ustring.find local hanja_ranges = "[〇㐀-䶿一-鿿﨎﨏﨑﨓﨔﨟﨡﨣﨤﨧-﨩𠀀-𪛟𪜀-𰀀-𲎯]" -- Decomposes Hangul into jamo (e.g. 한 (U+D55C)...
Click to read more »Module:Sandbox/Swpb/surname-sort
Kamis, 2019-01-17 00:40:45generational suffix suffix1_index = mw.ustring.find(fullname, ',? [JS]n?r%.?$') suffix2_index = mw.ustring.find(fullname, ' [IVX]+$') if type(suffix1_index)...
Click to read more »Module:Correct title categories
Senin, 2025-07-07 16:11:39== "/." then if title:find("%[") or title:find("%]") or title:find("<") or title:find(">") or title:find("{") or title:find("}") then return "[[Category:Restricted...
Click to read more »Module:Legislationuk
Jumat, 2026-02-13 02:25:37input, 1, mw.ustring.find( input, divider ) - 1) if mw.ustring.find( s, "=" ) then par = mw.ustring.sub( s, 1, mw.ustring.find( s, "=" ) - 1) ...
Click to read more »Module:Template link general/sandbox
Sabtu, 2026-02-07 00:02:18local nw = mw.text.nowiki local function addTemplate(s) local i, _ = s:find(':', 1, true) if i == nil then return 'Template:' .. s end local ns...
Click to read more »Module:Ko-utils
Selasa, 2026-01-06 11:16:01local p = {} local find = mw.ustring.find local hanja_ranges = "[〇㐀-䶿一-鿿﨎﨏﨑﨓﨔﨟﨡﨣﨤﨧-﨩𠀀-𪛟𪜀-𰀀-𲎯]" -- Iteratively applies gsub text replacements to...
Click to read more »Module:Sandbox/Hellknowz/Test
Senin, 2013-09-16 16:24:11'12th' '3rd' function seekNextElement() -- Profiler says mw.ustring.find is the bottleneck, probably because it's unicode; not sure how to improve...
Click to read more »Module:Sandbox/DePiep/uchar
Selasa, 2023-08-01 22:45:17return mw.text.decode( s ) end -- Format string in <code> tag / from m:str find word -- replaces whitespace by single nbsp ( keep untrimmed ws visible )...
Click to read more »Module:IPA
Jumat, 2024-12-27 17:23:34function multiFind(s, patterns, init) local i, j = mw.ustring.find(s, patterns[1], init) for n = 2, #patterns do local i2, j2 = mw.ustring.find(s, patterns[n]...
Click to read more »Module:Road data/strings/CAN/PE
Sabtu, 2021-09-25 14:10:46orientation = "upright" } PE.TCH = PE.PE for k, v in pairs(PE) do if k:find ("TCH") then v.shield = PE.PE.shield v.name = PE.PE.name v.link = PE...
Click to read more »