Search Results: Module:Str find word/sandbox/doc


Module:Str find word/doc
Sabtu, 2026-03-28 19:20:34

Implements 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...

Click to read more »
Module:Str rightc
Senin, 2026-06-22 19:27:17

require[[strict]] local p = {} function p._rightc(str, count, empty) str = mw.text.trim(str or '') if '' == str then return mw.text.trim(empty or '') end...

Click to read more »
Module:Str rightc/doc
Selasa, 2026-07-28 03:36:49

implements: {{str rightc}} but if |notemplate= is set to a non-empty string, arguments from the invocation can be used. {{#invoke:str...

Click to read more »
Module:String
Selasa, 2025-08-12 06:48:56

function str._getBoolean( boolean_str ) local boolean_value if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower() if boolean_str ==...

Click to read more »
Module:String/sandbox
Selasa, 2025-08-12 06:46:44

function str._getBoolean( boolean_str ) local boolean_value if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower() if boolean_str ==...

Click to read more »
Module:Str find word
Senin, 2023-04-03 07:35:55

require('strict') local p = {} local getArgs = require('Module:Arguments').getArgs local str = require('Module:String') local yesno = require('Module:Yesno') local defaultSep...

Click to read more »
Module:Ustring
Sabtu, 2024-02-17 11:51:51

local str_i = 1 while fargs['s' .. str_i] do fargsused['s' .. str_i] = true args[str_i] = fargs['s' .. str_i] str_i = str_i + 1 end...

Click to read more »
Module:String2
Sabtu, 2026-06-20 07:20:13

boolean_str ) local boolean_value; if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower(); if boolean_str ==...

Click to read more »
Module:AfC submission catcheck/sandbox
Senin, 2024-09-16 02:26:10

removeFalsePositives(str) if not str then return '' end str = mw.ustring.gsub(str, "<!--.--->", "") str = mw.ustring.gsub(str, "<nowiki>.-</nowiki>", "") str = mw...

Click to read more »
Module:AfC submission catcheck
Sabtu, 2024-12-07 13:51:02

removeFalsePositives(str) if not str then return '' end str = mw.ustring.gsub(str, "<!--.--->", "") str = mw.ustring.gsub(str, "<nowiki>.-</nowiki>", "") str = mw...

Click to read more »
Module:Citation/CS1/Utilities
Sabtu, 2026-08-08 20:56:45

(str) if not is_set (str) then return str end if str:sub (1, 1) == "'" then str = "<span></span>" .. str; end if str:sub (-1, -1) == "'" then str =...

Click to read more »
Module:String2/sandbox
Sabtu, 2026-07-04 18:24:56

boolean_str ) local boolean_value; if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower(); if boolean_str ==...

Click to read more »
Module:DecodeEncode
Selasa, 2023-04-18 03:18:54

'string' then boolean_str = boolean_str:lower() if boolean_str == 'true' or boolean_str == 'yes' or boolean_str == '1' then boolean_value = true...

Click to read more »
Module:Citation/CS1/Utilities/sandbox
Jumat, 2026-07-31 23:28:56

(str) if not is_set (str) then return str end if str:sub (1, 1) == "'" then str = "<span></span>" .. str; end if str:sub (-1, -1) == "'" then str =...

Click to read more »
Module:TaxonItalics
Selasa, 2021-10-05 13:34:24

"(" str = mw.ustring.sub(str,2,mw.ustring.len(str)) elseif mw.ustring.sub(str,1,1) == '"' then isQuoted = true result = '"' str = mw.ustring...

Click to read more »
Module:TwitterSnowflake
Rabu, 2023-01-25 06:20:20

1288834974 local id_str = frame.args.id_str if type(id_str) ~= "string" then error("bad argument #1 (expected string, got " .. type(id_str) .. ")", 2) end...

Click to read more »
Module:Unicode data
Selasa, 2025-09-16 09:46:49

end function p.is_Latin(str) require "libraryUtil".checkType("get_best_script", 1, str, "string") str = mw.text.decode(str, true) -- Search for the...

Click to read more »
Module:Ustring/sandbox
Jumat, 2022-10-21 16:58:52

local str_i = 1 while fargs['s' .. str_i] do fargsused['s' .. str_i] = true args[str_i] = fargs['s' .. str_i] str_i = str_i + 1 end...

Click to read more »
Module:Str find word/sandbox
Jumat, 2023-04-21 15:19:06

sDecodeTrim( str ) if str == nil then return nil end str = mw.ustring.gsub( strDeEnCode._decode( str ), '%s+' , ' ' ) return mw.text.trim( str ) end --...

Click to read more »
Module:TaxonItalics/sandbox
Rabu, 2025-05-21 17:40:51

"(" str = mw.ustring.sub(str,2,mw.ustring.len(str)) elseif mw.ustring.sub(str,1,1) == '"' then isQuoted = true result = '"' str = mw.ustring...

Click to read more »
Module:Attached KML
Jumat, 2026-04-17 01:32:34

wikipedia.org/wiki/Mall:KML inline_format = "box", }, -- Other strings str = { inline = "inline", -- used with display parameter: (|display=inline)...

Click to read more »
Module:Bot task
Senin, 2023-07-17 04:36:46

elseif args.title then str = str .. string.format("'''Page''': [[%s]] ", args.title) elseif args.namespace then str = str .. string.format("In namespace:...

Click to read more »
Module:TwitterSnowflake/sandbox
Minggu, 2025-08-17 23:56:37

1288834974 local id_str = frame.args.id_str if type(id_str) ~= "string" then error("bad argument #1 (expected string, got " .. type(id_str) .. ")", 2) end...

Click to read more »
Module:GetParameters
Rabu, 2026-07-08 23:52:28

boolean_str ) local boolean_value; if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower(); if boolean_str ==...

Click to read more »
Module:Footnotes
Jumat, 2026-07-03 07:30:32

has_accept_as_written() if not utilities.is_set (str) then return str; end local accept; -- Boolean str = str:gsub ('&[nm]dash;', {['&ndash;'] = '–', ['&mdash;']...

Click to read more »
Module:TwitterSnowflake/testcases
Senin, 2021-01-18 22:51:20

self:preprocess_equals('{{#invoke:TwitterSnowflake | snowflakeToDate | id_str = 1345021162959503360}}', 'January 1, 2021') end function...

Click to read more »
Module:Sandbox/trappist the monk/math
Senin, 2022-10-24 04:04:26

text for math_str in str:gmatch (pattern) do -- walk through the text and for each $-delimited math text math_str = math_str:gsub (pattern...

Click to read more »
Module:Row numbers
Minggu, 2023-03-19 01:00:13

tbl_str = mw.text.unstripNoWiki (args[1]); -- undo <nowiki>'s escaping of the wikitext (mw.text.decode (tbl_str); is too aggressive) tbl_str = tbl_str:gsub('&lt;'...

Click to read more »
Module:Sandbox/Urban Versis 32/WEmoji
Kamis, 2022-06-16 09:38:47

local str = "[[File:Wikipedia-logo-v2.svg|24px]]" return str end p.grin = function(frame) local str = "[[File:Twemoji 1f600.svg|24px]]" return str end...

Click to read more »
Module:Sandbox/Matroc/Testurlencode
Minggu, 2013-07-14 07:22:54

a_str = a_str:gsub ("+", " ") a_str = a_str:gsub ("%%(%x%x)", function(h) return string.char(tonumber(h,16)) end) a_str = string...

Click to read more »
Module:Xiangqi-position
Jumat, 2026-01-30 23:34:20

----箭頭的底盤 拿來旋轉方向使用 str = str .. '<div style="z-index:108;position:absolute;' str = str .. 'left:' .. (t[1] - 1) * size .. 'px;' str = str .. 'top:' .. t[2]...

Click to read more »
Module:Sandbox/Quantum10000
Selasa, 2023-06-20 02:25:41

local str = frame.args.input -- nu-n=>n, ku-k=>k if string.len(str) > 3 and string.sub(str, 1, 1) == string.sub(str, 4, 4) then if string.sub(str, 2...

Click to read more »
Module:Sandbox/trappist the monk/check digit
Senin, 2022-10-24 04:02:37

'</span>' end local function is_valid_isxn_13 (isxn_str) local temp=0; isxn_str = { isxn_str:byte(1, 13) }; -- make a table of byte values...

Click to read more »
Module:Check isxn
Jumat, 2022-11-04 06:27:58

characters. ]] local function is_valid_isxn (isxn_str, len) local temp = 0; isxn_str = { isxn_str:byte(1, len) }; -- make a table of byte values '0'...

Click to read more »
Module:Convert to eastern arabic numerals
Selasa, 2023-12-05 21:14:18

return '' end local num_str = tostring(args[1]) local new_str, _ = string.gsub(num_str, '[0-9.]', conversion_table) return new_str end function p.convert(frame)...

Click to read more »
Module:AfC submission catcheck/sandbox2
Sabtu, 2021-11-13 08:50:31

removeFalsePositives(str) if not str then return '' end str = mw.ustring.gsub(str, "<!--.--->", "") str = mw.ustring.gsub(str, "<nowiki>.-</nowiki>", "") str = mw...

Click to read more »
Module:Sandbox/Animal lover 666/position data
Rabu, 2021-01-06 14:11:03

str=str.."|-\n|"..args[i] if args[i]~=args[i+2] then str=str.."-" if args[i+2] then str=str..args[i+2] end end str=str....

Click to read more »
Module:NUMBEROFSECTIONS
Minggu, 2023-02-05 04:15:26

com/a/14899740/1832568 local function unescape(str) str = string.gsub(str, '&#(%d+);', string.char) str = string.gsub(str, '&#x(%d+);', function(n) return string...

Click to read more »
Module:Sandbox/TheTruthCreator/Sample1
Selasa, 2016-07-12 04:38:29

"8","9"} local str = "" while not (n == 0) do local m = n % 10 str = digits[m + 1] .. str n = (n - m) / 10 end return str end function p.isPrime(num)...

Click to read more »
Module:US elections imagemap/utils
Selasa, 2021-09-28 10:54:04

local p = {} function p.stripspaces(str) return str:gsub("^%s*(.-)%s*$", "%1") -- trim spaces end function p.split(str, sep) -- split string by separator...

Click to read more »
Module:Sandbox/trappist the monk/strcmp
Sabtu, 2019-06-08 01:05:21

function strcmp (str_a, str_b) local function strcmp (frame) local str_a = frame.args[1]; local str_b = frame.args[2]; str_a = str_a:gsub...

Click to read more »
Module:LCCN
Rabu, 2025-06-25 07:20:44

str end local function padright(str, ...) str = tostring(str) if 1 > select('#', ...) then return str end local strlen = mw.ustring.len(str) ...

Click to read more »
Module:Check isxn/sandbox
Kamis, 2023-04-13 08:54:14

characters. ]] local function is_valid_isxn (isxn_str, len) local temp = 0; isxn_str = { isxn_str:byte(1, len) }; -- make a table of byte values '0'...

Click to read more »
Module:WikitextParser/sandbox
Senin, 2026-07-13 20:19:45

User:Aidan9382, et al. local str_find, str_sub, str_match = string.find, string.sub, string.match local str_gsub, str_gmatch, str_rep = string.gsub, string...

Click to read more »
Module:Sandbox/PiperMcCorkle/Linguistique
Rabu, 2022-05-11 10:16:05

ustring.sub(str, 1, 1))) end end function p.inparentheses(str, lang, space) if (not str) or str == '' then return str end str = '(' .. str .. ')' if...

Click to read more »
Module:Sandbox/User:Ssola
Minggu, 2016-01-31 01:32:35

source_str = new_args['source'] or ''; local pattern = new_args['pattern'] or ''; if source_str == '' or pattern == '' then return source_str; end...

Click to read more »
Module:WikitextParser
Minggu, 2026-07-12 04:23:40

License: CC-BY-SA-4.0 local str_find, str_sub, str_match = string.find, string.sub, string.match local str_gsub, str_gmatch, str_rep = string.gsub, string...

Click to read more »
Module:Wd
Rabu, 2025-07-23 02:53:47

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end local...

Click to read more »
Module:Sandbox/WikiJunkie
Jumat, 2019-04-12 21:31:54

for str in string.gmatch(names,"([^"..separator.."]+)") do if str ~= nil and str ~= "" then str = string.gsub(str,"^%s+","") str = string...

Click to read more »
Module:Attached KML/sandbox
Jumat, 2026-04-17 02:06:27

wikipedia.org/wiki/Mall:KML inline_format = "box", }, -- Other strings str = { inline = "inline", -- used with display parameter: (|display=inline)...

Click to read more »
Module:TwitterSnowflake/doc
Jumat, 2025-11-21 10:03:05

parameter: |id_str=, which must be the snowflake ID of the tweet. For example, 1345021162959503360. {{#invoke:TwitterSnowflake|snowflakeToDate|id_str=1345021162959503360}}...

Click to read more »
Module:Sandbox/Diriector Doc/Number format
Rabu, 2021-03-03 22:13:07

local p = {} function p.formatNum(frame) local str = string.sub(frame.args[1], #frame.args[1] - 2, #frame.args[1]) local temp = " " .. string.sub(frame...

Click to read more »
Module:Sandbox/SeaDragon1/Drafts/Pad
Sabtu, 2026-02-07 02:34:59

require("Module:Arguments"); local function padStart(str, maxLength, fillString) s = "" for i = 0, maxLength - #str, 1 do f = ""; for j = 0, #fill, 1 do ...

Click to read more »
Module:String/doc
Kamis, 2026-07-02 23:09:52

module. Counts disjoint matches only. Usage: {{#invoke:String|count|source_str|pattern_string|plain_flag}} OR {{#invoke:String|count|source= source_string...

Click to read more »
Module:UnitTests
Senin, 2026-04-27 06:17:38

add_diff_highlighting(str) if mw.ustring.find(str, "%s") then return '<span style="background-color: var(--wikt-palette-red-4, pink);">' .. string.gsub(str, " "...

Click to read more »
Module:Sandbox/TiiJ7/StringBuilder
Rabu, 2013-09-11 20:06:31

-- Appends a string function StringBuilder:append(str) if str then self:_addString(str,self._buffer) end return self -- Method chaining...

Click to read more »
Module:Sandbox/ויקיג'אנקי
Rabu, 2018-08-15 05:18:11

for str in string.gmatch(names,"([^"..separator.."]+)") do if str ~= nil and str ~= "" then str = string.gsub(str,"^%s+","") str = string...

Click to read more »
Module:Unicode data/sandbox
Sabtu, 2025-08-02 23:33:56

end function p.is_Latin(str) require "libraryUtil".checkType("get_best_script", 1, str, "string") str = mw.text.decode(str, true) -- Search for the...

Click to read more »
Module:Row numbers/sandbox
Jumat, 2022-10-21 17:05:10

tbl_str = mw.text.unstripNoWiki (args[1]); -- undo <nowiki>'s escaping of the wikitext (mw.text.decode (tbl_str); is too aggressive) tbl_str = tbl_str:gsub('&lt;'...

Click to read more »
Module:Sandbox/Deimos18/Dates
Rabu, 2018-11-14 05:52:31

{"ce", "bc", "bce", "ad"} function flUpper (str) local str = str or "" local l_check = string.match(str, "(%a+)") -- To take the first letter-y part...

Click to read more »
Module:US elections imagemap/utils/doc
Rabu, 2021-05-26 12:50:31

utilities for Module:US elections imagemap. stripspaces(str) strips spaces from str. split(str, sep) split str into a table of strings at each sep. Unlike many...

Click to read more »
Module:Footnotes/sandbox
Jumat, 2025-05-16 04:41:13

has_accept_as_written() if not utilities.is_set (str) then return str; end local accept; -- Boolean str = str:gsub ('&[nm]dash;', {['&ndash;'] = '–', ['&mdash;']...

Click to read more »
Module:Sandbox/Deimos18
Selasa, 2018-11-06 04:55:43

function(frame) local str = frame.args.words or "" if (str == "") then out = string.sub(str,1) else local l_check = string.match(str, "(%a+)") -- To take...

Click to read more »
Module:Sandbox/Ahecht/wikibase
Kamis, 2025-05-22 21:28:01

local args = {} local str_i = 1 while fargs['s' .. str_i] do args[str_i] = fargs['s' .. str_i] str_i = str_i + 1 end for i, v in...

Click to read more »
Module:Article by Quality and Importance
Jumat, 2022-10-21 14:03:31

queryStr = '%?quality=' .. quality .. '%-Class' queryStr = queryStr .. (importance ~= '' and '&' or '') else queryStr = importance...

Click to read more »
Module:Person date/sandbox
Minggu, 2025-12-21 23:18:29

check_for_invalid_date(str) return mw.ustring.match(str, '^%?') or mw.ustring.match(str, '^%d%d%?') or mw.ustring.match(str, '^[Uu]nk') end local function...

Click to read more »
Module:SimpleDebug
Selasa, 2024-10-29 20:50:20

for i = 1, #arg do if str ~= '' then str = str..vep end str = str..varx(arg[i]) end end return str end end --v function p...

Click to read more »
Module:Person date
Sabtu, 2025-12-06 14:51:53

check_for_invalid_date(str) return mw.ustring.match(str, '^%?') or mw.ustring.match(str, '^%d%d%?') or mw.ustring.match(str, '^[Uu]nk') end local function...

Click to read more »
Module:Format ISBN
Senin, 2025-09-29 01:00:37

<isbn_str> else ]] local function _format_isbn (isbn_str, show_err_msg, separator, output_format, template_name) if (not isbn_str) or ('' == isbn_str) then...

Click to read more »
Module:Sandbox/Can I Log In
Sabtu, 2020-06-20 01:11:55

str = str:gsub("+", "") str = string.gsub(str, "+", "")...

Click to read more »
Module:Format ISBN/sandbox
Sabtu, 2023-04-29 06:17:16

<isbn_str> else ]] local function _format_isbn (isbn_str, show_err_msg, separator, output_format, template_name) if (not isbn_str) or ('' == isbn_str) then...

Click to read more »
Module:Sandbox/Anirudh23042003
Minggu, 2019-10-13 20:18:56

str = "" str = str .. (title and title.text or '<span class="error">nil</span>') if exst == 1 then str = str .. " exists and" else str = str ...

Click to read more »
Module:Sandbox/Lemondoge/prevaluate
Jumat, 2023-04-14 06:51:54

input end end local function doProcessing(str) str = str:sub(3, -3) local testity local j = str:gsub("%{%b{}%}", recurseInner):match("#invoke:"...

Click to read more »
Module:Sandbox/Matthiaspaul/Citation/CS1/Utilities
Selasa, 2020-06-16 10:15:41

safe_for_italics( str ) if not is_set(str) then return str; else if str:sub(1,1) == "'" then str = "<span></span>" .. str; end if str:sub(-1,-1) ==...

Click to read more »
Module:Module sandbox/sandbox
Rabu, 2024-04-17 20:13:39

wikipedia.org/wiki/Mall:KML inline_format = "box", }, -- Other strings str = { inline = "inline", -- used with display parameter: (|display=inline)...

Click to read more »
Module:Sandbox/dxa-kly/Dates
Minggu, 2018-11-11 13:46:22

d_in_m then return 1 end end function p.era_try( str, ptn, idx ) for i = 1, #eras do values = {str:match(ptn .. " (" .. eras[i] .. ")")} for j...

Click to read more »
Module:Check height
Kamis, 2025-12-25 00:01:09

optional decimal) local minStr, maxStr = rangeStr:match('^(%d+%.%d+)%-(%d+%.%d+)$') if not minStr or not maxStr then return DEFAULT_FT_MIN...

Click to read more »
Module:Sandbox/Peter coxhead/Tests
Senin, 2022-10-24 04:11:46

local str = frame.args[1] or "" -- first clean up the name str = mw.ustring.gsub(str, "%s+", " ") str = mw.ustring.gsub(str, "'''", "") str =...

Click to read more »
Module:Sandbox/Cyborg Coder
Rabu, 2018-11-28 13:02:52

local str = txt if (ttlobj.exists) then str = str .. " exists" else str = str .. " does not exist" end if (ttlobj.isRedirect) then str = str .. " and...

Click to read more »
Module:Sandbox/Zaffrecrb/gloss
Kamis, 2018-11-15 07:23:57

= {} function split(str, pat) local t = {n=0} local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find(fpat, 1) while...

Click to read more »
Module:Sandbox/Bradv/Case
Sabtu, 2020-12-05 13:25:56

-)==' for str in gmatch(fd, re) do if find(str, '^%s*Enforcement') then --ignore else if find(str, '^=') then s = trim(sub(str, 2)) table...

Click to read more »
Module:Sandbox/Gadget850/Echo
Rabu, 2014-12-17 06:01:07

local str = {} --------------------------------------------------- -- Function: echo -- -- This function returns the contents of the target string...

Click to read more »
Module:EFloras/documentation functions
Rabu, 2019-02-20 04:43:36

{} local output_mt = {} function output_mt:insert(str) self.n = self.n + 1 self[self.n] = str end -- also in [[Module:Unicode data/documentation...

Click to read more »
Module:Internet Archive
Jumat, 2026-05-01 13:57:12

function p.ia_url_encode(str) if (str) then str = mw.ustring.gsub (str, "\n", "\r\n") str = mw.ustring.gsub (str, "([^%w %-%_%.%~])", ...

Click to read more »
Module:DecodeEncode/sandbox
Selasa, 2023-03-21 22:03:22

'string' then boolean_str = boolean_str:lower() if boolean_str == 'true' or boolean_str == 'yes' or boolean_str == '1' then boolean_value = true...

Click to read more »
Module:Sandbox/SeaDragon1/Drafts/Pad/doc
Sabtu, 2026-02-07 02:44:29

Used in User:SeaDragon1/sandbox/Drafts/Templates/Str pad. Scope: local. Parameters: str, maxLength, fillString. Returns: String. Description: Emulates...

Click to read more »
Module:FillDate
Kamis, 2024-04-11 22:36:06

main(frame) local str = frame.args[1] -- "2023" → "1 January 2023" if string.match(str, '^%d%d%d%d$') then return '1 January ' .. str; -- "March 2023"...

Click to read more »
Module:Sandbox/Ajuanca/
Rabu, 2019-12-25 23:51:46

then str = str .. " It is warm." elseif cels < 9 then str = str .. " It is cold." else str = str .. " It isn't neither warm nor cold." end return str end...

Click to read more »
Module:Convert to eastern arabic numerals/sandbox
Kamis, 2023-04-13 03:13:16

null" end local num_str = tostring(args[1]) local new_str = string.gsub(num_str, "[0-9.]", CONVERSION_TABLE) return new_str end function p.convert(frame)...

Click to read more »
Module:Sandbox/Gpmat/test
Sabtu, 2020-09-12 16:44:28

for i=1,count do str = str .. "!" .. args[i] if i~=count then str = str .. "!" end end str = str .. "\n|}" return str end function p.main(frame)...

Click to read more »
Module:IsDateValid
Senin, 2020-11-09 14:11:22

function p.main(frame) local str = getArgs(frame)[1] return p._main(str) end function p._main(str) if (Date(str) == nil) then return 'Invalid'...

Click to read more »
Module:ArrayList
Senin, 2025-02-03 02:13:56

the delimiter for pattern matching local function escapePattern(str) return str:gsub("([%^%$%(%)%%%.%[%]%*%+%?%-])", "%%%1") end -- Main function...

Click to read more »
Module:Vgrtbl
Sabtu, 2021-06-12 23:15:45

looksLikeYear(str) local success, result = pcall(lang.formatDate, lang, 'Y', '1-1-' .. str) return success and tonumber(result) == tonumber(str) end function...

Click to read more »
Module:Sandbox/Rockingerser
Minggu, 2023-03-26 03:27:01

"x", "y", "z", " ", } local str = "" for i = 0, 1000 do str = str .. letters[math.random(#letters)] end return str end return p...

Click to read more »
Module:Cite Talmud
Selasa, 2023-12-05 11:46:17

or '2a', ' ', '_') end str = '[' .. url .. ' ' .. tractate .. ' ' .. ( daf or '' ) .. ']' if not nobook then str = '[[Talmud]], <abbr title="'...

Click to read more »
Module:Sandbox/HenryLi/Article
Jumat, 2026-03-13 05:12:31

str = table.concat(parts) -- 清理多餘零 str = mw.ustring.gsub(str,"零+","零") str = mw.ustring.gsub(str,"零$","") -- 特殊處理十位 10-19 str =...

Click to read more »
Module:CallAssert
Rabu, 2019-03-13 19:54:41

gsub end local str = tostring(value) if type(value) == 'table' and str ~= 'table' then return '{' .. str .. '}' end return str end local function...

Click to read more »
Module:Sandbox/Luis150902/Unicode
Rabu, 2015-09-30 23:00:27

function p._main(sz) local str = "" local i = 0 for i=32,sz,1 do str = str .. mw.ustring.char(i) end return str end function p.char(frame)...

Click to read more »
Module:Sandbox/MJL/CS1/Utilities
Sabtu, 2021-09-04 01:07:29

<str> is wholly wrapped in accept-as-written markup, return <str> without markup and true; return <str> and false else with allow_empty = false, <str>...

Click to read more »
Module:Internet Archive/sandbox
Kamis, 2026-05-14 09:50:38

function p.ia_url_encode(str) if (str) then str = mw.ustring.gsub (str, "\n", "\r\n") str = mw.ustring.gsub (str, "([^%w %-%_%.%~])", ...

Click to read more »
Module:Sandbox/Erutuon/author citation
Sabtu, 2019-07-06 02:15:03

= {} local function advance_pos_if_starts_with(str, pattern, pos) local i, j = mw.ustring.find(str, pattern, pos) if i == pos and j >= i then return...

Click to read more »
Module:Sandbox/trappist the monk/bob
Kamis, 2024-07-11 22:20:39

hyphenated version str = str:gsub ('(%a)url', '%1-url'); -- archive, dead, chapter, etc urls to hyphenated versions str = str:gsub ('|[%a%-]+=...

Click to read more »
Module:Wd/sandbox
Selasa, 2026-08-04 23:21:51

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end local...

Click to read more »
Module:Database report/facade
Kamis, 2026-01-15 20:24:20

local function str_split(inputstr, sep) local t = {} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do table.insert(t, str) end ...

Click to read more »
Module:UnitTests/sandbox2
Jumat, 2014-04-04 21:39:19

nowiki) and '</nowiki>' or '' local actual_str = val_to_str(actual) local expected_str = val_to_str(expected) local differs_at = self.differs_at...

Click to read more »
Module:Item
Jumat, 2019-01-25 04:24:24

escape(str) return str:gsub("[|\\]", function (c) return string.format("\\%03d", c:byte()) end) end local function unescape(str) return str:gsub("\\(%d%d%d)"...

Click to read more »
Module:Weather box/row
Minggu, 2023-12-10 12:26:45

local val, str, precision if type(v) == 'string' then if v == 'trace' then val, str, precision = 0, 'trace', 0 else val, str = math_mod...

Click to read more »
Module:Sandbox/Cousteau/strsubst
Senin, 2018-04-16 06:35:01

closest match local str = frame.args[1] local res = '' local isfirst = true for i = 1,#str do local c = str:sub(i,i) -- get i-th...

Click to read more »
Module:Sandbox/pietrasagh/sometest
Rabu, 2020-03-25 11:57:32

"my_object". local str = "Hello World!" --Declare a local variable and set it equal to mw.log(str) return str --This tells us to quit...

Click to read more »
Module:Object size
Sabtu, 2026-01-31 01:00:25

local function replace_all_but_last(str, pattern, replacement) local last_occurrence_start, last_occurrence_end = str:find(pattern, 1, true) -- Find the...

Click to read more »
Module:Weather box/row/sandbox
Kamis, 2023-12-07 12:26:10

local val, str, precision if type(v) == 'string' then if v == 'trace' then val, str, precision = 0, 'trace', 0 else val, str = math_mod...

Click to read more »
Module:Sandbox/Artbarte/Dates
Sabtu, 2018-11-10 02:42:17

string | returns integer of month OR nil function parseMonth(str) str = string.lower(str) local months = {{"January","jan"}, {"February","feb"}...

Click to read more »
Module:Sandbox/Daimona Eaytoy/FontToSpan
Kamis, 2018-01-25 20:28:17

string.match(str, "<font[^>]+>%[http[^%] ]+]<%/font>") or string.match(str, "<font[^>]+>%[\{\{fullurl[^%] ]+]<%/font>") then return str; --solo link...

Click to read more »
Module:Link with country/sandbox
Selasa, 2024-05-21 17:27:14

s:match '^%s*(.*)' end local function split_with_comma(str) local fields = {} for field in str:gmatch('([^,]+)') do fields[#fields + 1] =...

Click to read more »
Module:Class
Senin, 2025-06-02 19:35:38

function trim(str) --Trims strings, passes through non-strings without modification return (type(str) == 'string') and mw.text.trim(str) or str end local...

Click to read more »
Module:Sports table/Chess
Minggu, 2022-07-03 01:42:37

match(matchrow_str, '^([^,]*),?') end local match_str = Args[prefix..'match_' .. ti .. '_' .. tj] or '' local game_count = 1 while match_str ~= ''...

Click to read more »
Module:Sandbox/Gpmat/test2
Minggu, 2020-07-12 14:35:40

str if ritiro == nil then ritiro = 0 end if max[ritiro]-gare[anno] ~= 0 then str = "||width=3%| " for i=2,(max[ritiro]-gare[anno]) do str = str ...

Click to read more »
Module:Sandbox/Erutuon/UTF-8
Sabtu, 2018-07-07 01:58:43

table. local function iterBytes(str, func) local out = {} for i = 1, #str do table.insert(out, func(string.byte(str, i))) end return out end local...

Click to read more »
Module:User:Morwen/Infobox legislature helper
Selasa, 2026-06-09 06:39:30

local function unescape(str) return str:gsub("\\(%d%d%d)", function (d) return string.char(d) end) end local function unpack(str) local result = {}...

Click to read more »
Module:Sandbox/Ajuanca/Dates
Jumat, 2020-01-24 00:43:35

str = str .. completeMonths[myDate.month] .. " " .. myDate.day .. ", " .. myDate.year elseif(outputFormat=="iso")then str = str .. myDate...

Click to read more »
Module:Sandbox/User:Waddie96
Minggu, 2025-10-05 11:15:48

local p = {} -- Mapping of string inputs to boolean values local STR_BOOL = { ["yes"] = true, ["y"] = true, ["true"] = true, ["t"] = true...

Click to read more »
Module:Sandbox/Liangent/zhwiki/Module:Citation/CS1
Sabtu, 2014-06-28 08:20:06

is_set(str) then return str; else if str:sub(1,1) == "'" then str = "<span />" .. str; end if str:sub(-1,-1) == "'" then str =...

Click to read more »
Module:Sandbox/WikipediaNeko/RandomImage
Minggu, 2023-01-22 06:05:41

local ret = {} ret.test = function(str) return "Data: " .. str.args[1] end return ret...

Click to read more »
Module:Sports series/sandbox
Rabu, 2025-10-15 23:42:21

function cleanTeam(str, defaultName) if str and str ~= "" then str = str:gsub('<sup.->.-</sup>', '') str = str:gsub("</?%w+[^>]*>"...

Click to read more »
Module:Clade/example
Kamis, 2024-12-05 19:01:01

isNoWikiStripMarker(str) return string.match (str, '^%s*\127[^\127]*UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QINU[^\127]*\127%s*$') end function firstToUpper(str) return...

Click to read more »
Module:Sandbox/Blippy1998
Sabtu, 2026-05-02 13:57:22

function split_once(str, delimiter) local pos = mw.ustring.find(str, delimiter, 1, true) if pos then return mw.ustring.sub(str, 1, pos - 1),...

Click to read more »
Module:Sandbox/Raph Williams65/CalculateAlchValue
Senin, 2025-04-07 00:35:59

function p.main(frame) local shop_value_str = frame.args[1] local shop_value = tonumber(shop_value_str) -- :expandTemplate -- Check he the conversion...

Click to read more »
Module:Sandbox/Ajuanca
Jumat, 2020-01-24 01:12:00

then str = str .. " It is warm." elseif cels < 9 then str = str .. " It is cold." else str = str .. " It isn't neither warm nor cold." end return str end...

Click to read more »
Module:Sandbox/SkSlick/Unsorted list
Rabu, 2025-07-09 03:16:30

json') end local function primary (str) return mw.ustring.match(str, '^%a+') end local function isNegative (str) local neg = { ['nil'] = true...

Click to read more »
Module:Link with country
Selasa, 2024-05-21 17:38:05

s:match '^%s*(.*)' end local function split_with_comma(str) local fields = {} for field in str:gmatch('([^,]+)') do fields[#fields + 1] =...

Click to read more »
Module:Word count
Selasa, 2026-05-26 00:29:36

@param {string} str Input string -- @param {number} limit Word count limit -- @return table with necessary outputs function p._main(str, limit) local...

Click to read more »
Module:Sandbox/AdrianoRutzWikidataIB
Senin, 2026-01-19 22:52:02

function wd.translate(str, rep1, rep2) str = databases.i18n[str] or str if rep1 and (type (rep1) == 'string') then str = str:gsub('$1', rep1) end...

Click to read more »
Module:Sandbox/WikiMacaroons/Testlua
Jumat, 2020-06-12 18:28:20

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Sandbox/Shah Jahan Ishaq
Kamis, 2018-11-22 23:34:36

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature =...

Click to read more »
Module:Example
Selasa, 2026-06-16 20:38:20

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Sandbox/Dominus
Senin, 2022-10-17 18:49:21

local p = {}; p.participants = function(frame) local str = frame.args.name return str end return p...

Click to read more »
Module:Sandbox/Tonina Zhelyazkova (WMDE)
Kamis, 2019-08-15 03:03:09

world' end function p.Hi(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Sports results/Chess/sandbox
Selasa, 2024-10-15 13:26:14

match(bgcol_str, '^([^%+]*)%+?') or '' bgcol_str = mw.ustring.gsub(bgcol_str, '^([^%+]*)%+?', '') or '' -- Remove bg_col from bgcol_str bg_col...

Click to read more »
Module:Sandbox/How222
Rabu, 2018-11-21 00:29:06

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:BronMeat/WordLinker
Selasa, 2026-02-10 15:59:58

(comma-separated words) local exclude_str = frame.args.exclude or '' local exclude = {} for word in string.gmatch(exclude_str, '[^,]+') do exclude[mw...

Click to read more »
Module:Sports series
Rabu, 2025-10-15 23:43:52

function cleanTeam(str, defaultName) if str and str ~= "" then str = str:gsub('<sup.->.-</sup>', '') str = str:gsub("</?%w+[^>]*>"...

Click to read more »
Module:Unindent
Jumat, 2026-01-30 22:31:11

{string} str Multiline string indented consistently. -- @returns {string} Unindented string. return function(str) str = str:gsub(' +$'...

Click to read more »
Module:Sandbox/Redlead07
Kamis, 2018-11-15 14:05:33

function(frame) local str = frame.args.words or "" local str = str:gsub("^%l", string.upper) local out = string.sub(str, 2) local out = str return out end...

Click to read more »
Module:Sandbox/Sunwoo Lim
Jumat, 2021-02-19 20:20:15

local p = {}; p.cadmium = function( frame ) local str = "Cadmium is a toxic metal." return str end return p...

Click to read more »
Module:Sandbox/teaktl17
Senin, 2026-04-27 06:35:39

i- for iso ['n'] = true, ['i'] = true } function p.format(in_str) local out = in_str or '' local i -- position in 'out' string to analyze local function...

Click to read more »
Module:Sandbox/Thayts/1
Minggu, 2021-05-02 05:24:24

function split(str, del, from) local i, j from = from or 1 i, j = str:find(del, from) if i and j then return str:sub(1, i - 1), str:sub(j + 1), i...

Click to read more »
Module:Unicode data/testcases
Selasa, 2025-07-29 23:25:05

str) if type(str) ~= "string" then return nil end local script_to_count = script_to_count_mt() for codepoint in mw.ustring.gcodepoint(str)...

Click to read more »
Module:Sandbox/AbyAll19
Minggu, 2017-12-10 08:18:50

2017, Introduction to Lua in Wikipedia my_object = {} my_object.hello = function(frame) local str = "Hello World!" return str end return my_object...

Click to read more »
Module:Sandbox/PiperMcCorkle/FrenchWikidata
Kamis, 2024-12-19 03:43:28

function wd.translate(str, rep1, rep2) str = modules.i18n[str] or str if rep1 and (type (rep1) == 'string') then str = str:gsub('$1', rep1) end ...

Click to read more »
Module:Sandbox/xiaphias/maritime row
Rabu, 2013-05-08 11:42:43

local str = frame.args[1] or "dat" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:LibDeflate
Kamis, 2025-10-30 06:08:46

"):format(type(str)), 2) end str = str:gsub("^[%c ]+", "") str = str:gsub("[%c ]+$", "") local strlen = #str if strlen == 1 then return nil...

Click to read more »
Module:Sandbox/JosephWharfe/sometest
Jumat, 2020-04-10 07:41:16

local t={} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do table.insert(t, str) end return t end...

Click to read more »
Module:Unindent/doc
Jumat, 2025-07-11 18:36:40

terminating the string. unindent( str ) (function) Unindent resets the indentation level of mulitline strings. Parameter: str Multiline string indented consistently...

Click to read more »
Module:Complex date
Sabtu, 2020-05-16 02:21:05

local dateStr = langSwitch(i18n.Translations[operation], lang) if type(dateStr)=='table' then dateStr = dateStr[1] end if type(dateStr)=='function'...

Click to read more »
Module:Sandbox/ManaraKM
Senin, 2022-11-21 22:49:36

local p = {}; p.languages = function(frame) local str = "Language yet to be deffined" return str end return p...

Click to read more »
Module:Sports results/Chess
Selasa, 2024-10-15 13:23:03

match(bgcol_str, '^([^%+]*)%+?') or '' bgcol_str = mw.ustring.gsub(bgcol_str, '^([^%+]*)%+?', '') or '' -- Remove bg_col from bgcol_str bg_col...

Click to read more »
Module:Sandbox/trappist the monk/newline
Selasa, 2018-08-07 17:48:55

local function nl () local str = 'string with newlines: single\nhere;\n\ndouble here;\n\n\ntripple here.' return str; end return {nl=nl}...

Click to read more »
Module:Sandbox/Michael Young
Senin, 2018-11-19 05:27:49

sentence = function(frame) local str = frame.args.words or "" local out = string.upper(string.sub(str, 1, 1)) .. string.sub(str, 2) return out end p.unpackdate...

Click to read more »
Module:Sandbox/trappist the monk/nts
Senin, 2022-10-24 04:12:36

line in the wiki code editor) ]] local function tabbing (str) return math.ceil ((80 - 4 - str:len()) / 4); -- the -4 because every line begins...

Click to read more »
Module:Transclusion count/data/S
Minggu, 2026-08-16 12:09:50

["Str_count"] = 166000, ["Str_endswith"] = 236000, ["Str_find"] = 283000, ["Str_index"] = 15000, ["Str_left"] = 348000, ["Str_len"] = 167000, ["Str_letter"]...

Click to read more »
Module:Sandbox/Erutuon/charinsert names
Rabu, 2019-02-20 04:41:26

{} local function get_all_codepoints(str) local codepoint_set = {} for codepoint in mw.ustring.gcodepoint(str) do codepoint_set[codepoint] = true...

Click to read more »
Module:Sandbox/Kidsoljah
Minggu, 2023-10-08 09:11:20

local p = {}; p.rugby = function( frame ) local str = "Rugby player stats" return str end return p...

Click to read more »
Module:Sandbox/Bjornskjald
Jumat, 2018-11-30 04:21:06

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Sandbox/Sdsds/Sandbox
Sabtu, 2014-07-12 12:43:40

my_object = {} my_object.hello = function( frame ) local str = "Hello Sdsds!" return str end return my_object...

Click to read more »
Module:Sandbox/StoppedGalaxy
Selasa, 2018-11-27 10:27:25

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end --StoppedGalaxy...

Click to read more »
Module:Sandbox/Kamil Kras
Sabtu, 2018-11-10 01:28:30

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Class/sandbox
Senin, 2025-06-02 19:32:24

function trim(str) --Trims strings, passes through non-strings without modification return (type(str) == 'string') and mw.text.trim(str) or str end local...

Click to read more »
Module:Coordinates
Rabu, 2026-07-01 23:40:59

convert_dms2dec(direction, degrees_str, minutes_str, seconds_str) local degrees = tonumber(degrees_str) local minutes = tonumber(minutes_str) or 0 local seconds...

Click to read more »
Module:Sandbox/DePiep/uchar-helper
Selasa, 2023-08-01 22:40:33

end function p.is_Latin(str) require "libraryUtil".checkType("get_best_script", 1, str, "string") str = mw.text.decode(str, true) -- Search for the...

Click to read more »
Module:Repr
Sabtu, 2022-10-22 05:05:04

isLuaIdentifier(str) return type(str) == "string" -- Must start with a-z, A-Z or underscore, and can only contain -- a-z, A-Z, 0-9 and underscore and str...

Click to read more »
Module:Coordinates/sandbox
Sabtu, 2026-06-27 09:23:55

convert_dms2dec(direction, degrees_str, minutes_str, seconds_str) local degrees = tonumber(degrees_str) local minutes = tonumber(minutes_str) or 0 local seconds...

Click to read more »
Module:CineMol/svg
Kamis, 2025-10-30 06:30:08

objects_str = objects_str .. object:to_svg() .. "\n" end return header .. "\n<defs>\n<style>\n" .. styles_str .. "\n</style>\n" .. definitions_str .....

Click to read more »
Module:UnitTests/sandbox
Minggu, 2026-04-05 12:44:48

highlight_diff(str) if mw.ustring.find(str, "%s") then return '<span style="background-color: var(--wikt-palette-red-4,pink);">' .. string.gsub(str, " ",...

Click to read more »
Module:Citation/CS1
Sabtu, 2026-08-08 20:56:56

last three chars of str are sepc'' str = f.sub(str, 1, -4) .. "''"; -- remove them and add back '' elseif f.sub(str, -5, -1) == duplicate_char...

Click to read more »
Module:Sandbox/JaimePRE
Kamis, 2018-11-29 22:28:41

sentence = function(frame) local str = frame.args.words or "" local out = string.upper(string.sub(str,1,1)) .. string.sub(str, 2) return out end p.unpackdate...

Click to read more »
Module:ConvertIB
Minggu, 2026-07-12 02:22:17

values, or "false" if no numeric argument is given -- units: list of units (str) -- value: if there is a last numeric value unpaired with a unit, it becomes...

Click to read more »
Module:Database report/facade/sandbox
Jumat, 2025-09-19 03:38:16

local function str_split(inputstr, sep) local t = {} for str in string.gmatch(inputstr, "([^"..sep.."]+)") do table.insert(t, str) end ...

Click to read more »
Module:Sandbox/Safan41
Senin, 2018-11-05 08:24:34

" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Sandbox/trappist the monk/genitive
Selasa, 2024-11-26 00:43:26

timestamp, lang}}); -- get the genitive month name total_fmt_str_len = total_fmt_str_len + 2; -- accumulate format string length local month_nom...

Click to read more »
Module:Sandbox/Iniquity
Selasa, 2024-11-26 23:59:28

'xg', timestamp ); -- get the genitive month name total_fmt_str_len = total_fmt_str_len + 2; -- accumulate format string length local month_nom...

Click to read more »
Module:Sandbox/Ralvahkaset/sankrant
Jumat, 2026-02-27 01:05:31

padDigits or 0 local str if padDigits > 0 then str = string.format("%0" .. padDigits .. "d", num) else str = tostring(num) ...

Click to read more »
Module:Sandbox/Danmichaelo
Minggu, 2014-09-14 23:34:14

not is_set(str) then return str; else if str:sub(1,1) == "'" then str = "<span />" .. str; end if str:sub(-1,-1) == "'" then str = str .. "<span...

Click to read more »
Module:Person length
Rabu, 2019-10-09 00:59:50

return frame:expandTemplate{ title = 'convert', args = targs} .. str else return str end end function p.length(frame) return convert_length(frame...

Click to read more »
Module:Sandbox/Kid 116
Selasa, 2017-12-26 22:41:08

world!" end function p.Hi(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Wikipedia Signpost/Main page top preview
Kamis, 2023-07-20 13:50:55

increment issue number "{{Str right|{{Wikipedia:Wikipedia Signpost/Templates/Issue|2}}|10}}", "issue {{#expr:1+{{Str right|{{Wikipedia:Wikipedia...

Click to read more »
Module:Sandbox/Angr pukhlya
Minggu, 2019-10-13 20:20:52

sentence = function(frame) local str = frame.args.words or "" local out = string.upper(string.sub(str, 1, 1)) .. string.sub(str, 2) return out end p.unpackdate...

Click to read more »
Module:User:Cscott/Advent Of Code 2023/Day 1
Kamis, 2023-12-21 04:59:32

compat') --[[ Infrastructure ]]-- function split(str) lines = {} for s in string.gmatch(str, "[^\r\n]+") do table.insert(lines, s) end...

Click to read more »
Module:Template parameter value
Kamis, 2025-10-23 22:11:46

while true do local nextOpen = string.find(str, "{{", position, true) local nextClose = string.find(str, "}}", position, true) if nextOpen and (not...

Click to read more »
Module:Sandbox/cheddarooz/luaBox
Kamis, 2018-12-06 09:03:47

World!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end -- cheddarooz Google...

Click to read more »
Module:MultiReplace/sandbox
Sabtu, 2026-08-01 08:20:12

-- Copied from Module:String's `str._escapePattern()` local function escape_pattern (str) return (string.gsub(str, "[%(%)%.%%%+%-%*%?%[%^%$%]]", "%%%0"))...

Click to read more »
Module:ConvertIB/sandbox
Minggu, 2026-07-12 02:14:46

values, or "false" if no numeric argument is given -- units: list of units (str) -- value: if there is a last numeric value unpaired with a unit, it becomes...

Click to read more »
Module:Sandbox/Lemondoge/testFunctionify
Minggu, 2023-04-16 04:33:06

local arguments_str = input:match(pattern) local args = {} if arguments_str then for arg in arguments_str:gmatch("[^,]+") do...

Click to read more »
Module:Sandbox/bleed.tech
Senin, 2023-05-29 15:04:18

end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end -- Task 3 p...

Click to read more »
Module:Mapframe
Senin, 2026-06-01 22:40:49

coordsDerivedFromFeatures = ( argType == L10n.str.line or argType == L10n.str.shape ) and true or false end if argType == L10n.str.named then local namedCoords...

Click to read more »
Module:Citation/CS1/sandbox
Rabu, 2026-08-12 05:56:48

last three chars of str are sepc'' str = f.sub(str, 1, -4) .. "''"; -- remove them and add back '' elseif f.sub(str, -5, -1) == duplicate_char...

Click to read more »
Module:Sandbox/Element10101/Hymenoptera
Kamis, 2025-06-05 06:03:49

for str in string.gmatch(inputstr, '([^'..sep..']+)') do -- insert the substring in table table.insert(t, str) end ...

Click to read more »
Module:Sandbox/Ajuanca/Names
Minggu, 2020-01-19 18:27:03

str = "The given name is <b>" for z, name in ipairs(name.givenNames) do str = str .. " " .. name end str = str .. "</b>.<br>" else str =...

Click to read more »
Module:Sandbox/AmazingJus
Jumat, 2024-11-15 20:43:30

local gsub = mw.ustring.gsub local function lc(str) return mw.getLanguage("(insert lang here)"):lc(str) end -- IPA transcription function export.toIPA(entry)...

Click to read more »
Module:Sandbox/Ohmomar
Sabtu, 2018-11-10 00:27:15

function(frame) local str = frame.args.words or "" local out = string.sub(str, 1, 1) out = string.upper(out) local run = string.sub(str, 2, #str) out = out...

Click to read more »
Module:Science redirect
Jumat, 2024-09-13 23:35:57

debugStr = '{{Redirect template<br />\n' for k,v in pairs( outArgs ) do debugStr = debugStr..'| '..k..' = '..v..'<br />\n' end outStr = debugStr....

Click to read more »
Module:Sandbox/Nullzero/AutomaticTOC
Kamis, 2019-02-21 01:04:44

Split(str, delim, maxNb) -- Eliminate bad cases... if string.find(str, delim) == nil then if str == "" then return {} else return {str} end...

Click to read more »
Module:Taxon authority
Sabtu, 2019-07-06 00:50:43

]] l.escape = function(str) if string.find( str, ".", 1, false) then -- need to esc the . local s = mw.text.split( str, "%.", plain ) return...

Click to read more »
Module:Sandbox/Element10101/Split
Kamis, 2025-06-05 05:29:48

sep for str in string.gmatch(inputstr, '([^'..sep..']+)') do -- insert the substring in table table.insert(t, str) end --...

Click to read more »
Module:Person weight
Minggu, 2025-10-05 08:25:17

return frame:expandTemplate{ title = 'convert', args = targs} .. str else return str end end function p.weight(frame) return convert_weight(frame...

Click to read more »
Module:Infobox ship/data
Rabu, 2026-01-14 07:50:43

background: inherit; border: none; padding: inherit;'; local warning_fmt_str = '<span style="%s"><code style="%s">&#123;{[[Template:%s|%s]]}}</code>:...

Click to read more »
Module:Sandbox/Peter coxhead/Refgen
Rabu, 2023-05-24 00:19:32

returning a string. ]] function l.trim(str) str = mw.text.trim(str) if str == nil then str = "" end return str end --[[ Ensure double .. is present...

Click to read more »
Module:Docbunto/testcases
Senin, 2026-06-08 22:06:34

require("Module:Docbunto") local suite = require('Module:ScribuntoUnit').new() local str = require("Module:String") local function testWikitext( wikitext, that )...

Click to read more »
Module:Sandbox/Ahecht/url-access
Rabu, 2018-10-03 21:47:25

loadData("Module:Citation/CS1/Configuration") local function safe_for_url( str ) return str:gsub( '[%[%]\n]', { ['['] = '&#91;', [']'] = '&#93;', ['\n']...

Click to read more »
Module:Person height
Rabu, 2025-12-10 18:10:59

str = str .. suffix if type(targs) == 'table' then return frame:expandTemplate{ title = 'convert', args = targs} .. str else return str end...

Click to read more »
Module:Sandbox/Stibba0/GCI
Sabtu, 2018-11-10 00:29:41

= function(frame) local str = frame.args.words or "" local out = string.upper( string.sub(str, 1, 1) ) .. string.sub(str, 2) return out end p.unpackdate...

Click to read more »
Module:Sandbox/pietrasagh
Sabtu, 2022-08-27 19:27:32

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Sandbox/xiaowan
Minggu, 2018-11-11 22:33:41

sentence = function(frame) local str = frame.args.words or "" local out = string.sub(str, 2) out = str.upper(string.sub(str, 1, 1))..out return out ...

Click to read more »
Module:Infobox television
Selasa, 2026-04-28 18:25:24

various list syntax. -- -- @param str string -- @return string local function clean_list_syntax(str) str = string.gsub(str, "\127[^\127]*UNIQ%-%-(%a+)%-...

Click to read more »
Module:Sandbox/Immogmog123
Minggu, 2018-11-11 00:33:55

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Sandbox/Yupik
Rabu, 2019-08-14 22:32:16

Hi(frame). Some people prefer one way over the other strName = frame.args.name or "Jimbo" --str* is just a hint that a string is expected. args is the...

Click to read more »
Module:Reply to
Kamis, 2026-07-16 23:20:28

'')) ) then outStr = outStr..', ' end if i == maxArg then outStr = outStr..' '..(args['c'] or 'and') .. ' ' end end outStr = string.format(...

Click to read more »
Module:Sandbox/Tmn/test
Rabu, 2016-10-12 03:11:20

end function p.brackets(frame) return "[" .. frame.args[1] .. "]" end function p.quoteStr(frame) return "\"" .. frame.args.str .. "\"" end return p...

Click to read more »
Module:Link summary
Sabtu, 2026-01-03 01:00:34

require("strict") local str = require("Module:String") local p = {} -- Template with placeholders: {{DOMAIN}} for domain, {{ENCODED}} for URL-encoded...

Click to read more »
Module:Sandbox/shreyasminocha
Selasa, 2018-11-13 17:25:59

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(...

Click to read more »
Module:Sandbox/Artbarte
Kamis, 2018-11-01 21:02:34

end p.Hi = function(frame) strName = frame.args.name or "Jimbo" -- Step 13 return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Sandbox/0xF8E8/yearsago
Selasa, 2016-10-25 13:48:19

functions.loopnum(frame) str = "" for i=1, tonumber(frame.args[1]) do str = str .. "\n\n" .. spelledout(i) end return str end return functions...

Click to read more »
Module:CineMol/style
Kamis, 2025-10-30 06:29:36

) local definition_str = nil return style_str, definition_str elseif self.fill_style.name == 'Solid' then ...

Click to read more »
Module:RedirectChecker
Jumat, 2024-11-15 02:15:40

'Module:RedirectChecker/config.json' ) local function isEmpty( str ) return str == nil or str == '' end local function getConfigVal( key ) if not isEmpty(...

Click to read more »
Module:Unicode chart/sandbox
Jumat, 2025-11-28 00:50:47

0xFE00, last = 0xFE0F, str = "VS<br>", startNum = 1}, -- Block: Variation Selectors Supplement {first = 0xE0100, last = 0xE01EF, str = "VS<br>", startNum...

Click to read more »
Module:Sandbox/Akar1
Sabtu, 2018-04-28 22:27:31

split(str, pat) local t = {} -- NOTE: use {n = 0} in Lua-5.0 local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find(fpat...

Click to read more »
Module:Sandbox/Boboquack
Kamis, 2018-11-01 08:28:22

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end --return p --...

Click to read more »
Module:Sandbox/Kortales
Kamis, 2018-11-08 06:24:40

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Sandbox/dxa-kly
Jumat, 2018-11-09 12:06:49

sentence = function(frame) local str = frame.args.words or "" local out = string.upper(string.sub(str, 1, 1)) .. string.sub(str, 2) return out end p.unpackdate...

Click to read more »
Module:Sandbox/Robingan7
Senin, 2018-11-12 01:38:31

function(frame) local str = frame.args.words or "" local out1= string.upper(string.sub(str, 1, 1)) local out2 = string.sub(str, 2) return out1..out2...

Click to read more »
Module:Science redirect/sandbox
Senin, 2021-05-17 09:54:39

debugStr = '{{Redirect template<br />\n' for k,v in pairs( outArgs ) do debugStr = debugStr..'| '..k..' = '..v..'<br />\n' end outStr = debugStr....

Click to read more »
Module:Sandbox/Ste1la
Senin, 2018-11-26 05:50:36

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Sandbox/wwdjbox
Jumat, 2018-12-07 12:25:57

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Sandbox/trappist the monk/wikisource param fetch
Selasa, 2022-12-27 03:03:33

opening_str, -- open the translation table table.concat (out_t, ',\n\t\t'), -- add the non-enumerated parameters enum_out_str, ...

Click to read more »
Module:Football attendance summation
Selasa, 2026-06-30 19:53:55

expandRange(str) if not str or str == '' then return nil end str = mw.text.trim(str) local s, e = str:match('^(.-)%-(.+)$') if not s then s, e = str, str end...

Click to read more »
Module:Sandbox/Smsingh34
Jumat, 2018-11-16 08:12:34

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end -- smsingh Task...

Click to read more »
Module:AutosortTable
Minggu, 2021-02-21 07:27:13

functions local strIndexOf = mw.ustring.find local strSplit = mw.text.split local strSub = mw.ustring.sub local strTrim = mw.text.trim...

Click to read more »
Module:Ordinal-cd
Selasa, 2019-02-26 07:16:44

function Superscript( str, superscript, nosup, period ) if superscript and (not nosup) and (str ~= '') then return period .. '<sup>' .. str .. '</sup>' else...

Click to read more »
Module:Sandbox/Nathan fraignt
Rabu, 2018-11-07 18:28:38

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Sandbox/Priyanshu Ahuja
Kamis, 2018-11-29 08:45:24

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end --Task 3 function...

Click to read more »
Module:Sandbox/Gnsjhenjie
Senin, 2019-12-09 23:52:29

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Reply to/sandbox
Kamis, 2026-07-16 23:12:05

'')) ) then outStr = outStr..', ' end if i == maxArg then outStr = outStr..' '..(args['c'] or 'and') .. ' ' end end outStr = string.format(...

Click to read more »
Module:Sandbox/S.A. Julio
Selasa, 2026-06-30 19:48:33

expandRange(str) if not str or str == '' then return nil end str = mw.text.trim(str) local s, e = str:match('^(.-)%-(.+)$') if not s then s, e = str, str end...

Click to read more »
Module:Template parameter value/sandbox
Kamis, 2025-10-23 22:00:38

while true do local nextOpen = string.find(str, "{{", position, true) local nextClose = string.find(str, "}}", position, true) if nextOpen and (not...

Click to read more »
Module:Sandbox/Philipnelson99
Kamis, 2024-03-21 05:36:56

return (s:gsub("^%s*(.-)%s*$", "%1")) end function parseString(str) local mys = str:match("! User groups\n(.*)|}"):sub(2) local rankTable = split(mys:sub(3)...

Click to read more »
Module:Sandbox/Mr. Ibrahem
Sabtu, 2024-06-01 06:36:00

local title = frame.args[1] local str = mw.wikibase.getEntityIdForTitle( title ) return str end function p.count_temp(frame) -- {{#invoke:Sandbox/Mr...

Click to read more »
Module:Person length/sandbox
Selasa, 2020-05-26 15:06:08

return frame:expandTemplate{ title = 'convert', args = targs} .. str else return str end end function p.length(frame) return convert_length(frame...

Click to read more »
Module:Sandbox/KiharaSofia/zl-conjugation
Minggu, 2026-02-22 08:20:08

element from list local function matchPhoneme(str, list) for _, phoneme in ipairs(list) do if str:sub(1, #phoneme) == phoneme then ...

Click to read more »
Module:Person weight/sandbox
Minggu, 2025-10-05 08:25:27

return frame:expandTemplate{ title = 'convert', args = targs} .. str else return str end end function p.weight(frame) return convert_weight(frame...

Click to read more »
Module:Array
Selasa, 2023-08-22 22:32:32

underscore_to_camel_case(str) if type(str) ~= "string" then return str end str = str:gsub("_(.)", string.upper) return str end local m_table, m_fun...

Click to read more »
Module:Kru-IPA
Senin, 2026-05-18 11:34:59

clean_input(str) if not str then return "" end -- Remove leading/trailing spaces and strip out literal wiki formatting if accidentally passed str =...

Click to read more »
Module:Sandbox/54nd60x/test3
Jumat, 2021-04-09 18:27:40

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:IP/sandbox
Minggu, 2023-03-19 04:48:22

newFromIPv6(ipStr) -- Return a RawIP object if ipStr is a valid IPv6 string. Otherwise, -- return nil. ipStr = ipStr:match('^%s*(.-)%s*$') local _, n = ipStr:gsub(':'...

Click to read more »
Module:Unicode chart
Kamis, 2025-10-30 23:48:38

isBadTitle(str) if str == nil then return true end if type(str) == "number" then str = mw.ustring.char(str) end if not mUnicode.is_valid_pagename(str) then...

Click to read more »
Module:Sandbox/mdu02
Selasa, 2018-11-20 00:28:29

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Sandbox/TheUnit 72/Universal clickable button
Jumat, 2026-05-22 21:43:35

DEFAULT_BORDER = "#a2a9b1" local function normalizeKey(str) if not str then return nil end str = tostring(str):lower() :gsub("^%s+", "") :gsub("%s+$"...

Click to read more »
Module:Infobox television/sandbox
Selasa, 2026-05-26 01:46:48

various list syntax. -- -- @param str string -- @return string local function clean_list_syntax(str) str = string.gsub(str, "\127[^\127]*UNIQ%-%-(%a+)%-...

Click to read more »
Module:Road data/parser
Sabtu, 2024-08-24 16:40:02

#string formatStr The string the be substituted -- @param #table args The arguments passed to this module local function subst(formatStr, args) --- --...

Click to read more »
Module:Sandbox/54nd60x/test
Selasa, 2021-02-02 12:29:06

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Interlinear
Jumat, 2024-09-06 16:54:50

normalise(str) return mw.ustring.gsub(str,"[" .. conf.WordSeparator .. "]+"," ") end local function tidyCss(str) str = mw.ustring.gsub(str, '^[\"\']*(...

Click to read more »
Module:Sandbox/Grufo/Introspection
Jumat, 2026-07-24 22:35:32

as a string or a number local function get_parameter_name (par_str) local ret = par_str:match'^%s*(.-)%s*$' if ret ~= '0' and ret:find'^%-?[1-9]%d*$'...

Click to read more »
Module:Person height/sandbox
Jumat, 2025-12-05 13:01:04

str = str .. suffix if type(targs) == 'table' then return frame:expandTemplate{ title = 'convert', args = targs} .. str else return str end...

Click to read more »
Module:Sandbox/TheUnit 72/Universal Clickable Button
Minggu, 2026-05-03 00:32:53

DEFAULT_BORDER = "#a2a9b1" local function normalizeKey(str) if not str then return nil end str = tostring(str):lower() :gsub("^%s+", "") :gsub("%s+$"...

Click to read more »
Module:Sandbox/Queen of Hearts
Minggu, 2025-03-02 10:14:44

has_accept_as_written() if not utilities.is_set (str) then return str; end local accept; -- Boolean str = str:gsub ('&[nm]dash;', {['&ndash;'] = '–', ['&mdash;']...

Click to read more »
Module:Object weight
Jumat, 2025-10-03 16:28:54

targs, str = get_convert_weight_args(args[1]) if type(targs) == 'table' then return frame:expandTemplate{ title = 'convert', args = targs} .. str else...

Click to read more »
Module:Sandbox/54nd60x/Main Page
Sabtu, 2021-01-30 15:59:03

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Sandbox/Takidelfin
Selasa, 2018-11-20 04:48:33

Task 2 p.Hi = function ( frame ) strName = frame.args.name or "Jimbo" return "Hello from Lua module to " .. strName .. ".<br/>" end -- Task 3 function...

Click to read more »
Module:Hatnote list
Selasa, 2023-11-14 04:00:31

forSeeStr = string.format(options.forSeeForm, useStr, pagesStr) forSeeStr = punctuationCollapse(forSeeStr) table.insert(strList, forSeeStr) end...

Click to read more »
Module:PakistanSuperLeagueProgression
Minggu, 2019-11-24 00:52:11

local strFind = string.find local strMatch = string.match local strSplit = mw.text.split local strFormat = string.format local strTrim =...

Click to read more »
Module:Sandbox/Erutuon/scripts
Jumat, 2018-04-13 02:34:59

array end function p.list_chars_in_script(str) local scripts = {} for codepoint in mw.ustring.gcodepoint(str) do local script = cp_to_sc(codepoint)...

Click to read more »
Module:Sandbox/zhantongz/China Expwy Name
Sabtu, 2014-11-29 14:38:31

-------------------------- local p = {} function p.image(number) local str num = number.args[1] return ("[[File:China Expwy"..string.upper(num).."sign...

Click to read more »
Module:Sandbox/Liinisx
Jumat, 2023-01-13 22:32:10

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end local...

Click to read more »
Module:Lang/utilities
Kamis, 2025-01-09 21:19:30

return '/' end; local str; if sep_param_val:match ('^%b\"\"$') then -- if quoted string and uses double quotes str = sep_param_val:match ('%b\"\"'):gsub...

Click to read more »
Module:Sandbox/Ahecht/Xviews
Rabu, 2025-07-16 03:14:41

-- {{xviews/view count}} local str = string.gsub(getContent(page), '.?202%d%-%d%d%-%d%d', '') str = string.gsub(str, ',', '', 1) -- Remove leading...

Click to read more »
Module:Complex date/sandbox
Jumat, 2020-05-15 22:46:05

local dateStr = langSwitch(i18n.Translations[operation], lang) if type(dateStr)=='table' then dateStr = dateStr[1] end if type(dateStr)=='function'...

Click to read more »
Module:Sandbox/DD4235/Military Decorations
Senin, 2014-04-21 11:07:51

militaryDecorations.makeTemplate = function(frame) strOut = frame.args.pre and "<pre>" or "" strOut = strOut .. "{|class='wikitable'\n" row = 1 col = 1...

Click to read more »
Module:Sandbox/S-1-5-7/versiontests
Jumat, 2020-03-13 14:56:05

function get_raw_text(str) local builder = "" for index=1,string.len(str),1 do local ch = string.sub(str,index,index) if ( ch == ' ' or...

Click to read more »
Module:Create plant stub
Sabtu, 2022-10-22 04:08:22

require('strict') local p = {} local pargs = {} local function firstToUpper(str) return (str:gsub("^%l", string.upper)) end local function getArgs (frame, args)...

Click to read more »
Module:Sandbox/Lemondoge/SpellcheckerTM
Senin, 2023-04-03 10:20:22

require('Module:Module wikitext')._addText("{{Humor}}") function spellChecker(str, replacements) local function adjust_case(first, second, disable_case_transmission)...

Click to read more »
Module:Find templates in use
Senin, 2025-10-27 22:12:30

com/a/14899740/1832568 local function _unescape(str) str = mw.ustring.gsub(str, '&#(%d+);', string.char) str = mw.ustring.gsub(str, '&#x(%d+);', function(d) return...

Click to read more »
Module:Mapframe/sandbox
Selasa, 2026-02-10 19:36:31

coordsDerivedFromFeatures = ( argType == L10n.str.line or argType == L10n.str.shape ) and true or false end if argType == L10n.str.named then local namedCoords...

Click to read more »
Module:Transclude TOC
Sabtu, 2022-10-22 16:17:38

Gets the display text from a wikilink like [[A|B]] or [[B]] gives B The str:gsub() returns either A|B froma [[A|B]] or B from [[B]] or B from B (no wikilink...

Click to read more »
Module:Sandbox/MrSpecjal
Minggu, 2018-11-04 03:31:02

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Object weight/sandbox
Jumat, 2025-10-03 16:35:03

targs, str = get_convert_weight_args(args[1]) if type(targs) == 'table' then return frame:expandTemplate{ title = 'convert', args = targs} .. str .. tracking_category...

Click to read more »
Module:Hatnote list/sandbox
Sabtu, 2023-11-11 06:01:37

forSeeStr = string.format(options.forSeeForm, useStr, pagesStr) forSeeStr = punctuationCollapse(forSeeStr) table.insert(strList, forSeeStr) end...

Click to read more »
Module:Deletion sorting
Selasa, 2026-04-14 03:15:36

if #args > 2 then outStr = outStr..', ' end if i == #args then outStr = outStr..' and ' end end outStr = outStr..rootpage..'/'..args[i]..'|'...

Click to read more »
Module:DatesWD
Jumat, 2020-01-10 22:04:41

purif(str) if str == "" or str == nil then return nil elseif type(tonumber(str)) == "number" then return math.floor(tonumber(str))...

Click to read more »
Module:Isopsephy
Minggu, 2024-04-14 05:19:33

'Template:Isopsephy'}) str = args[1] local html = "" sum = 0 if args.lang and str then local words = parseStrToTable(str) if rightToLeft[args...

Click to read more »
Module:Sandbox/PeaceDeadC/Wd
Jumat, 2022-04-01 19:27:32

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end function...

Click to read more »
Module:Timing/doc
Rabu, 2023-05-03 05:15:29

full version. local p = {}; p.hello = function( frame ) local str = "Hello World!" return str end return p Access to this code will be through a generic...

Click to read more »
Module:Sandbox/Was a bee/wd20170930
Sabtu, 2017-10-07 16:37:56

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end -- encodes...

Click to read more »
Module:London Gazette util
Sabtu, 2022-10-22 04:21:55

language use. In this module, num_str is limited by calling functions to the integer values 1-99. The argument num_str must be known to be set before this...

Click to read more »
Module:Sandbox/Ahecht/modsandbox
Rabu, 2022-04-06 20:17:18

elseif v == "" then v = "[blank]" end outStr = outStr..'\n'..k..' = \t'..v..'\n' end outStr = outStr..'\niPairs:\n' for k, v in ipairs(args)...

Click to read more »
Module:Footballer positions
Sabtu, 2025-12-27 04:46:02

decodeEntities(str) str = str:gsub("&nbsp;", " ") str = mw.text.decode(str, true) return str end -- Delink wikilinks local function delink(str) return str:gsub("%[%[(...

Click to read more »
Module:Sandbox/GreenC/Internet Archive author
Senin, 2014-10-13 06:48:56

--- function ia_url_encode(str) if (str) then str = mw.ustring.gsub (str, "\n", "\r\n") str = mw.ustring.gsub (str, "([^%w %-%_%.%~])", ...

Click to read more »
Module:User:Whyiseverythingalreadyused/SMRT code
Senin, 2026-03-02 10:16:03

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Example/sandbox
Minggu, 2026-06-14 19:51:01

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Find demonym
Jumat, 2026-07-17 07:01:20

if there is no match function findcountryinstring(str) nMatches = 0 myMatches ={} str=" " .. str:gsub("^%s*(.-)%s*$", "%1") .. " " -- check agaist...

Click to read more »
Module:Sandbox/Eievie
Rabu, 2024-02-07 14:41:13

normalise(str) return mw.ustring.gsub(str,"[" .. conf.WordSeparator .. "]+"," ") end local function tidyCss(str) str = mw.ustring.gsub(str, '^[\"\']*(...

Click to read more »
Module:BENGALIDATE/sandbox
Selasa, 2026-03-31 01:59:07

end local function resolveTimestamp(date_str) local raw, err = date_str and timestamp(date_str) or timestamp() if not raw then return...

Click to read more »
Module:RSP Test
Minggu, 2025-10-12 00:49:58

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:IndianPremierLeagueProgression
Minggu, 2018-06-24 03:26:21

local strFind = string.find local strMatch = string.match local strSplit = mw.text.split local strFormat = string.format local strTrim =...

Click to read more »
Module:European and national party data/Wd
Senin, 2025-06-09 18:51:16

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end local...

Click to read more »
Module:Sandbox/Thayts/Wd
Senin, 2022-07-18 02:01:58

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end local...

Click to read more »
Module:Excerpt
Jumat, 2026-03-06 19:56:17

escape a string for use in regexes function Excerpt.escapeString( str ) return str:gsub( '[%^%$%(%)%.%[%]%*%+%-%?%%]', '%%%0' ) end -- Helper method...

Click to read more »
Module:SportsRankings/data/WBSC World Rankings/doc
Rabu, 2022-02-09 04:51:57

(given the WBSC rankings begin in cell A1): ="| {{subst:str sub old|"&B1&"|0|3}} = "&A1&" | {{subst:str sub old|"&B1&"|0|3}}_move = "&E1 The code generated...

Click to read more »
Module:Unicode data/documentation functions
Sabtu, 2018-06-23 10:21:42

{} local output_mt = {} function output_mt:insert(str) self.n = self.n + 1 self[self.n] = str end function output_mt:insert_format(...) self:insert(string...

Click to read more »
Module:Top 25 report
Sabtu, 2026-04-18 10:58:06

errors = {} for parameter, dateStr in pairs(frame.args) do dateStr = mw.text.trim(dateStr) if string.lower(dateStr) == "until" then isUntil = true...

Click to read more »
Module:Var
Sabtu, 2025-12-20 11:08:38

local p={} local lib_arg={} local lib_str=mw.ustring local yesno = require('Module:Yesno') local main_template_name = "Variable" local module_call ="#invoke:Var"...

Click to read more »
Module:Sandbox/Raph Williams65/Links
Sabtu, 2025-04-05 12:47:15

return "[[" .. strNamespace.. ":" .. strTitle .. "|" .. strTitle .. "]] &#91;[[Special:Edit/" .. strNamespace .. ":" .. strTitle .. "|edit]]<br />...

Click to read more »
Module:ICCProgression
Jumat, 2026-07-03 17:17:38

local strFind = string.find local strMatch = string.match local strSplit = mw.text.split local strFormat = string.format local strTrim =...

Click to read more »
Module:Sandbox/Ralvahkaset/utils
Rabu, 2026-03-18 03:36:35

yStr, mStr, dStr = dateInput:match("(%d%d%d%d)-(%d%d?)-(%d%d?)") if yStr then year = tonumber(yStr) m = tonumber(mStr)...

Click to read more »
Module:Sandbox/Raph Williams65/ModuleLink
Sabtu, 2025-04-05 14:43:30

strName = frame.args[1] or mw.title.getCurrentTitle() return "[[Module:" .. strName .. "|" .. strName .. "]] &#91;[[Module talk:" .. strName...

Click to read more »
Module:Find country
Sabtu, 2026-07-11 00:07:20

if there is no match function findcountryinstring(str) nMatches = 0 myMatches ={} str=" " .. str:gsub("^%s*(.-)%s*$", "%1") .. " " -- check agaist...

Click to read more »
Module:Sandbox/Gechy/ogechi
Jumat, 2020-12-04 20:35:00

p.Hi = function(frame) local strName strName = frame.args.name or "oge" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Grufo/doc
Kamis, 2026-06-25 10:32:12

{{nums}} {{strs}} Module:Sandbox/Grufo {{key|}} {{nums}} {{strs}} Module:Sandbox/Grufo {{key|'"`UNIQ--nowiki-00000000-QINU`"'}} {{nums}} {{strs}} Module:Sandbox/Grufo...

Click to read more »
Module:Deletion sorting/sandbox
Sabtu, 2022-02-19 09:34:14

if #args > 2 then outStr = outStr..', ' end if i == #args then outStr = outStr..' and ' end end outStr = outStr..delsortRoot..'/'..args[i]...

Click to read more »
Module:DateI18n/sandbox
Jumat, 2022-10-21 17:07:23

split( String, '"', true )) do if i%2==1 then str = str:gsub(old, new) end table.insert(T, str) end return table.concat(T,'"') else return...

Click to read more »
Module:Sandbox/CX Zoom/TestPage3
Jumat, 2023-06-16 04:27:31

local function remove_wiki_link (str) return (str:gsub( "%[%[([^%[%]]*)%]%]", function(l) return l:gsub( "^[^|]*|(.*)$", "%1" ):gsub("^%s*(.-)%s*$"...

Click to read more »
Module:Normalize volume and edition
Rabu, 2026-03-18 01:01:05

normalize_string(input_str, type_flag) if not input_str or input_str == "" then return "" end local s = mw.ustring.lower(input_str) -- PREVENT...

Click to read more »
Module:Sandbox/Sameboat/m3
Jumat, 2016-07-08 14:38:00

text.trim(org), '\\'), '\\') --return table.concat(mw.text.split([[\\\STR\STR\\]], '\\'), '\\') end function p.trimmer2(frame) -- Trims first and last...

Click to read more »
Module:Twenty20 League results summary
Kamis, 2026-08-13 08:41:32

local strFind = string.find local strMatch = string.match local strSplit = mw.text.split local strFormat = string.format local strTrim =...

Click to read more »
Module:ForeignLanguageTextTable
Jumat, 2024-10-18 01:29:41

-- Start building the table local tableStr = '{| class="wikitable"\n' tableStr = tableStr .. "! " .. lang1 .. " !! " .. lang2 .. "\n" ...

Click to read more »
Module:AutosortTable/sandbox
Minggu, 2021-02-21 07:17:00

functions local strIndexOf = mw.ustring.find local strSplit = mw.text.split local strSub = mw.ustring.sub local strTrim = mw.text.trim...

Click to read more »
Module:Interlinear/sandbox
Rabu, 2026-01-07 06:23:33

normalise(str) return mw.ustring.gsub(str,"[" .. conf.WordSeparator .. "]+"," ") end local function tidyCss(str) str = mw.ustring.gsub(str, '^[\"\']*(...

Click to read more »
Module:Word count/doc
Sabtu, 2026-04-18 01:19:58

templates when counting words. Word_count._main( str, limit ) (function) Main entry point for modules Parameters: str Input string (string) limit Word count limit...

Click to read more »
Module:Sandbox/RexxS/SayHello
Rabu, 2022-04-13 16:39:32

THIS PAGE local p = {} p.Hi = function(frame) strName = frame.args.name return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Duration
Senin, 2020-05-11 21:05:19

p._error( error_str ) return '[[Category:Duration with input error]]<strong class="error">Error in Module:Duration: ' .. error_str .. '</strong>' end...

Click to read more »
Module:Sandbox/Ralvahkaset/khmer date
Rabu, 2026-06-24 05:59:49

str = tostring(num) local result = '' local negative = false if str:sub(1, 1) == "-" then negative = true str = str:sub(2)...

Click to read more »
Module:Top 25 report/sandbox
Rabu, 2023-04-12 22:08:00

errors = {} for parameter, dateStr in pairs(frame.args) do dateStr = mw.text.trim(dateStr) if string.lower(dateStr) == "until" then isUntil = true...

Click to read more »
Module:Parameters
Sabtu, 2020-07-04 17:52:26

Disparate: %s]], strMap(Set.valueIntersection(baseParams, otherParams), function(v) return string.format('* %s\n', v) end), strMap(Set...

Click to read more »
Module:Women'sPremierLeagueProgression
Rabu, 2024-04-03 12:56:07

local strFind = string.find local strMatch = string.match local strSplit = mw.text.split local strFormat = string.format local strTrim =...

Click to read more »
Module:Buffer
Kamis, 2025-12-18 20:25:54

local str = tostring(v)--functions not filtered since unlikely passed by accident (Scribunto does not have userdata/thread types) if str~=v and str=='table'...

Click to read more »
Module:ArgRest/sandbox
Kamis, 2023-05-11 21:22:14

alias .. "}}}" end end local function replaceTripleBraces(str, i) -- extract corresponding arguments from the parent function. ----...

Click to read more »
Module:Sandbox/Raph Williams65/WhatLinksHere
Senin, 2025-04-07 00:48:30

function(frame) strTitle = frame.args.title strLabel = frame.args.label or "WhatLinksHere" strNamespace = frame.args...

Click to read more »
Module:Hidden ping
Senin, 2019-02-25 10:53:11

local outStr = '' for i = 1, maxArg do if args[i] then outStr = outStr..'[[:User:'..args[i]..'|&#x200B;]]' end end return outStr end end return...

Click to read more »
Module:DatesWD/sandbox
Rabu, 2023-04-12 21:34:34

function purif(str) if str == "" or str == nil then return nil elseif tonumber(str) then return math.floor(tonumber(str)) else...

Click to read more »
Module:Ancient Greek/doc
Sabtu, 2026-07-11 04:39:16

Greek|translit|οἷος}} hoîos The code below uses the basic string functions (for instance, str:gsub(...)) when possible. Ustring functions have to be used when patterns...

Click to read more »
Module:SportsRankings/data/FIVB World Rankings/doc
Sabtu, 2023-02-18 09:40:36

(given the WBSC rankings begin in cell A1): ="| {{subst:str sub old|"&B1&"|0|3}} = "&A1&" | {{subst:str sub old|"&B1&"|0|3}}_move = "&E1 The code generated...

Click to read more »
Module:Annotated link/sandbox
Kamis, 2025-07-10 02:42:29

com/a/14899740/1832568 local function unescape(str) str = string.gsub(str, '&#(%d+);', string.char) str = string.gsub(str, '&#x(%d+);', function(d) return string...

Click to read more »
Module:Pagelist
Sabtu, 2026-06-06 20:22:25

outStr = mw.ustring.gsub( string.format( '%s[[:%s|%s]]%s', delim, fullPage, page, endDelim ), ':+', ':' ) end return outStr end...

Click to read more »
Module:SportsRankings/data/FIVB Women's World Rankings/doc
Sabtu, 2023-02-18 10:10:25

(given the FIVB rankings begin in cell A1): ="| {{subst:str sub old|"&B1&"|0|3}} = "&A1&" | {{subst:str sub old|"&B1&"|0|3}}_move = "&E1 The code generated...

Click to read more »
Module:Sandbox/MJL/citation
Senin, 2022-10-24 04:17:31

unmodified. str may be a comma- or semicolon-separated list ]] local function hyphen_to_dash( str ) if not utilities.is_set (str) then return str; end...

Click to read more »
Module:Infobox television/sandbox2
Rabu, 2025-02-26 19:55:24

various list syntax. -- -- @param str string -- @return string local function clean_list_syntax(str) str = string.gsub(str, "\127[^\127]*UNIQ%-%-(%a+)%-...

Click to read more »
Module:Cite taxon
Kamis, 2026-05-21 21:55:53

with Cite taxon errors]]" end end local function firstToUpper(str) return (str:gsub("^%l", string.upper)) end -- define citation template and custom...

Click to read more »
Module:Dot chart
Jumat, 2024-08-02 02:36:46

-- Create xLabels for str in string.gmatch(args["x labels"], "([^,]+)") do table.insert(xLabels,str) xLCount = xLCount+1 ...

Click to read more »
Module:Sandbox/Frietjes/country population table
Selasa, 2020-09-15 20:34:23

= num } end local function flag(str) return frame:expandTemplate{ title = 'flag', args = { str } } end local args = frame.args ...

Click to read more »
Module:Sandbox/Raph Williams65/Subpage
Sabtu, 2025-04-05 06:30:42

= {} p.main = function(frame) strTitle = frame.args.title or 'Example' strLabel = frame.args.label or "Subpages of this page"...

Click to read more »
Module:Sandbox/Matthiaspaul/Citation/CS1
Rabu, 2025-05-28 21:43:36

unmodified. str may be a comma- or semicolon-separated list ]] local function hyphen_to_dash( str ) if not is_set (str) then return str; end str, count...

Click to read more »
Module:Sandbox/Md gilbert/ListMaster
Senin, 2022-10-24 04:02:57

end --return "<nowiki>" .. res .. "</nowiki>" return res end function p.firstToUpper(str) return (str:gsub("^%l", string.upper)) end return p...

Click to read more »
Module:Sandbox/Mathglot/Xviews
Selasa, 2025-12-30 23:23:51

count}} local str = string.gsub(getContent(page), '.?202%d%-%d%d%-%d%d', '') str = string.gsub(str, ',', '', 1) -- Remove leading...

Click to read more »
Module:GetParameters/doc
Rabu, 2026-07-08 10:39:57

"y"}) would both give back {x="a", y="b"}. Takes 1 required argument boolean_str. Turns the input into a true/false boolean value based on the input. Will...

Click to read more »
Module:Build bracket/Helpers
Selasa, 2025-08-19 01:00:33

empties; optional number-cast. function Helpers.split(str, delim, tonum) if Helpers.isempty(str) then return {} end local result, buf = {}, {} ...

Click to read more »
Module:LangSwitch
Minggu, 2019-02-24 21:36:55

== 'string' then -- split multi keys for str in string.gmatch(name, "([^/]+)") do args1[str] = value end end end return p._langSwitch(args1...

Click to read more »
Module:Build bracket/Helpers/sandbox
Selasa, 2025-08-26 21:12:24

empties; optional number-cast. function Helpers.split(str, delim, tonum) if Helpers.isempty(str) then return {} end local result, buf = {}, {} ...

Click to read more »
Module:Title monthname
Selasa, 2021-08-17 08:26:09

or punctaution charaters function splitIntoWords(str) result = {} index = 1 s = mw.ustring.gsub(str, "^[%s%p]+", "") -- strip leading whitespace or...

Click to read more »
Module:TNTTools
Rabu, 2026-05-13 19:08:14

--I18nStr function p.GetMsgP (TNTTab, S, ...) return I18nStr (TNTTab, S, true, {...}) end function p.GetStrP (TNTTab, S, ...) return I18nStr (TNTTab...

Click to read more »
Module:Annotated link
Kamis, 2025-07-10 02:45:58

com/a/14899740/1832568 local function unescape(str) str = string.gsub(str, '&#(%d+);', string.char) str = string.gsub(str, '&#x(%d+);', function(d) return string...

Click to read more »
Module:Buffer/sandbox
Kamis, 2025-12-18 07:41:21

local str = tostring(v)--functions not filtered since unlikely passed by accident (Scribunto does not have userdata/thread types) if str~=v and str=='table'...

Click to read more »
Module:Citation/CS1/sandbox2
Selasa, 2023-05-09 21:35:35

last three chars of str are sepc'' str = f.sub(str, 1, -4) .. "''"; -- remove them and add back '' elseif f.sub(str, -5, -1) == duplicate_char...

Click to read more »
Module:Sandbox/Mmkaram/module
Jumat, 2021-07-09 08:44:44

function(frame) local strName strName = frame.args.name or "3LetterInitials" return "Hello from Lua to my friend " .. strName .. ".<br>" end return...

Click to read more »
Module:Sandbox/trappist the monk/CS1
Senin, 2022-10-24 04:17:05

unmodified. str may be a comma- or semicolon-separated list ]] local function hyphen_to_dash( str ) if not utilities.is_set (str) then return str; end...

Click to read more »
Module:Sandbox/User1042
Jumat, 2023-03-03 05:42:59

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:DateI18n
Senin, 2024-04-29 23:20:41

split( String, '"', true )) do if i%2==1 then str = str:gsub(old, new) end table.insert(T, str) end return table.concat(T,'"') else return...

Click to read more »
Module:ExcerptHeaderLevel
Senin, 2026-05-04 16:34:59

escapeString(str) return tostring(str):gsub('[%^%$%(%)%.%[%]%*%+%-%?%%]', '%%%0') end local function removeString(text, str) local pattern = escapeString(str)...

Click to read more »
Module:Cite taxon/sandbox
Jumat, 2025-11-14 23:14:28

target table, e.g. fishbase, cof, etc local function firstToUpper(str) return (str:gsub("^%l", string.upper)) end -- define citation template and custom...

Click to read more »
Module:Sandbox/Märt Põder
Rabu, 2025-05-28 22:04:18

coordsDerivedFromFeatures = ( argType == L10n.str.line or argType == L10n.str.shape ) and true or false end if argType == L10n.str.named then local namedCoords...

Click to read more »
Module:Lang/data/make is latn data
Kamis, 2025-01-16 21:01:40

(singles_out_t) do local single_str = string.format ('[%s] = true,', v); local rep = math.ceil ((80 - (4 + single_str:len())) / 4); singles_out_t[i]...

Click to read more »
Module:Duration/sandbox
Senin, 2020-05-11 13:21:32

function p._error( error_str ) return '[[Category:Duration with input error]]<strong class="error">Error in Module:Hms: ' .. error_str .. '</strong>' end...

Click to read more »
Module:Dot chart/sandbox
Jumat, 2024-08-02 02:36:10

-- Create xLabels for str in string.gmatch(args["x labels"], "([^,]+)") do table.insert(xLabels,str) xLCount = xLCount+1 ...

Click to read more »
Module:Sandbox/Md gilbert/ListItem
Senin, 2022-10-24 04:02:46

"|Talk]]&nbsp;•&nbsp;[[Special:Contributions/" .. name .. "|Contribs]]" end function p.firstToUpper(str) return (str:gsub("^%l", string.upper)) end return p...

Click to read more »
Module:Title monthname/sandbox
Jumat, 2020-07-17 01:43:29

or punctaution charaters function splitIntoWords(str) result = {} index = 1 s = mw.ustring.gsub(str, "^[%s%p]+", "") -- strip leading whitespace or...

Click to read more »
Module:Greek numeral
Sabtu, 2022-02-05 21:34:18

local str_number = tostring(number) local highest_numeric_position = #str_number local i = 0 local index = '' for digit in str_number:gmatch"...

Click to read more »
Module:Sandbox/Mathglot/Section sizes
Senin, 2022-10-24 04:11:31

Gets the display text from a wikilink like [[A|B]] or [[B]] gives B The str:gsub() returns either A|B froma [[A|B]] or B from [[B]] or B from B (no wikilink...

Click to read more »
Module:Sandbox/UdayDatar7
Senin, 2019-12-09 16:53:41

function(frame) strName = frame.args.name or "Jimmy" strName1 = frame.args.yourname return "Hello from Lua to my friend " .. strName .. ".<br>" end...

Click to read more »
Module:Infobox gene
Sabtu, 2026-08-08 13:04:05

localSeparatorStr = "," -- **lclz** Correct it if your wiki has different setting, like zhwiki uses "、" for now local localNotApplicableStr = "n/a" -- **lclz**...

Click to read more »
Module:Sandbox/Aidan9382/RSP
Kamis, 2025-10-16 19:31:34

sources/Perennial sources" local function getWikilinks(str) local out = {} for part in str:gmatch("%[%b[]%]") do table.insert(out, part:sub(3, -3))...

Click to read more »
Module:Banner shell/sandbox
Sabtu, 2026-03-21 18:19:26

local text, icon_image, icon_str if class=='NA' then icon_image = cfg.icons.type[pagetype] or cfg.icons.default icon_str = pagetype=='page' and 'Non-article...

Click to read more »
Module:Sandbox/Jeblad/LuaDoc
Kamis, 2024-12-19 03:26:31

local str = mw.text.trim( v ) if str == '' then -- do nothing else -- local name or canonical name, at english only canonical name if str:match(...

Click to read more »
Module:Banner shell
Sabtu, 2026-03-21 18:21:20

local text, icon_image, icon_str if class=='NA' then icon_image = cfg.icons.type[pagetype] or cfg.icons.default icon_str = pagetype=='page' and 'Non-article...

Click to read more »
Module:Clade/labels
Minggu, 2025-01-19 20:26:39

local styleStr = "" --widthStr = 'width:' .. (longestString*0.5)..'em;' -- can't take account of formatting or <br/> if width then styleStr = 'style="width:'...

Click to read more »
Module:Sandbox/Psiĥedelisto/Citation
Rabu, 2025-05-28 21:44:54

unmodified. str may be a comma- or semicolon-separated list ]] local function hyphen_to_dash( str ) if not is_set (str) then return str; end str, count...

Click to read more »
Module:Sandbox/Srflp
Rabu, 2017-12-27 02:27:14

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Section sizes
Sabtu, 2026-04-18 10:58:52

remove_container (str) local count; str, count = str:gsub( "<([^>]*)>", function(l) return l:gsub("^%s*(.-)%s*$", ""); end); return str, 0 < count...

Click to read more »
Module:RoundN
Kamis, 2024-03-07 20:54:05

'#C96', '#f9f9f9'}, reuseStr = {}, saveStr = function(self, name, ...) if not self.reuseStr[name] then self.reuseStr[name] = table.concat{...}...

Click to read more »
Module:Sandbox/1ctinus
Senin, 2024-06-03 06:24:28

description", args = {text, "noreplace"}} end function p.firstToUpper(str) return (str:gsub("^%l", string.upper)) end function p.main(frame) if (isInLead("[Ii]nfobox...

Click to read more »
Module:Sandbox/RoseGold1250/test
Senin, 2021-03-01 01:45:57

function(frame) local strName strName = pizza.args.name or "pepperoni" return "It's flavored italian pepperoni pizza! " .. strName .. ".<br>" end return...

Click to read more »
Module:Unicode data/scripts/make
Kamis, 2020-03-12 02:28:30

local Array = require 'Module:Array' local function pattern_escape(str) return (str:gsub('%p', '%%%1')) end function p.make_script_name_to_code(page_name)...

Click to read more »
Module:Pagelist/sandbox
Rabu, 2026-06-03 08:24:40

outStr = mw.ustring.gsub( string.format( '%s[[:%s|%s]]%s', delim, fullPage, page, endDelim ), ':+', ':' ) end return outStr end...

Click to read more »
Module:SMILES2IUPAC/Parser
Senin, 2026-08-10 23:57:40

newIndex or nil. local function readAtomSymbol(str, i) for _, sym in ipairs(Data.twoLetterSymbols) do if str:sub(i, i + #sym - 1) == sym then return...

Click to read more »
Module:Adjacent stations/Heritage railways/UK/doc
Jumat, 2025-09-19 02:32:07

NVR North Bay NNR NYMR Peak Perrygrove P&BR R&ER RH&DR RDR RH&WR SVR SMR STR Spa Valley SR Swanage S&CR Talyllyn VOR WL Weardale W&WLR WHR WHHR VOR WR...

Click to read more »
Module:Sandbox/Od Mishehu/top25
Minggu, 2019-06-02 20:10:22

errors = {} for _, dateStr in pairs( frame.args ) do dateStr = mw.text.trim(dateStr) if (string.lower(dateStr) == "until") then ...

Click to read more »
Module:Parameters/sandbox
Sabtu, 2020-07-04 17:56:03

Disparate: %s]], strMap(Set.valueIntersection(baseParams, otherParams), function(v) return string.format('* %s\n', v) end), strMap(Set...

Click to read more »
Module:Sandbox/Trappist the monk/Endorsements group
Kamis, 2026-03-26 01:20:59

of endorsers; both are required return string.format (cfg.heading_fmt_str, cfg.paragraph_open, args_t[1], args_t[2]); -- return formatted endorsements...

Click to read more »
Module:Sandbox/MJL/CS1
Senin, 2022-10-24 04:16:54

unmodified. str may be a comma- or semicolon-separated list ]] local function hyphen_to_dash( str ) if not utilities.is_set (str) then return str; end...

Click to read more »
Module:Sandbox/DeepRushil/sandbox
Rabu, 2018-11-28 21:43:20

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Izno/Citation/CS1
Senin, 2022-10-24 04:16:44

unmodified. str may be a comma- or semicolon-separated list ]] local function hyphen_to_dash( str ) if not utilities.is_set (str) then return str; end...

Click to read more »
Module:Sandbox/Vestrian24Bio/JSON table
Sabtu, 2024-07-20 23:01:40

table to HTML table local function jsonToHtmlTable(jsonStr) local jsonTable = cjson.decode(jsonStr) local html = "<table border='1'>\n" -- Function...

Click to read more »
Module:Sensitive IP addresses/API
Rabu, 2016-11-23 16:27:57

SensitiveEntity:matchesIPOrRange(str) -- Returns true, matchObj, queryObj if there is a match for the IP address -- string or CIDR range str in the sensitive entity...

Click to read more »
Module:Sandbox/Varmkorv Tva
Selasa, 2026-06-02 19:42:51

add_diff_highlighting(str) if mw.ustring.find(str, "%s") then return '<span style="background-color: var(--wikt-palette-red-4,pink);">' .. string.gsub(str, " ",...

Click to read more »
Module:Sports table/Custom
Rabu, 2026-07-29 15:20:24

then local op_str = stylecc:match('^([^_]*)_[^_]*_[^_]*') local operands = {} operands[1] = stylecc:match(op_str..'_([^_]*)_[^_]*') operands[2]...

Click to read more »
Module:Category main article
Selasa, 2025-12-09 01:37:11

''):gsub('%s+', ' '):gsub('^%l', string.upper) end local compareStr if usedAutoFill then compareStr = normalizeTitle(firstLink) else local raw = (options...

Click to read more »
Module:Sandbox/OliverCWY/SayHello
Jumat, 2018-01-12 13:39:40

local p = {} p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Adjacent stations/Arriva Danmark
Senin, 2025-11-03 01:33:01

["_default"] = { ["title"] = "[[%1]]", ["color"] = "009999" }, ["SkjStr"] = { ["title"] = "[[Skjern, Denmark|Skjern]]–[[Struer, Denmark|Struer]]"...

Click to read more »
Module:TwitterSnowflake/gen
Kamis, 2021-01-21 02:37:37

local p = {} local function numberToBinStr(x) ret="" while x~=1 and x~=0 do ret=tostring(x%2)..ret x=math.modf(x/2) end ret=tostring(x)..ret...

Click to read more »
Module:Sandbox/Favonide
Jumat, 2025-03-28 21:50:27

convert_dms2dec(direction, degrees_str, minutes_str, seconds_str) local degrees = tonumber(degrees_str) local minutes = tonumber(minutes_str) or 0 local seconds...

Click to read more »
Module:Sandbox/Html1110
Selasa, 2018-12-04 02:51:37

Wikipedia local p = {} p.Hi = function(frame) strName = frame.args.name return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Docbunto
Jumat, 2026-06-26 01:24:51

markdown(str) -- Bold & italic tags. str = str:gsub('%*%*%*([^\n*]+)%*%*%*', '<b><i>%1</i></b>') str = str:gsub('%*%*([^\n*]+)%*%*', '<b>%1</b>') str =...

Click to read more »
Module:Sandbox/urastats
Selasa, 2026-03-10 20:47:00

function p.sums() local function add_days_to_date(date_str, days) local y, m, d = date_str:match("(%d+)%-(%d+)%-(%d+)") local ts = os.time{ year...

Click to read more »
Module:Football map
Minggu, 2022-10-23 11:14:31

the #invoke command. p.main = function(frame) str = p.getMapframeString() return frame:preprocess(str) -- the mapframe needs to be preprocessed!!!...

Click to read more »
Module:Sandbox/Warudo/Module:Example
Jumat, 2025-06-27 17:29:30

str = "Hello World! test123" --Declare a local variable and set it equal to --"Hello World!". return str ...

Click to read more »
Module:Sandbox/driftingdrifting
Jumat, 2025-08-15 09:29:33

same name needs to be referred to when the module is used. local str = "Hello World!" --Declare a local variable and set it equal to ...

Click to read more »
Module:Sandbox/ActiveTech11
Sabtu, 2019-12-21 21:00:28

"Hello, world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Pomkonto456
Selasa, 2020-01-21 05:20:21

return "Hello, world!" end p.Hi = function(frame) strName = frame.args.name return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Kelnoww
Minggu, 2025-08-03 19:46:52

local str = "Hello World!" --Declare a local variable and set it equal to --"Hello World!". return str --This...

Click to read more »
Module:Sandbox/Raph Williams65/HelloLua
Jumat, 2025-04-04 01:01:08

p.hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Sarai Blanco
Selasa, 2018-11-20 04:38:12

"hello" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Sandbox/minhducsun2002
Senin, 2019-12-23 20:23:58

local p = {} p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.hello(...

Click to read more »
Module:Sandbox/YH2003
Kamis, 2018-12-06 18:15:44

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Yuxuan02
Kamis, 2018-12-06 18:35:55

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Jooannaa/
Senin, 2020-01-13 00:33:50

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/ShahJahanIshaq19
Kamis, 2020-01-16 18:22:39

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:SST/hosts
Sabtu, 2026-04-18 10:30:10

str, engine, host_data, frame_args, is_chapter) page_str = mw.ustring.gsub(page_str, ";", ",") local segments = mw.text.split(page_str, ",")...

Click to read more »
Module:DartsOrakel
Sabtu, 2022-10-22 16:13:17

= require('Module:DartsOrakel/data/Players'); end local function noAc(str) local tableAccents = {} tableAccents["À"] = "A" tableAccents["Á"]...

Click to read more »
Module:Interlinear/sandbox2/gcl
Jumat, 2024-02-02 11:37:35

tidyCss(str) -- trims quotation marks str = mw.ustring.gsub(str, '^["\']*(.-)["\']*$', "%1") -- appends ";" if missing if mw.ustring.sub(str, -1)...

Click to read more »
Module:InfoFlora
Minggu, 2018-09-30 09:53:47

or lastchar == '.' or firstchar == '[' -- für Zusätze der Art "[s.str. prov.]", siehe https://www.infoflora.ch/de/flora/leucanthemopsis-alpina-sstr-prov...

Click to read more »
Module:MalformedSPIs
Kamis, 2025-01-02 13:02:52

-- Helper function to escape HTML tags local function escapeHtml(str) return str :gsub("&", "&amp;") :gsub("<", "&lt;") :gsub(">"...

Click to read more »
Module:Sandbox/AngC10
Selasa, 2018-11-20 12:18:26

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Lizehao2002
Jumat, 2018-12-07 22:15:34

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/sirenci/sometest
Jumat, 2019-12-20 18:18:03

"Hello, world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/YANKAI04
Jumat, 2018-11-23 08:18:36

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/SamuelRiv
Senin, 2022-10-24 04:17:21

last three chars of str are sepc'' str = f.sub(str, 1, -4) .. "''"; -- remove them and add back '' elseif f.sub(str, -5, -1) == duplicate_char...

Click to read more »
Module:Sandbox/Methodsolver18561
Kamis, 2019-12-05 00:16:01

"Hello, world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/brown121407
Selasa, 2018-11-06 21:08:25

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/ycwei982
Selasa, 2018-10-30 12:19:45

World!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/oliverysfx
Sabtu, 2018-11-10 13:05:41

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/KAHXIAN2001
Jumat, 2018-12-07 07:27:36

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Road data/parser/sandbox
Sabtu, 2023-07-22 13:12:11

#string formatStr The string the be substituted -- @param #table args The arguments passed to this module local function subst(formatStr, args) --- --...

Click to read more »
Module:Casenav
Minggu, 2020-12-13 23:57:14

ustring.match(content, '%{%{(.*)%}%}') for str in mw.text.gsplit(temp, '|') do local pair = mw.text.split(str, '=') if #pair==2 then args[mw.text...

Click to read more »
Module:Sandbox/User:Waddie96/table
Rabu, 2025-10-08 12:44:49

end end local attr_str = (#parts > 0) and (table.concat(parts, " ") .. " |") or "|" table.insert(out, attr_str .. " " .. (cell.text or ""))...

Click to read more »
Module:Sandbox/MD Abu Siyam
Rabu, 2018-11-07 11:55:22

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Solar eclipse
Minggu, 2025-10-05 01:05:44

tonumber(m)) local date_str = y .. '-' .. m .. '-' .. d local success, result = pcall(lang.formatDate, lang, 'F j, Y', date_str) return success and...

Click to read more »
Module:Coordinates/sandbox2
Selasa, 2023-05-02 13:56:45

convert_dms2dec(direction, degrees_str, minutes_str, seconds_str) local degrees = tonumber(degrees_str) local minutes = tonumber(minutes_str) or 0 local seconds...

Click to read more »
Module:IP
Sabtu, 2022-10-22 16:07:04

newFromIPv6(ipStr) -- Return a RawIP object if ipStr is a valid IPv6 string. Otherwise, -- return nil. ipStr = ipStr:match('^%s*(.-)%s*$') local _, n = ipStr:gsub(':'...

Click to read more »
Module:Sandbox/Rafidaslam
Jumat, 2017-12-15 21:36:47

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Interlinear/sandbox2
Jumat, 2024-02-23 04:05:18

normalise(str) return mw.ustring.gsub(str,"[" .. conf.WordSeparator .. "]+"," ") end local function tidyCss(str) str = mw.ustring.gsub(str, '^[\"\']*(...

Click to read more »
Module:Sandbox/SphericalPotatoInVacuum
Jumat, 2018-11-09 00:54:16

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Mynarco
Jumat, 2018-12-07 09:08:10

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Slashme
Rabu, 2019-08-14 22:20:00

"JMSP" end p.Hi = function(frame) strName = frame.args.name or "Dave" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:Infobox gene/orthologs
Sabtu, 2026-08-08 13:19:26

collapse_orthologs) local localSeparatorStr = config.localSeparatorStr local localNotApplicableStr = config.localNotApplicableStr local rowBGcolor = config.rowBGcolor...

Click to read more »
Module:Infobox gene/orthologs/sandbox
Sabtu, 2026-08-08 13:17:30

collapse_orthologs) local localSeparatorStr = config.localSeparatorStr local localNotApplicableStr = config.localNotApplicableStr local rowBGcolor = config.rowBGcolor...

Click to read more »
Module:Excerpt/sandbox
Jumat, 2026-03-06 19:54:40

escape a string for use in regexes function Excerpt.escapeString( str ) return str:gsub( '[%^%$%(%)%.%[%]%*%+%-%?%%]', '%%%0' ) end -- Helper method...

Click to read more »
Module:ChartColors
Minggu, 2025-02-23 01:35:12

require "Module:SimpleDebug" local I18n = 'ChartColors' local function I18nStr (S, ...) return TNTT.GetMsgP (I18n, S, {...}) end --local RS_ColorNameInvalid...

Click to read more »
Module:Rotten Tomatoes data
Senin, 2025-11-24 22:20:36

attached i, j = dateStr:find("[T/]") if i then dateStr = dateStr:sub(1, i-1) end local from = 1 if dateStr:sub(1,1) == "-" then...

Click to read more »
Module:Sandbox/Abdnegm
Selasa, 2020-01-21 21:56:49

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:U.S. Army Cemeteries Explorer
Kamis, 2026-08-20 00:00:03

length of the string as a single byte. def length_and_string(str) [str.length].pack('C') << str end # +search_fields+ should be a hash. It may be an empty...

Click to read more »
Module:Sandbox/TheAmazingness
Minggu, 2018-11-04 07:36:20

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:IPAc2-mh
Minggu, 2020-01-12 05:06:00

voice } for _, str in pairs(inSeq) do str = string.gsub(str, S, " ") str = string.gsub(str, "^ *", "") str = string.gsub(str, " *$", "") local...

Click to read more »
Module:Infobox gene/sandbox
Sabtu, 2026-08-08 12:48:45

localSeparatorStr = "," -- **lclz** Correct it if your wiki has different setting, like zhwiki uses "、" for now local localNotApplicableStr = "n/a" -- **lclz**...

Click to read more »
Module:Grand Slam Track/sandbox
Jumat, 2025-10-10 21:08:22

Q_DNS then timeStr = 'DNS' end if endCause == Q_DNF then timeStr = 'DNF' end if endCause == Q_DQ then timeStr = 'DQ' end ...

Click to read more »
Module:Rotten Tomatoes data/sandbox
Jumat, 2023-08-25 22:21:26

attached i, j = dateStr:find("[T/]") if i then dateStr = dateStr:sub(1, i-1) end local from = 1 if dateStr:sub(1,1) == "-" then...

Click to read more »
Module:Sandbox/Smadhav02
Rabu, 2018-01-03 23:58:15

end p.Hi = function(frame) strName = frame.args.name or "RexxS" return "Hello from Lua to my friend <strong>" .. strName .. "</strong>.<br>" end return...

Click to read more »
Module:Section sizes/sandbox
Senin, 2026-08-10 05:47:44

remove_container (str) local count; str, count = str:gsub( "<([^>]*)>", function(l) return l:gsub("^%s*(.-)%s*$", ""); end); return str, 0 < count...

Click to read more »
Module:Sandbox/Lea Lacroix (WMDE)
Rabu, 2019-08-14 22:16:27

world' end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br/>" end function p.temperature(frame)...

Click to read more »
Module:P703
Selasa, 2026-01-20 01:59:19

journalStr = journalStr .. " (" .. cite.issue .. ")" end if cite.pages then journalStr = journalStr .. ": pp...

Click to read more »
Module:ISO 639 name/ISO 639 name to code/make
Jumat, 2024-07-12 01:56:19

table.sort (out); -- sort in language name order local key_str = table.concat ({ '--[[--------------------------< I S O _ 6 3 9 _ N A...

Click to read more »
Module:Sandbox/Saaswath Sundaresan
Sabtu, 2018-12-08 18:13:38

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.temperature...

Click to read more »
Module:YouTubeSubscribers
Sabtu, 2024-02-24 10:12:47

'/Julian' attached i, j = dateStr:find("[T/]") if i then dateStr = dateStr:sub(1, i-1) end local from = 1 if dateStr:sub(1,1) == "-" then -- this...

Click to read more »
Module:Grand Slam Track
Jumat, 2025-06-13 12:06:37

Q_DNS then timeStr = 'DNS' end if endCause == Q_DNF then timeStr = 'DNF' end if endCause == Q_DQ then timeStr = 'DQ' end ...

Click to read more »
Module:ComplForColorModules
Rabu, 2023-05-17 05:27:36

$2" --local Color = "Color" --local Legend = "legend" local function I18nStr (S, ...) return TNTT.GetMsgP (I18n, S, {...}) end function p.ColorNameInvFromS0...

Click to read more »
Module:Sandbox/Arcayn
Kamis, 2018-10-25 04:32:24

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end -- Task 03 p.temperature...

Click to read more »
Module:Sandbox/PMP5728
Jumat, 2019-12-20 08:35:36

return msg end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end return p...

Click to read more »
Module:Sandbox/Alicia Fagerving (WMSE)
Rabu, 2019-08-14 22:14:59

return "Meow" end p.Hi = function(frame) strName = frame.args.name or "default name" return "Hi there " .. strName .. ".<hr>" end p.Temperature = function(frame)...

Click to read more »
Module:Sandbox/Alexiscoutinho/Lua set
Selasa, 2024-03-26 21:49:52

= tostring(elem) end end local str = '{' .. table.concat(string_elems, ', ') .. '}' return str end, len = function (self) return TableTools...

Click to read more »
Module:Sandbox/Ppolca
Minggu, 2018-12-09 06:21:58

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Sandbox/Tarunkpal2
Sabtu, 2018-11-10 23:24:30

end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function...

Click to read more »
Module:Popular list
Selasa, 2026-02-24 19:40:07

metaStr = metaStr .. ", " .. entry.importance .. " importance" end -- Cap it: ) metaStr = metaStr .. ")" ...

Click to read more »
Module:Sandbox/Kinkenan
Selasa, 2020-01-21 14:38:15

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.converttemp(...

Click to read more »
Module:Sandbox/Onehsot
Senin, 2019-12-23 02:10:38

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.converttemp...

Click to read more »
Module:Sandbox/lizaamini
Kamis, 2018-01-11 07:10:19

world!" end function p.Hi(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Excerpt/portals
Kamis, 2026-07-30 07:40:52

5=true} local function numberFlags(str) if not str then return {} end local flags = {} local ranges = mw.text.split(str, ",") -- parse ranges: "1,3-5"...

Click to read more »
Module:A or an
Selasa, 2020-05-19 02:06:15

trim(args[1]) local pron = 'a' local ret = '' if s and s ~= '' then local origStr = s s = mw.ustring.gsub(s, '</?[A-Za-z][^>]->', '') -- Remove HTML tags...

Click to read more »
Module:Sandbox/hdinh77
Minggu, 2018-12-09 13:25:30

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.temperature(frame)...

Click to read more »
Module:Sandbox/Ttonyxx
Sabtu, 2018-11-24 09:56:18

<br>" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end -- Ttonyxx Google...

Click to read more »
Module:Popular list/sandbox
Minggu, 2026-02-01 10:47:18

metaStr = metaStr .. ", " .. entry.importance .. " importance" end -- Cap it: ) metaStr = metaStr .. ")" ...

Click to read more »
Module:Sandbox/Sherylleong
Jumat, 2020-01-17 17:10:20

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end function p.converttemp(frame)...

Click to read more »
Module:Sandbox/Trappist the monk/Endorsements group/config
Kamis, 2026-03-26 01:20:07

paragraph_open = paragraph_open, -- paragraph tag with styling heading_fmt_str = '%s<b>%s</b></p>\n%s', -- %s is paragraph_open, heading, endorsement...

Click to read more »
Module:YouTubeSubscribers/sandbox
Kamis, 2023-05-25 21:25:06

'/Julian' attached i, j = dateStr:find("[T/]") if i then dateStr = dateStr:sub(1, i-1) end local from = 1 if dateStr:sub(1,1) == "-" then -- this...

Click to read more »
Module:Sandbox/Denis1245
Selasa, 2018-12-04 02:41:11

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end p.Temperature...

Click to read more »
Module:Citation/CS1/Identifiers
Sabtu, 2026-08-08 20:56:47

characters. ]] local function is_valid_isxn (isxn_str, len) local temp = 0; isxn_str = { isxn_str:byte(1, len) }; -- make a table of byte values...

Click to read more »
Module:RFX report
Minggu, 2025-10-05 04:35:50

percentStr = mw.ustring.format( '%d', percent ) if percent == 0 and supports == 0 and opposes == 0 and neutrals == 0 then percentStr = 'N/A'...

Click to read more »
Module:Sandbox/TheUnit 72/Universal clickable button/sandbox
Jumat, 2026-05-22 21:45:42

DEFAULT_RADIUS = 2 local function normalizeKey(str) if not str then return nil end str = tostring(str):lower() :gsub("^%s+", "") :gsub("%s+$"...

Click to read more »
Module:Sandbox/Piotrbar321
Rabu, 2020-01-22 02:44:45

" end p.Hi = function( frame ) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end -- Lua Task 3...

Click to read more »
Module:ChartColors/sandbox
Selasa, 2019-12-10 06:23:07

require "Module:SimpleDebug" local I18n = 'ChartColors' local function I18nStr (S, ...) return TNTT.GetMsgP (I18n, S, {...}) end --local RS_ColorNameInvalid...

Click to read more »
Module:Sandbox/Aayush dev/sometest
Kamis, 2019-12-19 23:29:34

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".<br>" end --Lua Task 3 -...

Click to read more »
Module:Sandbox/Andreyyshore/Vertical header
Rabu, 2018-10-31 07:46:59

local p = {} function p.stack(str, vertAlign, noBold) local t = {} local breakPattern = "<[bB][rR] */? *>" local function splitLines(line) table...

Click to read more »
Module:Category main article/sandbox
Kamis, 2025-11-20 17:16:52

upper):gsub('^[lL]ist%sof%s+', '') end local compareStr if usedAutoFill then compareStr = normalizeTitle(firstLink) else local raw = (options...

Click to read more »
Module:Sandbox/Ribhav2002
Sabtu, 2018-12-01 23:36:24

is task 2 p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end --below this is...

Click to read more »
Module:Sandbox/Laxya2002
Kamis, 2018-12-06 04:09:39

world!" end p.Hi = function(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ".<br>" end -- Task 3 p.temperature=...

Click to read more »
Module:LightDarkColor
Senin, 2025-06-23 01:14:22

getArgs(frame) local rgbStr = args[1] or error("RGB not specified", 1) rgbStr = mw.text.trim(rgbStr) local rgb = mw.text.split(rgbStr, ",") rgb[1] = tonumber(rgb[1])...

Click to read more »
Module:Sandbox/Brilliand
Rabu, 2024-06-26 12:54:49

nil then sep = "%s" end local t = {} for str in string.gmatch(s, "([^"..sep.."]+)") do t[#t+1] = str:gsub("^%s+", ""):gsub("%s+$", "") end return...

Click to read more »