Search Results: Module:Array length
Sorry, the article you're looking for isn't specifically available. Here are related topics:
Module:Array
Selasa, 2023-08-22 22:32:32local Array = {} local array_constructor local function load_table_module() return require "Module:TableTools" end -- Copy table library so as not to...
Click to read more »Module:Array/testcases
Rabu, 2019-09-18 04:53:15local export = {} local Array = require "Module:array" local function collect(iter) local vals = Array() for val in iter do vals:insert(val) end...
Click to read more »Module:Image array
Rabu, 2025-12-31 00:11:02[[template:image array]] local p = {} local function isnotempty(s) return s and s:match( '^%s*(.-)%s*$' ) ~= '' end local function renderArrayCell( img,...
Click to read more »Module:Array/doc
Jumat, 2024-08-30 03:17:01Based on Module:array on English Wiktionary. See there for more information. Formerly used the submodule Module:Array/table, which was a copy of Module:table...
Click to read more »Module:Params/doc/examples/array
Selasa, 2025-09-30 20:03:46the {{Array}} template, written using Module:Params. It handles five functions: count, get, pos, math and sort. {{module:params/doc/examples/array|<Function>|<Array...
Click to read more »Module:Image array/sandbox
Rabu, 2025-12-31 00:08:56[[template:image array]] local p = {} local function isnotempty(s) return s and s:match( '^%s*(.-)%s*$' ) ~= '' end local function renderArrayCell( img,...
Click to read more »Module:Params/doc/examples/array/doc
Selasa, 2025-09-30 20:09:58the {{Array}} template, written using Module:Params. It handles five functions: count, get, pos, math and sort. {{module:params/doc/examples/array|<Function>|<Array...
Click to read more »Module:Image array/doc
Jumat, 2024-08-30 04:50:10Implements {{image array}}...
Click to read more »Module:TableTools
Minggu, 2024-08-18 11:19:07as it is -- useful for determining whether a given table key is in the array part or the -- hash part of a table. ----------------------------------...
Click to read more »Module:TableTools/sandbox
Kamis, 2024-08-15 03:03:06as it is -- useful for determining whether a given table key is in the array part or the -- hash part of a table. ----------------------------------...
Click to read more »Module:TableTools/doc
Sabtu, 2026-04-04 00:57:34the first array in place by appending all elements from the second array. TableTools.inArray(array, searchElement) TableTools.inArray(array, searchElement...
Click to read more »Module:Sandbox/Erutuon/Temperature arrays
Rabu, 2016-10-05 09:35:23concatenation errors. end end -- Input parsing function make_array(parameter, array, frame) local array = {} local n = 1 for number in parameter:gmatch("%-...
Click to read more »Module:Sandbox/Erutuon/Temperature arrays/mw.html
Jumat, 2017-09-15 09:04:48length, output_format = output_format, display_unit = display_unit, array_names = array_names } end local function precision(value, decimals) local string...
Click to read more »Module:Includes/doc
Kamis, 2024-08-15 03:19:13true or false. includes(array, searchElement) includes(array, searchElement, fromIndex) array is the array to search. If type(array) ~= 'table' the module...
Click to read more »Module:Set
Sabtu, 2021-01-23 16:48:08then if trackArrays[k] then local array = ret[k] local valExists for _, arrayVal in ipairs(array) do if arrayVal == v then ...
Click to read more »Module:Wd
Rabu, 2025-07-23 02:53:47function newObject(array) local obj = {} -- new object obj.str = "" array[#array + 1] = obj -- array{object} obj.parent = array return obj ...
Click to read more »Module:Formatted appearance
Senin, 2024-05-06 18:55:40which is used to get a correctly formatted entry. -- Function checks if the array had a value added by checking the counter, -- and returns the relevant result...
Click to read more »Module:Namespace detect
Minggu, 2014-04-06 00:01:23function equalsArrayValue(t, value) -- Returns true if value equals a value in the array t. Otherwise -- returns false. for i, arrayValue in ipairs(t)...
Click to read more »Module:Formatted appearance/sandbox
Senin, 2024-05-06 18:43:16which is used to get a correctly formatted entry. -- Function checks if the array had a value added by checking the counter, -- and returns the relevant result...
Click to read more »Module:TableTools/testcases
Kamis, 2026-01-29 20:34:46affixNums(affixArray, 'a') local bNums = tt.affixNums(affixArray, 'b') local cdNums = tt.affixNums(affixArray, 'c', 'd') local efNums = tt.affixNums(affixArray,...
Click to read more »Module:Random
Rabu, 2015-11-11 23:32:54----------------------------- local function randomizeArray(t, limit) -- Randomizes an array. It works by iterating through the list backwards, each...
Click to read more »Module:Wd/sandbox
Jumat, 2025-08-08 00:45:17function newObject(array) local obj = {} -- new object obj.str = "" array[#array + 1] = obj -- array{object} obj.parent = array return obj ...
Click to read more »Module:Includes
Rabu, 2024-08-14 03:58:41JavaScript array.includes(searchElement) or -- array.includes(searchElement, fromIndex), except fromIndex is 1 indexed return function (array, searchElement...
Click to read more »Module:Exponential search/doc
Kamis, 2025-11-20 08:29:34when you want to find a key in some kind of sorted array, and you want to do it by checking as few array elements as possible. This could include situations...
Click to read more »Module:CallAssert
Rabu, 2019-03-13 19:54:41) end local function mapArray(func, array, count) local result = {} for i = 1, count or #array do result[i] = func(array[i]) end return result end...
Click to read more »Module:Random/sandbox
Selasa, 2023-04-04 01:40:10----------------------------- local function randomizeArray(t, limit) -- Randomizes an array. It works by iterating through the list backwards, each...
Click to read more »Module:Sandbox/Erutuon/Temperature arrays/mw.html/doc
Selasa, 2016-09-27 05:44:28This is a version of Module:Sandbox/Erutuon/Temperature arrays that creates tables using the MediaWiki HTML library instead of wikitext. It generates the...
Click to read more »Module:ArrayList
Senin, 2025-02-03 02:13:56positions[occurrence] or -1 end end -- Perform mathematical operations on numeric array items function p.math(frame) local str = frame.args[2] or "" local...
Click to read more »Module:Namespace detect/sandbox
Sabtu, 2014-04-05 23:58:53function equalsArrayValue(t, value) -- Returns true if value equals a value in the array t. Otherwise -- returns false. for i, arrayValue in ipairs(t)...
Click to read more »Module:Unicode data/scripts/make
Kamis, 2020-03-12 02:28:30local p = {} local Array = require 'Module:Array' local function pattern_escape(str) return (str:gsub('%p', '%%%1')) end function p...
Click to read more »Module:Portal pictures
Jumat, 2021-11-19 07:00:17formatMoreHtml(more) if #dates > 0 then local randomDates = randomModule.main('array', {t=dates, limit=limit}) for _, potdDate in ipairs(randomDates) do ...
Click to read more »Module:Sandbox/Rockingerser/Json
Minggu, 2023-03-26 05:01:26module:stringify(Table) local result = "" local array = false for _, value in ipairs(Table) do array = true if type(value) == "string" then ...
Click to read more »Module:Citation/CS1/COinS
Sabtu, 2025-04-12 20:48:47>-------------------------------------- ]] local has_accept_as_written, is_set, in_array, remove_wiki_link, strip_apostrophe_markup; -- functions in Module:Citation/CS1/Utilities...
Click to read more »Module:Sandbox/Joriki
Minggu, 2024-08-04 12:14:53[i] = tonumber (data [i]) end max = math.max (max,#data) table.insert (array,data) table.insert (labels,label) end local function appendLine (line)...
Click to read more »Module:Unicode data/derived core properties/make
Rabu, 2019-09-18 08:52:37ranges = { ... }, } return data ]] local Array = require "Module:array" local printed_ranges = Array() for _, range in ipairs(ranges) do local...
Click to read more »Module:Sandbox/Erutuon/scripts
Jumat, 2018-04-13 02:34:59require 'Module:Language/scripts'.codepointToScript local function in_array(arr, val) for i, v in ipairs(arr) do if v == val then return true...
Click to read more »Module:United Nations Security Council election results
Rabu, 2024-08-07 09:41:06addNumbers (label,data) maxcols = math.max (maxcols,#data) table.insert (array,data) table.insert (labels,label) end local function addRow (label,data)...
Click to read more »Module:Unicode data/age/make
Kamis, 2019-09-19 05:46:26"):rep(#'"12.1"' - (#age + 2)) end local Array = require "Module:array" local printed_ranges = Array() for _, range in ipairs(ranges) do local...
Click to read more »Module:Auto compact TOC/sandbox
Minggu, 2024-09-29 12:49:49("[[#%s|%s]]"):format(anchor, link_text) end local Array_mt = { __index = table } local function Array() return setmetatable({}, Array_mt) end function p.make_TOC(frame)...
Click to read more »Module:Multiple image
Rabu, 2026-05-27 20:25:05{tostring(ic)} end -- convert the array of strings to an array of numbers, -- adding any implied/missing numbers at the end of the array local r = 1 local thisrow...
Click to read more »Module:NewDYKnomination
Senin, 2024-10-21 15:14:24Removes gaps from sparse arrays. This is used to process numbered arguments -- like author2 and ALT4. local compressSparseArray = require("Module:TableTools")...
Click to read more »Module:Sandbox/Timbaaa/test/1
Rabu, 2020-08-26 23:25:45return result end local function arrayTocsv(array) local result = '' for i = 1, #array do result = result..array[i]..', ' end return result end...
Click to read more »Module:Succession table monarch/doc
Kamis, 2022-12-08 08:03:50monarch}} template. Also, the functions fromArray and fromArgs can be called from another module like so: fromArray receives the full list of arguments of...
Click to read more »Module:Citation/CS1/COinS/sandbox
Jumat, 2025-11-21 02:45:55>-------------------------------------- ]] local has_accept_as_written, is_set, in_array, remove_wiki_link, strip_apostrophe_markup; -- functions in Module:Citation/CS1/Utilities...
Click to read more »Module:Set/doc
Selasa, 2021-11-16 10:03:12different values for the same table key, the table value is converted to an array holding all of the different values. For example, for the tables {foo =...
Click to read more »Module:Sensitive IP addresses/API/doc
Selasa, 2020-07-07 20:26:21The following parameters are available to the query function: test - an array of IP addresses and/or IP ranges to test for sensitivity. IP addresses and...
Click to read more »Module:Infobox television disambiguation check
Selasa, 2026-01-06 18:30:17remove a value from an array ----------------------------------------------------------------------- local function removeFromArray(t, delete) local j =...
Click to read more »Module:Separated entries
Senin, 2025-10-13 23:33:18parameter can also be specified. local compressSparseArray = require('Module:TableTools').compressSparseArray local p = {} function p._main(args) local dataPlural...
Click to read more »Module:Multi-section link
Senin, 2024-12-09 18:03:49sections[k] = v end end -- Compress the sections array. local function compressArray(t) local nums, ret = {}, {} for num in pairs(t) do ...
Click to read more »Module:Current RfX
Senin, 2024-11-18 07:16:30matter'] = true, ['Header'] = true, ['bureaucratship'] = true } -- Get an array of title objects for current RfXs. function p.titles() local content =...
Click to read more »Module:Link with country/sandbox
Selasa, 2024-05-21 17:27:14test -- change comma list to array Countryarray = split_with_comma(frame.args[1]) -- put each array entry {as a table} through Module:ISO...
Click to read more »Module:Link with country
Selasa, 2024-05-21 17:38:05test -- change comma list to array Countryarray = split_with_comma(frame.args[1]) -- put each array entry {as a table} through Module:ISO...
Click to read more »Module:Sandbox/Element10101/Split
Kamis, 2025-06-05 05:29:48space if sep == nil then sep = '%s' end -- define an array local t = {} -- split string based on sep for str in string...
Click to read more »Module:Multiple image/sandbox
Rabu, 2026-05-27 11:27:52{tostring(ic)} end -- convert the array of strings to an array of numbers, -- adding any implied/missing numbers at the end of the array local r = 1 local thisrow...
Click to read more »Module:User:Zackmann08/unknown links
Jumat, 2026-06-05 05:59:15new(title):getContent()) local array = data["*"][1]["a"]["*"] local text = '' local list = {} for i = 1+offset, math.min(1000+offset, #array) do local title...
Click to read more »Module:Shortcut
Senin, 2024-03-11 10:26:56options[k] = v end end -- Compress the shortcut array, which may contain nils. local function compressArray(t) local nums, ret = {}, {} for k in pairs(t)...
Click to read more »Module:Separated entries/sandbox
Senin, 2025-10-13 23:32:53parameter can also be specified. local compressSparseArray = require('Module:TableTools').compressSparseArray local p = {} function p._main(args) local dataPlural...
Click to read more »Module:Article history/doc
Jumat, 2024-08-30 03:17:53- returns an array containing the template's Notice objects. ArticleHistory:getCollapsibleNoticeObjects() - returns an array containing the template's...
Click to read more »Module:Sensitive IP addresses/summary
Jumat, 2025-02-28 10:55:35cidr:gsub(pattern, '') return cidr end -- Takes an array of CIDR ranges and returns a new array with ranges -- appropriate for printing. local function...
Click to read more »Module:Sandbox/Usien6
Jumat, 2018-08-24 06:12:43rogramming/Functions function where(criteria, array) local result = {} for key, value in pairs(array) do if criteria(key, value) then ...
Click to read more »Module:Sandbox/Element10101/Hymenoptera
Kamis, 2025-06-05 06:03:49space if sep == nil then sep = '%s' end -- define an array local t = {} -- split string based on sep for str in string...
Click to read more »Module:Multi-section link/sandbox
Senin, 2024-12-09 18:00:44sections[k] = v end end -- Compress the sections array. local function compressArray(t) local nums, ret = {}, {} for num in pairs(t) do ...
Click to read more »Module:Portal image banner
Senin, 2023-04-03 03:55:58randomiseArgs = { ['t'] = imageLines } local randomisedLines = randomModule.main('array', randomiseArgs ) local output, galleryContent if not mode then galleryContent...
Click to read more »Module:Sandbox/Nyoron/anyToString
Senin, 2016-05-16 23:17:54end local array_keys = {} local table_keys = {} for key, value in ipairs( var ) do array_keys[key] = true ...
Click to read more »Module:Anchor/sandbox
Sabtu, 2024-06-15 22:08:25local args = getArgs(frame) local argArray = tableTools.compressSparseArray(args) return p._main(unpack(argArray)) end function p._main(...) -- Generate...
Click to read more »Module:NewDYKnomination/sandbox
Minggu, 2025-11-09 04:51:52Removes gaps from sparse arrays. This is used to process numbered arguments -- like author2 and ALT4. local compressSparseArray = require("Module:TableTools")...
Click to read more »Module:GHS phrases
Rabu, 2026-01-28 22:40:13or "P" -- phraseID = e.g. "H201", "P231+P234" -- phrase text read from array tables in [[Module:GHS phrases/data]] -- -- Implements: [[Template:GHS phrases]]...
Click to read more »Module:Road data/strings/USA/AS
Sabtu, 2021-09-18 03:14:06Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/HKG
Senin, 2021-12-20 06:27:01Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Jf-JSON
Kamis, 2016-12-08 10:48:33default_pretty_indent } local isArray = { __tostring = function() return "JSON array" end } isArray.__index = isArray local isObject = { __tostring...
Click to read more »Module:Side box/testcases
Selasa, 2026-02-03 20:26:59-------------------- function suite:assertArrayContainsString(expected, t) -- This only works on arrays that only contain strings. local sep = '|SEPARATOR|'...
Click to read more »Module:Shortcut/sandbox
Jumat, 2025-06-06 00:20:28options[k] = v end end -- Compress the shortcut array, which may contain nils. local function compressArray(t) local nums, ret = {}, {} for k in pairs(t)...
Click to read more »Module:GHS phrases/sandbox
Rabu, 2026-01-28 23:17:51or "P" -- phraseID = e.g. "H201", "P231+P234" -- phrase text read from array tables in [[Module:GHS phrases/data]] -- -- Implements: [[Template:GHS phrases]]...
Click to read more »Module:Params/doc/examples
Senin, 2025-09-29 21:12:26in the documentation of Module:Params. Oxford comma Oxford comma/doc array array/doc check for unknown parameters check for unknown parameters/doc constructed...
Click to read more »Module:Anchor
Jumat, 2020-09-25 05:32:51local args = getArgs(frame) local argArray = tableTools.compressSparseArray(args) return p._main(unpack(argArray)) end function p._main(...) -- Generate...
Click to read more »Module:Str find word
Senin, 2023-04-03 07:35:55-- Reads and parses a word list and returns a table with words (simple array) -- words list can be: source, andwords-to-check, orwords-to-check -- step...
Click to read more »Module:Wikipedia ads
Senin, 2019-02-25 05:34:26local imageDataArray, length if args[1] then imageDataArray = {} for i, id in ipairs(args) do imageDataArray[#imageDataArray + 1] = getSomeImageData(id...
Click to read more »Module:Infobox television disambiguation check/sandbox
Selasa, 2025-12-30 10:41:23remove a value from an array ----------------------------------------------------------------------- local function removeFromArray(t, delete) local j =...
Click to read more »Module:Jf-JSON/sandbox
Minggu, 2018-02-18 02:54:37default_pretty_indent } local isArray = { __tostring = function() return "JSON array" end } isArray.__index = isArray local isObject = { __tostring...
Click to read more »Module:Includes/testcases
Kamis, 2024-08-15 02:00:00return false self:equals('includes("b","b")', includes("b","b"), false) -- array is not a table self:equals('includes({"a", "b", "c", "d"})', includes({"a"...
Click to read more »Module:A or an/sandbox
Sabtu, 2022-05-21 19:23:46= { a = "a", an = "an", } local function findWord(text, array) for _, v in ipairs(array) do if mw.ustring.find(text, '^' .. v .. '$') then return...
Click to read more »Module:Citation/CS1
Sabtu, 2026-02-28 22:14:46or 'title'}); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Sandbox/Liinisx
Jumat, 2023-01-13 22:32:10function newObject(array) local obj = {} -- new object obj.str = "" array[#array + 1] = obj -- array{object} obj.parent = array return obj ...
Click to read more »Module:Rfx/doc
Senin, 2022-08-22 20:27:57getOpposeUsers(): gets an array containing the usernames that opposed the RfX. Functions similarly to getSupportUsers(). getNeutralUsers(): gets an array containing...
Click to read more »Module:Shortcut/doc
Kamis, 2024-12-05 06:16:07syntax: mShortcut._main(shortcuts, options, frame, cfg) shortcuts is an array of shortcut page names. (required) options is a table of options. The following...
Click to read more »Module:Math
Jumat, 2026-04-10 21:26:08v) end end return unpack(ret) end local function makeArgArray(...) -- Makes an array of arguments from a list of arguments that might include nils...
Click to read more »Module:European and national party data/Wd
Senin, 2025-06-09 18:51:16function newObject(array) local obj = {} -- new object obj.str = "" array[#array + 1] = obj -- array{object} obj.parent = array return obj ...
Click to read more »Module:Current RfX/doc
Senin, 2025-02-24 18:48:59running for bureaucratship, Example3. currentRfx.rfxnames() This returns an array containing the page names of all current requests for adminship and bureaucratship...
Click to read more »Module:Weather/sandbox
Jumat, 2022-10-21 17:06:22palette, args.messages) local makeArray = _makeArray(format) local a, b, c = makeArray(args.a), makeArray(args.b), makeArray(args.c) local output = {} if...
Click to read more »Module:Bot task
Senin, 2023-07-17 04:36:46text, tag = 'p' } end local function has_value(array, val) for index, value in ipairs(array) do if value == val then return...
Click to read more »Module:Sandbox/PeaceDeadC/Wd
Jumat, 2022-04-01 19:27:32function newObject(array) local obj = {} -- new object obj.str = "" array[#array + 1] = obj -- array{object} obj.parent = array return obj...
Click to read more »Module:User:Dieknon/TestOld
Minggu, 2026-05-24 19:13:22{tostring(ic)} end -- convert the array of strings to an array of numbers, -- adding any implied/missing numbers at the end of the array local r = 1 local thisrow...
Click to read more »Module:Sandbox/Was a bee/wd20170930
Sabtu, 2017-10-07 16:37:56function newObject(array) local obj = {} -- new object obj.str = "" array[#array + 1] = obj -- array{object} obj.parent = array return obj...
Click to read more »Module:Sandbox/Premeditated/Reliable-sources
Senin, 2022-10-24 04:04:03return result end local function orderedpairs(array, order) if not order then return pairs(array) end -- return iterator function local i = 0 ...
Click to read more »Module:Road data/strings/GBR
Selasa, 2025-09-02 23:09:09Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Choose random TAFI
Jumat, 2019-11-29 03:29:57local articles = mw.text.split(list, '#') -- Split list into an array of substrings (each containing an article). local chosen = articles[math...
Click to read more »Module:Find sources/doc
Kamis, 2024-10-17 00:11:21above. This parameter is required. searchTerms is an array of search terms. Each item in the array corresponds to a numbered search term as outlined in...
Click to read more »Module:Sandbox/Thayts/Wd
Senin, 2022-07-18 02:01:58squashed and not array[1]) then array[#array + 1] = value else refs[1] = ref end end value = table.concat(array, mt.sep[1]) else...
Click to read more »Module:Diff/sandbox
Kamis, 2025-10-09 23:38:15makes use of nested metatables to create a sparse, --- auto-initializing 2D array. This is clever but complex and slightly --- unconventional in order to...
Click to read more »Module:NewDYKnomination/sandbox2
Selasa, 2020-07-14 06:00:52Removes gaps from sparse arrays. This is used to process numbered arguments -- like author2 and ALT4. local compressSparseArray = require("Module:TableTools")...
Click to read more »Module:Sandbox/Nathan fraignt/Names
Rabu, 2018-11-21 22:50:36local dutchWordsArray = {"van", "der", "de", "den"} local dutchWordsArray_idx = {} for i,v in ipairs(dutchWordsArray) do dutchWordsArray_idx[v] = i end...
Click to read more »Module:User:SuggestBot/WikiProjects
Minggu, 2015-08-23 02:20:55end return sorted_arts end local function randomizeArray(t, limit) -- Randomizes an array. It works by iterating through the list backwards, each...
Click to read more »Module:Section link
Minggu, 2024-06-02 21:36:41sections[1] = p, s end end -- Compress the sections array. local function compressArray(t) local nums, ret = {}, {} for num in pairs(t) do ...
Click to read more »Module:User:Dieknon/Test
Minggu, 2026-05-24 19:11:55{tostring(ic)} end -- convert the array of strings to an array of numbers, -- adding any implied/missing numbers at the end of the array local r = 1 local thisrow...
Click to read more »Module:DYK nompage links/doc
Jumat, 2024-08-30 04:03:31nominationPage is the nomination page name, as a string. historyPages is an array of page names to display (also strings). Both parameters are required, and...
Click to read more »Module:Other people
Rabu, 2017-10-11 00:19:53mArguments = require('Module:Arguments') local compressArray = require('Module:TableTools').compressSparseArray local p = {} function p.otherPeople (frame) --Get...
Click to read more »Module:Sandbox/Tim Ivorson
Jumat, 2026-04-03 22:55:22{tostring(ic)} end -- convert the array of strings to an array of numbers, -- adding any implied/missing numbers at the end of the array local r = 1 local thisrow...
Click to read more »Module:Section link/doc
Jumat, 2026-03-13 10:20:31of title, or the current title if that is not specified. sections - an array of section names to link to, or a string to link to just one section name...
Click to read more »Module:Message box/doc
Jumat, 2025-11-14 23:54:09boxes. substCheck – whether to perform a subst check or not. classes – an array of classes to use with the message box. imageEmptyCell – whether to use...
Click to read more »Module:Subject bar
Senin, 2026-04-13 07:28:52args[key] end local compressSparseArray = require('Module:TableTools').compressSparseArray values = compressSparseArray(values) --- squeeze out gaps/nils...
Click to read more »Module:Weather/stableSandbox
Kamis, 2016-10-06 07:51:52concatenation errors. end end -- Input parsing function make_array(parameter, array, frame) local array = {} local n = 1 for number in parameter:gmatch("%-...
Click to read more »Module:Other people/sandbox
Senin, 2016-05-16 08:41:44mArguments = require('Module:Arguments') local compressArray = require('Module:TableTools').compressSparseArray local p = {} function p.otherPeople (frame) --Get...
Click to read more »Module:Citation/CS1/sandbox
Minggu, 2026-04-26 21:34:02or 'title'}); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Other uses
Selasa, 2020-06-02 06:06:08= require('Module:TableTools') local args = mTableTools.compressSparseArray(mArguments.getArgs(frame)) local title = mw.title.getCurrentTitle().prefixedText...
Click to read more »Module:Sandbox/Matthiaspaul/Citation/CS1/COinS
Selasa, 2020-06-16 10:16:17T I O N S >-------------------------------------- ]] local is_set, in_array, remove_wiki_link, strip_apostrophe_markup; -- functions in...
Click to read more »Module:Sandbox/Jothefiredragon/Foss
Sabtu, 2024-09-14 04:55:06= "[[Category:" local suf = "]]" local fos = "free and open-source" -- array of categories with “free” in its name to be replaced with “free and open-source”...
Click to read more »Module:TFA title
Selasa, 2025-02-04 16:12:25title for the specified "YYYY-MM-DD" date. May be -- a single title, an array of multiple titles, or nil, if no title is known function p.title(date)...
Click to read more »Module:Load WikiProject Modules
Senin, 2025-02-24 07:52:48sets length of image array to the number of icons local toc = "<div style='margin-bottom:4em;'>" .. require('Module:Image array')._imagearray(toc_args)...
Click to read more »Module:Section link/sandbox
Rabu, 2025-10-08 21:03:32sections[1] = p, s end end -- Compress the sections array. local function compressArray(t) local nums, ret = {}, {} for num in pairs(t) do ...
Click to read more »Module:Sandbox/Erutuon
Senin, 2019-09-16 16:39:40ranges = { ... }, } return data ]] local Array = require "Module:array" local printedRanges = Array() for _, range in ipairs(ranges) do local...
Click to read more »Module:Sandbox/Matt Fitzpatrick/Shortcut
Rabu, 2016-04-27 17:00:52options[k] = v end end -- Compress the shortcut array, which may contain nils. local function compressArray(t) local nums, ret = {}, {} for k in pairs(t)...
Click to read more »Module:Probox
Selasa, 2023-06-13 00:55:51orderStringtoNumber(array, val, num) if num > table.getn(array) then array[#array+1] = val else table.insert(array, num, val) end...
Click to read more »Module:Portal
Minggu, 2025-05-25 01:07:03concat(result,"|") end local function getAllImageTable() -- Returns an array containing all image subpages (minus aliases) as loaded by mw.loadData....
Click to read more »Module:Format link
Selasa, 2022-10-04 20:37:11formatPages(options, pages) -- Formats an array of pages using formatLink and the given options table, -- and returns it as an array. Nil values are not allowed....
Click to read more »Module:Graph
Sabtu, 2025-07-12 23:57:01v_annoLine = numericArray(v_annoLineString) else v_annoLine = stringArray(v_annoLineString) end v_annoLabel = stringArray(v_annoLabelString)...
Click to read more »Module:Navbox
Rabu, 2026-02-25 00:16:57= mw.loadData('Module:Navbox/configuration') local inArray = require("Module:TableTools").inArray local getArgs -- lazily initialized local hiding_templatestyles...
Click to read more »Module:Italian municipality/sandbox
Minggu, 2026-03-08 04:32:53values end function e.array_without_first(array) local ret={} local count=#array for i=2,count do table.insert(ret, array[i]) end return ret...
Click to read more »Module:Sandbox/Johnuniq/message
Rabu, 2014-02-05 07:22:41function message(cfgKey, valArray) local msg = cfg[cfgKey] if valArray then return mw.message.newRawMessage(msg):params(valArray):plain() end return msg...
Click to read more »Module:Sandbox/Erutuon/Climate/stats
Rabu, 2024-04-17 18:46:03return error(string.format(level, ...), 2) end end local varargs_or_array_mt = { __index = { arr_func = function (self, arr, i, j) i = i or...
Click to read more »Module:Selected recent additions
Senin, 2026-03-16 11:37:42['limit'] = maxItems } local randomisedItems = randomModule.main('array', randomiseArgs ) output = table.concat(randomisedItems, '\n') end if...
Click to read more »Module:Compact list
Kamis, 2022-12-29 11:04:30require('Module:List').horizontal local compressSparseArray = require('Module:TableTools').compressSparseArray local p = {} --[[ Combine named-and-numbered arguments...
Click to read more »Module:Sandbox/urastats2
Rabu, 2026-02-25 18:24:00local lang = mw.language.getContentLanguage() -- Load the data array -- https://commons.wikimedia.org/wiki/Data:URAstats_Data.tab local...
Click to read more »Module:Sandbox/Izno/Pie chart
Sabtu, 2023-10-07 00:23:52local p = {} local compress_sparse_array = require('Module:TableTools').compressSparseArray local function arg_or_default(arg, default) if arg and mw...
Click to read more »Module:Wikipedia ads/sandbox
Minggu, 2023-06-11 23:13:19local imageDataArray, length if args[1] then imageDataArray = {} for i, id in ipairs(args) do imageDataArray[#imageDataArray + 1] = getSomeImageData(id...
Click to read more »Module:Format link/doc
Kamis, 2025-09-18 14:37:16format many links. It formats an array of pages using the _formatLink function, and returns the result as an array. Options in the options table are...
Click to read more »Module:Road data/strings/MEX
Jumat, 2025-01-17 11:07:54Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Interval
Kamis, 2018-11-29 08:11:27require('Module:Arguments').getArgs local function getArgNums(args) -- Returns an array containing the keys of all positional arguments -- that contain data...
Click to read more »Module:Italian municipality
Sabtu, 2026-04-18 01:20:52values end function e.array_without_first(array) local ret={} local count=#array for i=2,count do table.insert(ret, array[i]) end return ret...
Click to read more »Module:DYK checklist
Rabu, 2025-03-05 06:12:13makeArgLowerCase(args, 'qpq', 'na') end -- If any of the keys in the keys array are in the table t, return true; -- otherwise, return false. local function...
Click to read more »Module:Build bracket/Paths/sandbox
Selasa, 2025-08-26 10:28:26notempty(array[2]) then array[3] = array[3] or {} for m = 1, #array[2] do local pair = split(array[2][m], {":"})...
Click to read more »Module:Namespace detect/data
Rabu, 2020-04-01 13:12:45always work. The cfg table -- values can be added as a string, or as an array of strings. local defaultKeys = { 'main', 'talk', 'other', 'subjectns'...
Click to read more »Module:Build bracket/Paths
Selasa, 2025-08-19 01:00:35notempty(array[2]) then array[3] = array[3] or {} for m = 1, #array[2] do local pair = split(array[2][m], {":"})...
Click to read more »Module:Portal pictures/sandbox
Jumat, 2021-11-19 06:59:31formatMoreHtml(more) if #dates > 0 then local randomDates = randomModule.main('array', {t=dates, limit=limit}) for _, potdDate in ipairs(randomDates) do ...
Click to read more »Module:Other uses/sandbox
Rabu, 2025-04-09 11:12:24= require('Module:TableTools') local args = mTableTools.compressSparseArray(mArguments.getArgs(frame)) local title = mw.title.getCurrentTitle().prefixedText...
Click to read more »Module:Broader
Kamis, 2020-04-23 19:59:57args = mTableTools.compressSparseArray(originalArgs) -- re-add non-numeric arguments omitted by compressSparseArray for _, name in pairs({'category'...
Click to read more »Module:Format link/sandbox
Selasa, 2022-10-04 20:36:21formatPages(options, pages) -- Formats an array of pages using formatLink and the given options table, -- and returns it as an array. Nil values are not allowed....
Click to read more »Module:Citation/CS1/Utilities
Minggu, 2026-01-18 02:25:10Whether needle is in haystack ]] local function in_array (needle, haystack) if needle == nil then return false; end for n, v...
Click to read more »Module:Sandbox/MJL/CS1/COinS
Sabtu, 2021-09-04 01:03:23T I O N S >-------------------------------------- ]] local is_set, in_array, remove_wiki_link, strip_apostrophe_markup; -- functions in...
Click to read more »Module:Road data/util
Rabu, 2023-05-31 03:52:14error("Unexpected function type") end return e1 < e2 end local arrayToStringAux arrayToStringAux = function(arr, indent) if type(arr) ~= "table" then...
Click to read more »Module:Math/sandbox
Jumat, 2026-04-10 00:08:08v) end end return unpack(ret) end local function makeArgArray(...) -- Makes an array of arguments from a list of arguments that might include nils...
Click to read more »Module:Load WikiProject Modules/sandbox
Senin, 2025-02-24 07:49:58sets length of image array to the number of icons toc = "<div style='margin-bottom:4em;'>" .. frame:expandTemplate{ title='Image_array', args = toc_args...
Click to read more »Module:DateI18n/sandbox
Jumat, 2022-10-21 17:07:23-------------------------- -- process datevec -- INPUT: -- * datevec - Array of {year,month,day,hour,minute,second, tzhour, tzmin} containing broken...
Click to read more »Module:Probox/sandbox
Senin, 2016-11-21 03:06:08orderStringtoNumber(array, val, num) if num > table.getn(array) then array[#array+1] = val else table.insert(array, num, val) end...
Click to read more »Module:Subject bar/sandbox
Senin, 2026-04-13 07:20:19args[key] end local compressSparseArray = require('Module:TableTools').compressSparseArray values = compressSparseArray(values) --- squeeze out gaps/nils...
Click to read more »Module:Sandbox/Lemondoge/testFunctionify
Minggu, 2023-04-16 04:33:06from first parameter") end local luaCode = frame.args[2] or '' local arrayParams = {} -- do the thing with f(a, b, c). thanks GPT-4 local function...
Click to read more »Module:Message
Sabtu, 2024-04-13 01:00:47return function(cfg) return function(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. --...
Click to read more »Module:Dashboard entry
Selasa, 2023-01-24 06:19:24content:gmatch("\n== *([^=]+) *==") local count = 0 local sect -- copy array to table so it can be iterated in reverse local secttable = {} for sect...
Click to read more »Module:Sandbox/Swpb/NPVIC chart new
Kamis, 2019-04-11 04:47:07a member); = 0 (when not a member) -- multiply a binary array of joined status by an array of EV values on those dates -- start1_EVs = parent:expandTemplate{...
Click to read more »Module:Sandbox/Hike395/Compact list
Kamis, 2020-04-02 06:57:33require('Module:Collapsible list').main local compressSparseArray = require('Module:TableTools').compressSparseArray local p = {} --[[ Combine named-and-numbered arguments...
Click to read more »Module:Discussion ping
Jumat, 2024-09-20 23:52:58in ipairs( wikitextArray ) do -- if k ~= 1 then -- if inWikiLink then -- toProcess = toProcess .. v -- if wikitextArray[ k ] == '|' then ...
Click to read more »Module:AfCResubmissions
Rabu, 2025-01-01 09:30:14the dot-point list local output = {} -- Iterate through the JSON array and add each page name to the dot-point list for _, pageName in ipairs(data)...
Click to read more »Module:Compact list/sandbox
Kamis, 2022-12-29 11:01:41require('Module:List').horizontal local compressSparseArray = require('Module:TableTools').compressSparseArray local p = {} --[[ Combine named-and-numbered arguments...
Click to read more »Module:Sensitive IP addresses/API
Rabu, 2016-11-23 16:27:57end end end local function removeDuplicates(t) -- Return a copy of an array with duplicate values removed. local keys, ret = {}, {} for i, v in ipairs(t)...
Click to read more »Module:Signpost
Sabtu, 2023-12-16 07:24:07tag in ipairs(tags) do local dataArray = tagIndex[tag] if dataArray then for i, data in ipairs(dataArray) do local obj = Article.new(data)...
Click to read more »Module:Article history
Selasa, 2024-08-20 01:12:15from the object's config. val can be either an array -- of strings or a function returning an array of category objects. self.categories = val end...
Click to read more »Module:Arbcom election banner
Selasa, 2025-10-21 04:33:53' is not a valid date.') end local function randomizeArray(t) -- Iterate through the array backwards, each time swapping the entry "i" with a random...
Click to read more »Module:US elections imagemap
Selasa, 2021-09-28 10:54:00linking to a recall election) local overrides = {} -- overrides should be an array of STATE="Override" for _, override in ipairs(stateoverrides) do local...
Click to read more »Module:Bracket/doc
Kamis, 2025-07-10 23:42:53name of the template without "Template:" ALTERNATIVE_PARAMETER_NAMES is an array of custom parameters and the standard parameter of Module:Team bracket that...
Click to read more »Module:Owidslider
Rabu, 2026-05-20 22:03:30optionsArray[#optionsArray+1] = country elseif galleryName == REGIONS_GALLERY_NAME then optionsArray[#optionsArray+1] = region else optionsArray[#optionsArray+1]...
Click to read more »Module:Main list
Jumat, 2019-01-25 04:24:26args.category ) end return p._mainList(mTableTools.compressSparseArray(args)) end function p._mainList(args) local pages = mHatlist.andList(args...
Click to read more »Module:Navbox/sandbox
Kamis, 2026-05-21 17:13:41loadData('Module:Navbox/configuration/sandbox') local inArray = require("Module:TableTools").inArray local getArgs -- lazily initialized local hiding_templatestyles...
Click to read more »Module:Sandbox/Blippy1998/U.S. House of Representatives data
Jumat, 2026-06-05 15:56:43========================== -- 3. REPRESENTATIVE TO DISTRICT -- Returns: Array of matching district strings (e.g., {"LA-4"}) to catch collisions --...
Click to read more »Module:ImportProtein
Senin, 2023-04-03 04:38:17---- You could, of course, array the output and retroactively process it ... maybe even turn this into a sortable array of function tail calls??? (My...
Click to read more »Module:Distinguish
Minggu, 2018-04-01 17:06:10args.selfref local text = args.text args = mTableTools.compressSparseArray(args) return p._distinguish(args, text, selfref) end function p._distinguish(args...
Click to read more »Module:Lang
Rabu, 2026-05-13 06:20:12Whether needle is in haystack. ]] local function in_array (needle, haystack) if needle == nil then return false; end for n,v...
Click to read more »Module:Citation/CS1/Utilities/sandbox
Kamis, 2026-01-22 22:00:17Whether needle is in haystack ]] local function in_array (needle, haystack) if needle == nil then return false; end for n, v...
Click to read more »Module:Succession table monarch
Sabtu, 2022-12-10 02:06:37or '') .. ']]') end end end return tostring(mainTag) end p.fromArray = function(args) local argElements = TableTools.numData(args, true) return...
Click to read more »Module:Sandbox/MarMi wiki/Test
Kamis, 2019-05-30 03:06:27{frameOnly = true}) local wart =require('Module:TableTools').compressSparseArray(args) return mw.text.listToText(wart, nil, nil) end function p.testPusty(ramka)...
Click to read more »Module:Sandbox/Nux
Sabtu, 2025-02-15 23:21:50tableToNiceJson(result) return '<pre>' .. jsonString .. '</pre>' end -- table/array to line-by-line JSON function p.tableToNiceJson(tbl) local jsonString...
Click to read more »Module:Lang/sandbox
Rabu, 2026-05-13 06:17:18Whether needle is in haystack. ]] local function in_array (needle, haystack) if needle == nil then return false; end for n,v...
Click to read more »Module:JSONutil/sandbox
Rabu, 2026-01-28 01:21:41return r end -- flip() JSONutil.Encoder.Array = function(apply, adapt, alert) -- Convert table to JSON array. -- Parameter: -- apply -- table...
Click to read more »Module:Graph/sandbox
Minggu, 2025-07-13 00:29:11v_annoLine = numericArray(v_annoLineString) else v_annoLine = stringArray(v_annoLineString) end v_annoLabel = stringArray(v_annoLabelString)...
Click to read more »Module:DYK checklist/sandbox
Minggu, 2025-10-05 13:07:15makeArgLowerCase(args, 'qpq', 'na') end -- If any of the keys in the keys array are in the table t, return true; -- otherwise, return false. local function...
Click to read more »Module:Arbcom election banner/sandbox
Rabu, 2025-07-30 13:55:11' is not a valid date.') end local function randomizeArray(t) -- Iterate through the array backwards, each time swapping the entry "i" with a random...
Click to read more »Module:Sandbox/Theki
Sabtu, 2026-03-07 23:49:08never left, you've been here the whole time" } m.main = function() local chosen = random.main("array", {["t"] = facts}) return chosen[1] end return m...
Click to read more »Module:Citation/CS1/Date validation
Minggu, 2026-01-18 02:25:14>-------------------------------------- ]] local add_prop_cat, is_set, in_array, set_message, substitute, wrap_style; -- imported functions from selected...
Click to read more »Module:Speedy
Senin, 2024-12-16 22:35:18not valArray then return msg end return fillStringWithArgs(msg, valArray) end function fillStringWithArgs(text, valArray) if not valArray then ...
Click to read more »Module:Sandbox/Matthiaspaul/Citation/CS1/Utilities
Selasa, 2020-06-16 10:15:41Whether needle is in haystack ]] local function in_array( needle, haystack ) if needle == nil then return false; end for n,v...
Click to read more »Module:Citation/CS1/Identifiers
Senin, 2026-01-19 22:36:14>-------------------------------------- ]] local has_accept_as_written, is_set, in_array, set_message, select_one, -- functions in Module:Citation/CS1/Utilities...
Click to read more »Module:GANList3
Sabtu, 2022-10-22 05:03:51makeArgLowerCase(args, 'status', 'wtf') end -- If any of the keys in the keys array are in the table t, return true; -- otherwise, return false. local function...
Click to read more »Module:Shogi diagram
Minggu, 2024-12-22 23:50:29and the boldness info present in the string argument -- it returns an array with these three values plus the color (for promoted pieces) -- this info...
Click to read more »Module:Article history/config
Jumat, 2024-11-22 11:26:36parameter prefix for that notice type (e.g. "dyk"), and suffixes is -- an array of parameter suffixes in addition to "date" that is used by that -- notice...
Click to read more »Module:Namespace detect/data/sandbox
Jumat, 2014-09-12 17:50:06always work. The cfg table -- values can be added as a string, or as an array of strings. local defaultKeys = { 'main', 'talk', 'other', 'subjectns'...
Click to read more »Module:Citation/CS1/Date validation/sandbox
Minggu, 2026-03-29 21:38:23>-------------------------------------- ]] local add_prop_cat, is_set, in_array, set_message, substitute, wrap_style; -- imported functions from selected...
Click to read more »Module:Str find word/sandbox
Jumat, 2023-04-21 15:19:06return sSep end end -- Check whether a single word is in a table (simple array of words) -- returns hitword or nil; iPosition is helper to keep outlist...
Click to read more »Module:UKB
Senin, 2025-11-17 21:33:14key-value pairs where the key is the canonical name and the value is an array table of aliases -- @return A table of localized names => canonical names...
Click to read more »Module:Wikidata
Sabtu, 2023-03-04 11:35:36the intended order. local function orderedpairs(array, order) if not order then return pairs(array) end -- return iterator function local i = 0 ...
Click to read more »Module:DateI18n
Senin, 2024-04-29 23:20:41-------------------------- -- process datevec -- INPUT: -- * datevec - Array of {year,month,day,hour,minute,second, tzhour, tzmin} containing broken...
Click to read more »Module:Shogi diagram/sandbox
Jumat, 2022-07-29 18:19:59and the boldness info present in the string argument -- it returns an array with these three values plus the color (for promoted pieces) -- this info...
Click to read more »Module:PUV line/doc
Jumat, 2025-10-10 15:43:57rapid color: text color to contrast with background_color image: optional array containing the filename and size in pixels to display for that service article:...
Click to read more »Module:Sandbox/Matroc/TestmvloadData
Sabtu, 2013-06-29 08:17:40stuff = "" ---- RETURN SOMETHING local t1 = {} ---- local array for table1 local t1_loaded = 0 ---- NO TABLE 1 is NOT LOADED! ...
Click to read more »Module:Sandbox/Labratscientist
Rabu, 2025-06-04 02:26:59notempty(array[2]) then for m=1,#array[2] do array[3] = {} array[2][m] = split(array[2][m],{":"}) array[3][m] = array[2][m][2] array[2][m]...
Click to read more »Module:US elections imagemap/sandbox
Rabu, 2021-01-20 02:20:48linking to a recall election) local overrides = {} -- overrides should be an array of STATE="Override" for _, override in ipairs(stateoverrides) do local...
Click to read more »Module:Sandbox/Ahecht
Kamis, 2026-04-23 22:36:51local p = {} local dots = ... local out_mt = { -- Append to array by calling it __call = function (t, v) t[#t+1] = v end, __tostring = function(t)...
Click to read more »Module:Unicode data/category/make
Kamis, 2020-03-12 02:22:33long_names end function p.print_data(data) local output = require "Module:array"() local function writef(...) output:insert(string.format(...)) end...
Click to read more »Module:Wikidata/sandbox
Sabtu, 2023-03-04 11:34:03the intended order. local function orderedpairs(array, order) if not order then return pairs(array) end -- return iterator function local i = 0 ...
Click to read more »Module:Sandbox/Julio974fr/parliament diagram
Jumat, 2023-09-29 16:57:40partiesPositions = getpartiesPositions(partiesData, year) -- 2. Sort the new array by positions local partiesPositions = sortPartiesPositions(partiesPositions)...
Click to read more »Module:Random slideshow
Jumat, 2025-03-28 20:28:55} local sortedLines = nonRandom and galleryLines or randomModule.main('array', randomiseArgs) for i = 1, #sortedLines do -- insert a switcher-label...
Click to read more »Module:Citation/CS1/Identifiers/sandbox
Kamis, 2026-06-04 20:26:17>-------------------------------------- ]] local has_accept_as_written, is_set, in_array, set_message, select_one, -- functions in Module:Citation/CS1/Utilities...
Click to read more »Module:Road data/strings/USA/WA
Kamis, 2023-07-20 10:39:44Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) ]==] --Washington local WA = require("Module:Road data/strings/USA")...
Click to read more »Module:RfD close
Sabtu, 2019-03-02 11:17:02parameter_lower = result_parameter:lower() --I thought about using an array and a for-loop, but the logic is --sufficiently complicated (there is...
Click to read more »Module:Portal/sandbox
Jumat, 2025-09-12 19:30:32concat(result,"|") end local function getAllImageTable() -- Returns an array containing all image subpages (minus aliases) as loaded by mw.loadData....
Click to read more »Module:Collapsible list
Rabu, 2026-05-20 07:05:09style="line-height: inherit; margin: 0">%s</li>', data ) end -- Returns an array containing the keys of all positional arguments -- that contain data (i...
Click to read more »Module:Road data/strings/UNK
Minggu, 2022-04-24 14:39:30Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Gadgets
Kamis, 2025-10-02 05:38:19options[key] = true end end end -- Process page list into an array local pages = {} if pageList then for page in pageList:gmatch("[^|]+")...
Click to read more »Module:Sandbox/Ahecht/bartable
Rabu, 2025-07-30 23:45:23local p = {} local metatable = { -- Append to array by calling it __call = function (t, v) t[#t+1] = v end, __tostring = function(t) return table.concat(t)...
Click to read more »Module:Road data/util/doc
Selasa, 2024-08-27 00:20:43functions for use within Module:Road data modules. See the code for function usages. Exported functions are: addAll, arrayToString, convertLengths and err....
Click to read more »Module:Unicode data
Selasa, 2025-09-16 09:46:49contains "singles" (a -- code point-to-data map) and "ranges" (an array containing arrays that contain -- the low and high code points of a range and the...
Click to read more »Module:Road data/strings/BWA
Sabtu, 2026-05-23 18:40:50Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Cite Q
Senin, 2026-04-27 10:27:09haystack (taken from Module:Citation/CS1/Utilities) ]] local function in_array( needle, haystack ) if needle == nil then return false end for n, v...
Click to read more »Module:WikiProject banner/doc
Kamis, 2025-11-27 01:32:21size - default size for all task force images. Maps to TF_SIZE. list - array of each task force with required settings. notes - contains details of all...
Click to read more »Module:Redirect-distinguish
Selasa, 2025-07-15 00:52:23args.category ) end args = mTableTools.compressSparseArray(args) --Assignment by removal here makes for convenient concatenation later...
Click to read more »Module:Charmap
Selasa, 2021-12-14 03:45:26{} -- May contain nils if bad input infos = {} -- boolean array names = {} -- string array args = frame:getParent().args for i = 1, 10 do if args['name'...
Click to read more »Module:Road data/strings/USA/AR
Senin, 2022-09-12 09:13:06Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Distinguish/sandbox
Selasa, 2026-05-12 15:00:07args.selfref local text = args.text args = mTableTools.compressSparseArray(args) return p._distinguish(args, text, selfref) end function p._distinguish(args...
Click to read more »Module:Road data/strings/USA/GU
Kamis, 2023-05-25 01:24:35Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/tom/sometest
Jumat, 2018-11-16 04:37:53stuff = "" ---- RETURN SOMETHING local t1 = {} ---- local array for table1 local t1_loaded = 0 ---- NO TABLE 1 is NOT LOADED! ...
Click to read more »Module:Road data/strings/LAO
Minggu, 2021-03-07 12:01:46Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Portal image banner/sandbox
Minggu, 2021-11-21 21:50:21randomiseArgs = { ['t'] = imageLines } local randomisedLines = randomModule.main('array', randomiseArgs ) local output, galleryContent if not mode then galleryContent...
Click to read more »Module:Road data/strings/BEN
Senin, 2021-02-15 10:54:55Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:NepaliDateConverter
Selasa, 2026-05-26 21:04:170 -- array for nepali calendar local bs={} --declear array to hold bikram sambat calendar and fill the array bs[1]={2000, 30...
Click to read more »Module:Road data/strings/USA/MP
Kamis, 2021-09-23 07:30:37Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) ]==] -- Northern Mariana Islands local MP = require("Module:Road...
Click to read more »Module:About-distinguish
Senin, 2026-03-16 20:28:26namespace] or options.defaultPageType args = mTableTools.compressSparseArray(args) local about = table.remove(args, 1) --Assemble everything together...
Click to read more »Module:Road data/strings/IDN
Rabu, 2023-11-01 08:25:24Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Article history/sandbox
Kamis, 2025-12-18 05:31:22from the object's config. val can be either an array -- of strings or a function returning an array of category objects. self.categories = val end...
Click to read more »Module:Road data/strings/NAM
Senin, 2021-03-08 01:31:28Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Gadgets/sandbox
Senin, 2025-11-03 11:14:57options[key] = true end end end -- Process page list into an array local pages = {} if pageList then for page in pageList:gmatch("[^|]+")...
Click to read more »Module:Old XfD multi
Kamis, 2025-11-27 11:47:08= args.merge } end -- Remove any gaps in the array we made. local function compressSparseArray(t) local ret, nums = {}, {} for num, data in pairs(t)...
Click to read more »Module:Road data/strings/LKA
Minggu, 2021-03-14 10:56:13Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/GIB
Senin, 2021-12-20 06:25:39Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/BRN
Kamis, 2021-12-16 01:52:32Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Chessboard
Rabu, 2026-05-27 08:20:26function convertFenToArgs( fen ) -- converts FEN notation to 64 entry array of positions, offset by 2 local res = { ' ', ' ' } -- Loop over rows,...
Click to read more »Module:ImageStackPopup
Jumat, 2024-05-31 22:37:42galleryContents = galleryContents .. galleryRow .. "\n" optionsArray[#optionsArray+1] = popupOptions end return tostring( mw.html.create( 'div' )...
Click to read more »Module:Road data/strings/LTU
Kamis, 2021-12-16 13:08:26Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/DZA
Minggu, 2021-09-26 05:00:13Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Other Pennsylvania townships
Rabu, 2022-12-07 08:11:19pages[1] = disambig break end end end pages = mTableTools.compressSparseArray(pages) return mOtheruses._otheruses(pages, options) end return p...
Click to read more »Module:Road data/strings/PER
Minggu, 2021-12-19 15:27:08Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/VI
Sabtu, 2022-02-19 06:40:55Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/GHA
Senin, 2021-12-20 06:21:37Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/KEN
Sabtu, 2022-02-19 12:27:43Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Charmap/sandbox
Selasa, 2021-12-14 03:42:33{} -- May contain nils if bad input infos = {} -- boolean array names = {} -- string array args = frame:getParent().args for i = 1, 10 do if args['name'...
Click to read more »Module:Road data/strings/KGZ
Sabtu, 2021-02-27 03:17:39Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/NZL
Rabu, 2025-07-16 16:08:28Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/ZMB
Kamis, 2022-03-03 13:09:47Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Infobox
Sabtu, 2025-12-13 06:40:10etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix"...
Click to read more »Module:Sandbox/Wnt/DisplayLuaTableContents
Senin, 2018-05-07 09:26:53base then else base={};novar=yes end local output="''Contents of the array '''''" .. tostring(dispvar) .. "''':" if novar then output = output ...
Click to read more »Module:Road data/strings/LVA
Minggu, 2022-10-23 13:14:17Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CHE
Kamis, 2021-12-16 11:19:00Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/MJL/CS1/Utilities
Sabtu, 2021-09-04 01:07:29Whether needle is in haystack ]] local function in_array (needle, haystack) if needle == nil then return false; end for n, v...
Click to read more »Module:Infobox/sandbox
Kamis, 2026-06-04 03:40:46etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix"...
Click to read more »Module:Road data/strings/CPV
Senin, 2022-01-17 06:45:52Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/MMR
Minggu, 2026-02-08 12:56:19Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:DYK nompage links
Senin, 2025-04-14 11:03:32args.nompage local historyPages = require('Module:TableTools').compressSparseArray(args) return p._main(nominationPage, historyPages) end return p...
Click to read more »Module:Sandbox/trappist the monk/Parameters
Selasa, 2021-02-09 02:03:59L A R A T I O N S >-------------------------------------- ]] local in_array, is_set, is_wikilink, make_sep_list, select_one, set_message, substitute...
Click to read more »Module:Road data/strings/DJI
Jumat, 2024-10-25 22:41:38Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/LSO
Senin, 2024-09-09 04:44:01Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/MDA
Sabtu, 2024-10-26 00:20:11Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/UZB
Sabtu, 2021-02-20 10:33:38Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Music chart/sandbox/doc
Jumat, 2026-02-06 07:34:29(IDs, dates, numbers) are not affected. It's an array of operations applied in fixed order. Order in array doesn't matter — operations are always applied...
Click to read more »Module:Road data/strings/AND
Minggu, 2021-09-26 05:16:48Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CUB
Minggu, 2022-01-09 09:03:07Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/PRT
Jumat, 2021-12-17 07:45:58Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/PHL
Sabtu, 2022-05-07 15:35:57Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Navbar
Rabu, 2023-10-11 05:34:57dependency. for _, v in ipairs(require ('Module:TableTools').compressSparseArray(args)) do local num = index[v] if num then show[num] = true end ...
Click to read more »Module:Music chart/doc
Senin, 2026-03-16 02:20:52(IDs, dates, numbers) are not affected. It's an array of operations applied in fixed order. Order in array doesn't matter — operations are always applied...
Click to read more »Module:Road data/strings/MKD
Kamis, 2021-12-16 13:49:54Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Labelled list hatnote
Kamis, 2025-05-29 01:18:35pre-combines display parameters into page arguments. -- Also compresses sparse arrays, as a desirable side-effect. function p.preprocessDisplays (args, prefixes)...
Click to read more »Module:Road data/strings/NIC
Jumat, 2023-03-10 12:24:41Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/ATG
Senin, 2026-02-16 04:38:11Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) ]==] -- Antigua and Barbuda (ATG) local ATG = {} local util...
Click to read more »Module:Road data/strings/BLZ
Minggu, 2021-09-26 02:03:06Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/BLR
Senin, 2021-02-22 05:01:43Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/BGD
Selasa, 2023-01-31 10:27:01Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/ARM
Jumat, 2021-02-19 08:31:52Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CAN/YT
Sabtu, 2021-09-25 13:51:57Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Pagetype
Rabu, 2024-05-22 00:35:20the same. return yesno(arg, arg) end -- Append multiple values to an array local function appendMultiple(target, source) for _, value in ipairs(source)...
Click to read more »Module:Road data/strings/KAZ
Rabu, 2023-02-15 04:54:51Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Excerpt slideshow
Minggu, 2024-08-18 18:19:31local sortedTitles = nonRandom and titlesSequence or randomModule.main('array', {t=titlesSequence, limit=limit}) for _i, title in ipairs(sortedTitles)...
Click to read more »Module:ImportProtein/sandbox
Kamis, 2023-04-13 03:13:54---- You could, of course, array the output and retroactively process it ... maybe even turn this into a sortable array of function tail calls??? (My...
Click to read more »Module:Collapsible list/sandbox
Senin, 2026-02-02 05:52:24style="line-height: inherit; margin: 0">%s</li>', data ) end -- Returns an array containing the keys of all positional arguments -- that contain data (i...
Click to read more »Module:Sandbox/DePiep/sandbox
Selasa, 2023-08-01 22:43:21v) end end return unpack(ret) end local function makeArgArray(...) -- Makes an array of arguments from a list of arguments that might include nils...
Click to read more »Module:Road data/strings/JAM
Kamis, 2021-12-16 12:42:41Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:If in category
Kamis, 2025-03-06 03:22:10page)) or mw.title.getCurrentTitle() if require('Module:TableTools').inArray(page.categories, string.gsub( args[1], '^[Cc]ategory:', '' )) then if...
Click to read more »Module:Road data/strings/ALA
Sabtu, 2022-02-26 16:36:22Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/DOM
Jumat, 2023-03-10 12:23:38Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/FRA
Selasa, 2021-12-28 23:44:28Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/HI
Minggu, 2021-09-26 02:16:35Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/NLD
Minggu, 2021-12-19 14:27:05Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/Seanleong8/Blank
Selasa, 2025-10-28 21:20:22for films in this language } function valuesToKeys(array) local result = {} for _, v in pairs(array) do result[v] = true end return result end local...
Click to read more »Module:Road data/strings/HRV
Kamis, 2021-12-30 08:23:29Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/AMR
Jumat, 2025-07-04 10:30:36Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/CAPTAIN MEDUSA
Selasa, 2020-11-24 01:55:29'Plainlist', args = {'\n' .. table.concat(TableTools.compressSparseArray({ eachElement.nickname and ('* ' .. tostring(mw.html.create('small'):wikitext("<i>"...
Click to read more »Module:Road data/strings/TUR
Jumat, 2024-01-19 01:21:39Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:If in category/sandbox
Kamis, 2025-03-06 03:19:18page)) or mw.title.getCurrentTitle() if require('Module:TableTools').inArray(page.categories, string.gsub( args[1], '^[Cc]ategory:', '' )) then if...
Click to read more »Module:Protection banner
Rabu, 2026-02-18 15:46:08Define the order that key fragments are tested in. This is done with an -- array of tables containing the value to be tested, along with its -- position...
Click to read more »Module:Old XfD multi/sandbox
Kamis, 2025-11-27 11:44:32= args.merge } end -- Remove any gaps in the array we made. local function compressSparseArray(t) local ret, nums = {}, {} for num, data in pairs(t)...
Click to read more »Module:Citation/CS1/sandbox2
Selasa, 2023-05-09 21:35:35or 'title'}); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Road data/strings/DNK
Sabtu, 2021-12-18 04:19:52Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/GEO
Sabtu, 2021-12-18 05:46:12Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/AZE
Selasa, 2023-08-15 16:36:29Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/EST
Minggu, 2023-09-17 02:54:56Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Cite Q/sandbox
Senin, 2026-04-27 01:34:40haystack (taken from Module:Citation/CS1/Utilities) ]] local function in_array( needle, haystack ) if needle == nil then return false end for n, v...
Click to read more »Module:Road data/strings/SWE
Senin, 2021-12-20 05:24:28Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/TAH
Kamis, 2021-12-23 00:56:47Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/HUN
Kamis, 2023-12-28 00:07:50Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CAN/NT
Sabtu, 2021-09-25 13:53:23Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Transliterate Korean
Kamis, 2024-08-01 03:57:55lIndex, vIndex, tIndex end -- Function to find the index of a value in an array local function indexof(arr, val) for i, v in ipairs(arr) do ...
Click to read more »Module:Sandbox/Gonnym/date
Rabu, 2025-02-26 23:56:19month of February. -- -- The function uses the following logic: -- 1. An array `daysInMonth` is defined to hold the typical number of days for each month...
Click to read more »Module:Sandbox/Swpb/Transpose
Kamis, 2019-01-17 03:33:01cells to merge --3) Capture the cells of the unspanned table in two 2D arrays (format, content) -- ) Transpose the cells -- ) Create the new table --...
Click to read more »Module:Labelled list hatnote/sandbox
Kamis, 2025-05-29 01:10:23pre-combines display parameters into page arguments. -- Also compresses sparse arrays, as a desirable side-effect. function p.preprocessDisplays (args, prefixes)...
Click to read more »Module:Database report/generate docs
Minggu, 2025-09-07 00:25:02Extracts general module information and description. -- @param lines table Array of lines from the module -- @param start_index number Starting line index...
Click to read more »Module:Road data/strings/LUX
Minggu, 2021-12-19 12:15:29Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CHL
Jumat, 2021-12-17 13:45:21Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/OMN
Jumat, 2025-06-13 13:51:33Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Article history/config/sandbox
Jumat, 2025-12-19 03:09:03parameter prefix for that notice type (e.g. "dyk"), and suffixes is -- an array of parameter suffixes in addition to "date" that is used by that -- notice...
Click to read more »Module:Navbar/sandbox
Rabu, 2025-08-13 12:10:29dependency. for _, v in ipairs(require ('Module:TableTools').compressSparseArray(args)) do local num = index[v] if num then show[num] = true end ...
Click to read more »Module:Road data/strings/CAN/PE
Sabtu, 2021-09-25 14:10:46Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/Matt Fitzpatrick/Portal bar
Senin, 2022-10-24 04:03:21break end else origArgs = frame end -- Process the args to make an array of portal names that can be used with ipairs. We need to use ipairs because...
Click to read more »Module:Road data/strings/ARG
Minggu, 2021-09-26 05:26:15Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/THA
Minggu, 2025-12-21 15:17:27Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:NLLDivisionStanding
Senin, 2023-04-17 00:29:18teamInFirst = self.teams[self.teamInFirst] end -- Compress the teams array, which at the moment may contain nils self.teams = (function (t) local...
Click to read more »Module:Road data/strings/MNE
Minggu, 2021-12-19 12:51:00Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/Wnt/Plotter
Minggu, 2020-10-04 07:54:14output,lr,lrv,tv,bw1,bw2,bw3,bw4,bd,lrB,bw2B local a={} -- throwaway array to make value matrix more apparent -- quadrant 1 is upper left, quadrant...
Click to read more »Module:Road data/strings/USA/NJ
Minggu, 2022-09-25 10:26:42Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/ALB
Minggu, 2021-09-26 04:54:48Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/PRY
Minggu, 2021-12-19 16:01:18Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/SAU
Jumat, 2025-07-04 06:08:03Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CRI
Senin, 2021-12-20 06:20:13Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/Galobtter/Related changes
Rabu, 2023-04-26 14:49:46return all the args (first choice) or parent.args (second choice) in an array. local parent, pargs, args local param={} parent = frame['parent']...
Click to read more »Module:Road data/strings/CAN/NB
Rabu, 2022-08-10 08:34:28Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/NGA
Sabtu, 2023-09-02 20:21:33Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/ARE
Rabu, 2023-07-26 14:20:39Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CZE
Senin, 2026-01-12 01:28:40Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/POL
Minggu, 2026-01-11 17:30:18Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/DEU
Minggu, 2022-12-11 08:08:39Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/TZA
Selasa, 2023-10-17 07:43:49Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Chessboard mxn
Rabu, 2026-05-27 11:25:15end function convertFenToArgs( fen ) -- converts FEN notation to an array of positions, offset by 2 local res = {' ', ' '} -- Loop over rows...
Click to read more »Module:Road data/strings/KHM
Rabu, 2026-04-22 14:59:47Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/urastats
Selasa, 2026-03-10 20:47:00local lang = mw.language.getContentLanguage() -- Load the data array -- https://commons.wikimedia.org/wiki/Data:URAstats_Data.tab local...
Click to read more »Module:Road data/strings/AFG
Jumat, 2024-10-25 22:38:53Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/regional/GRR
Kamis, 2021-09-16 01:26:01Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Parameters
Sabtu, 2020-07-04 17:52:26-- operate on the table (which is to say, the normalised parameters -- array), key access will be by way of the paramIndex metatable. setmetatable(paramsNorm...
Click to read more »Module:Signpost/doc
Minggu, 2023-12-24 05:10:36the subpage is "Special report". title: The article's title. authors: Array listing authors of the article, as read by Wegweiser and SignpostTagger...
Click to read more »Module:Road data/strings/KOS
Sabtu, 2024-10-26 00:25:24Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CAN
Sabtu, 2026-04-18 11:11:07Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Settlement short description
Sabtu, 2022-02-12 23:43:02end end end local location = table.concat(tableTools.compressSparseArray(p.reverseTable(subdivision_names)), ', ') location = p.cleanupLoc (location)...
Click to read more »Module:Road data/strings/BEL
Jumat, 2024-10-25 22:39:46Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Video game wikidata
Kamis, 2023-08-31 21:42:41if(reviewscores) then -- Find reviews that qualify for printing and insert into array. local reviewsToPrint = {} for i,review in pairs(reviewscores) do...
Click to read more »Module:Requested move
Rabu, 2024-03-20 06:51:08iterate over the current1, new1, current2, new2, ... arguments -- we get an array of tables sorted by number and compressed so that -- it can be traversed...
Click to read more »Module:Archive
Sabtu, 2025-05-03 22:40:12}) return mbox end function Navigator:getArchiveNums() -- Returns an array of the archive numbers to format. local noLinks = tonumber(self.args.links)...
Click to read more »Module:Road data/strings/IRL
Senin, 2025-04-28 17:21:34Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/UKR
Kamis, 2026-05-21 15:02:27Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/SVK
Senin, 2021-12-20 04:46:30Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Documentation/sandbox
Rabu, 2026-06-03 23:02:24{string} cfgKey the key which the message belongs to -- @param {valArray} valArray the array which contains these messages -- @param {expectType} the type...
Click to read more »Module:Road data/strings/MWI
Senin, 2024-03-04 02:12:02Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CAN/NL
Selasa, 2022-02-15 14:25:06Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/RUS
Minggu, 2026-04-12 17:22:57Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/BGR
Jumat, 2021-12-17 13:35:03Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/SVN
Jumat, 2026-05-01 19:16:57Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Nirmaljoshi/sandbox
Minggu, 2026-04-26 07:11:270 -- array for nepali calendar local bs={} --declear array to hold bikram sambat calendar and fill the array bs[1]={2000, 30...
Click to read more »Module:Music ratings
Sabtu, 2024-11-30 21:03:22args[prefixUpper .. num .. suffixUpper], }, 4 -- The 4 is the length of the array; this is needed as the args may be nil end local function makeWikilink(page...
Click to read more »Module:Lua banner
Jumat, 2024-04-05 09:45:24end function p._main(args) local modules = mTableTools.compressSparseArray(args) local box = p.renderBox(modules) local trackingCategories = p...
Click to read more »Module:List/testcases
Senin, 2026-03-09 22:23:23--------------------- function suite:assertArrayContainsString(expected, t) -- This only works on arrays that only contain strings. local sep = '|SEPARATOR|'...
Click to read more »Module:Contentious topics/aware
Kamis, 2026-01-01 04:54:39t) local new = {} local t = require('Module:TableTools').compressSparseArray(t) for i,v in ipairs(t) do table.insert(new, frame:expandTemplate{ ...
Click to read more »Module:Signpost/aliases
Selasa, 2023-01-31 05:34:35-- The keys in the tables are the canonical tag name, and the values are arrays -- of aliases to be converted to the canonical tag name. -- -- ["canonicaltag"]...
Click to read more »Module:Sandbox/Ziggzevenzigma
Selasa, 2026-05-12 15:02:54args.selfref local text = args.text args = mTableTools.compressSparseArray(args) return p._distinguish(args, text, selfref) end function p._distinguish(args...
Click to read more »Module:Signpost/sandbox
Sabtu, 2022-11-12 11:53:58tag in ipairs(tags) do local dataArray = tagIndex[tag] if dataArray then for i, data in ipairs(dataArray) do local obj = Article.new(data)...
Click to read more »Module:Sandbox/Pelagic/01
Kamis, 2021-06-10 19:37:13'4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A' } -- sequence (array) of rank strings local suits = { '♥', '♦', '♠', '♣' } -- same for suits...
Click to read more »Module:Sandbox/Frostly
Sabtu, 2023-10-21 05:11:11navbarModule.navbar{name, mini = '1'} end local function randomizeArray(t) -- Iterate through the array backwards, each time swapping the entry "i" with a random...
Click to read more »Module:DYK nompage links/sandbox
Rabu, 2024-02-07 09:04:29args.nompage local historyPages = require('Module:TableTools').compressSparseArray(args) return p._main(nominationPage, historyPages) end return p...
Click to read more »Module:Road data/strings/SGP
Minggu, 2025-12-14 13:20:30Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Other uses/doc
Jumat, 2023-04-21 17:27:41text.listToText() function the module uses. If in doubt, use compressSparseArray() from Module:TableTools. This may be empty or nil. options A table containing...
Click to read more »Module:Road data/strings/CAF
Kamis, 2024-08-08 23:54:50Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Infobox election/sandbox
Selasa, 2026-01-06 21:09:47delink({[1] = name, wikilinks = 'target'}) == name then -- the below array items are lowercase and intentionally missing the training 's' local names...
Click to read more »Module:Road data/strings/ROU
Senin, 2021-12-20 03:44:25Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/BRA
Kamis, 2025-10-09 01:00:14Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Years generator
Senin, 2020-06-08 21:40:12numericKey ) then -- templateArgs[1] will always be the year (lua arrays start at 1) -- templateArgs[2] should be the first other template param...
Click to read more »Module:Road data/strings/USA/NY
Rabu, 2025-04-30 04:02:21Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/JPxG/Automatic archive navigator editsection
Kamis, 2024-10-10 00:19:34}) return mbox end function Navigator:getArchiveNums() -- Returns an array of the archive numbers to format. local noLinks = tonumber(self.args.links)...
Click to read more »Module:Road data/strings/CAN/NS
Selasa, 2023-01-03 02:40:09Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/BIH
Jumat, 2021-12-17 13:19:05Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Documentation
Rabu, 2025-03-12 10:38:41------------------------------------ local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it...
Click to read more »Module:Video game wikidata/sandbox
Jumat, 2023-08-11 22:13:39if(reviewscores) then -- Find reviews that qualify for printing and insert into array. local reviewsToPrint = {} for i,review in pairs(reviewscores) do...
Click to read more »Module:JCW
Jumat, 2022-10-21 17:51:19end end local rows = {} for i, v in ipairs(TableTools.compressSparseArray(n)) do if i == 1 then rows[1] = { string.format('*[[:%s]]%s', v, sourcenote)...
Click to read more »Module:Reply to/testcases
Jumat, 2026-02-13 20:21:58require(suite:module()).replyto(makeFrameWithParentArgs(args)) end -- Returns an array of n unique strings. local function makeNUniqueStrings(n) local ret = {}...
Click to read more »Module:Road data/strings/ESP
Selasa, 2024-04-02 22:23:31Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Selected recent additions/sandbox
Sabtu, 2019-03-09 14:28:15['limit'] = maxItems } local randomisedItems = randomModule.main('array', randomiseArgs ) output = table.concat(randomisedItems, '\n') end if...
Click to read more »Module:RfD close/sandbox
Selasa, 2023-04-11 09:40:48parameter_lower = result_parameter:lower() --I thought about using an array and a for-loop, but the logic is --sufficiently complicated (there is...
Click to read more »Module:Infobox election
Jumat, 2026-01-16 23:00:21delink({[1] = name, wikilinks = 'target'}) == name then -- the below array items are lowercase and intentionally missing the training 's' local names...
Click to read more »Module:Sandbox/MJL/citation
Senin, 2022-10-24 04:17:31true ) } ); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Complex date
Sabtu, 2020-05-16 02:21:05units2, era2, lang, passNr) -- process inputs and save date in state array local state = {} state.conj = string.lower(conj or '') state.adj1...
Click to read more »Module:Road data/strings/NOR
Jumat, 2024-10-25 22:41:17Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/AK
Sabtu, 2025-07-12 04:25:38Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/ITA
Kamis, 2024-08-22 10:36:18Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/Biggins/LDSverseWS
Jumat, 2020-08-07 10:41:35defined as how it is titled on Wikisource The value for each book is an array of other names it might be known by. Some of these are standard abbreviations...
Click to read more »Module:Protection banner/sandbox
Kamis, 2026-04-16 03:24:56Define the order that key fragments are tested in. This is done with an -- array of tables containing the value to be tested, along with its -- position...
Click to read more »Module:Road data/strings/CAN/ON
Kamis, 2025-06-05 19:26:18Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Excerpt/portals
Rabu, 2026-05-13 00:55:29return flags end -- Helper function to convert template arguments into an array of arguments fit for get() local function parseArgs(frame) local args =...
Click to read more »Module:Road data/strings/EST/sandbox
Minggu, 2023-09-17 02:51:53Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/CAN/QC
Rabu, 2023-05-03 12:37:24Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/DC
Jumat, 2023-02-10 11:06:03Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/NV
Selasa, 2022-09-13 04:22:36Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/regional/Tour
Kamis, 2021-09-16 01:53:11Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/SamuelRiv
Senin, 2022-10-24 04:17:21or 'title'}); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Sandbox/Brilliand
Rabu, 2024-06-26 12:54:49end return t end local function parseRankedVotes(args) -- Makes an array of arguments from a list of arguments that might include nils. local ret...
Click to read more »Module:Road data/strings/USA/RI
Sabtu, 2021-09-25 01:23:47Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/MjolnirPants
Kamis, 2021-07-22 21:10:23_PingRFCUsers(args) local pageSource = "" --check the size of the arguments array --if there's more than one, the second one --should be the name of the...
Click to read more »Module:Chessboard mxn/sandbox
Rabu, 2026-05-27 11:27:45end function convertFenToArgs( fen ) -- converts FEN notation to an array of positions, offset by 2 local res = {' ', ' '} -- Loop over rows...
Click to read more »Module:Sandbox/Matthiaspaul/Citation/CS1
Rabu, 2025-05-28 21:43:36Module:Citation/CS1/Date_validation date_name_xlate local is_set, in_array, substitute, error_comment, set_error, select_one, -- functions in...
Click to read more »Module:BellezzasoloUserPageModule
Kamis, 2018-11-22 23:59:37from appearing in the -- wrong order. The prefixTable should be an array containing tables, each of which has -- two possible fields, a "prefix"...
Click to read more »Module:GHS phrases/sandbox2
Selasa, 2021-12-28 12:23:16pairs(tGHSdata) do table.insert(t2, s) end t2 = tTools.compressSparseArray(t2) table.sort(t2) -- required -- STRUCT TABLE t3 (ordered, has data...
Click to read more »Module:Sandbox/Roostery123
Selasa, 2022-11-15 11:59:56namespace] or options.defaultPageType args = mTableTools.compressSparseArray(args) local about = table.remove(args, 1) local wde = mw.wikibase.getEntity()...
Click to read more »Module:Pagetype/sandbox
Jumat, 2026-06-05 02:43:41the same. return yesno(arg, arg) end -- Append multiple values to an array local function appendMultiple(target, source) for _, value in ipairs(source)...
Click to read more »Module:Road data/strings/CAN/SK/sandbox
Sabtu, 2021-02-13 07:25:11Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:LDSverse
Selasa, 2020-09-08 17:14:55defined as how it is titled on Wikisource The value for each book is an array of other names it might be known by. Some of these are standard abbreviations...
Click to read more »Module:Labelled list hatnote/doc
Selasa, 2025-10-28 14:05:19piping (e.g. {{see also|1{{!}}2|l1=One}} → {'1|One'}) and compresses sparse arrays if a parameter is skipped or left empty. Example: local mLabelledList =...
Click to read more »Module:Road data/strings/USA
Minggu, 2026-04-12 07:47:50Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Validate gadgets
Kamis, 2026-01-15 18:39:15require('Module:Gadgets') local p = {} local function arr_contains(array, val) for _, value in ipairs(array) do if value == val then return true...
Click to read more »Module:Sandbox/Danski454/SPI report
Senin, 2022-10-24 04:05:50end end socks = TableTools.compressSparseArray(socks) ips = TableTools.compressSparseArray(ips) for i=1,#socks do outText = outText .....
Click to read more »Module:Rfx
Senin, 2024-11-25 04:10:19nil end end local function parseVoteBoundaries(section) -- Returns an array containing the raw wikitext of RfX votes in a given section. section =...
Click to read more »Module:Sandbox/Psiĥedelisto/Citation
Rabu, 2025-05-28 21:44:54Module:Citation/CS1/Date_validation date_name_xlate local is_set, in_array, substitute, error_comment, set_error, select_one, -- functions in...
Click to read more »Module:Sandbox/Danski454/UBLSortable
Senin, 2022-10-24 04:01:33listItems[num][prefix] = v end end end listItems = TableTools.compressSparseArray(listItems) table.sort(listItems, function (a, b) local ak = a.key...
Click to read more »Module:Unicode data/sandbox
Sabtu, 2025-08-02 23:33:56contains "singles" (a -- code point-to-data map) and "ranges" (an array containing arrays that contain -- the low and high code points of a range and the...
Click to read more »Module:Sandbox/Artoria2e5/CacheUtils
Minggu, 2020-04-12 17:06:10pairs(argDict) do dict[k] = { ['v'] = v } end local order = {} -- tableArray local function len(this) return #dict end local function newindex(this...
Click to read more »Module:Sandbox/Mdaniels5757/Old moves
Selasa, 2020-08-25 22:26:53= args.merge } end -- Remove any gaps in the array we made. local function compressSparseArray(t) local ret, nums = {}, {} for num, data in pairs(t)...
Click to read more »Module:Road data/strings/USA/MS
Selasa, 2023-05-16 10:30:16Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Infobox3cols
Senin, 2026-05-25 12:20:24etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix"...
Click to read more »Module:TV ratings
Minggu, 2024-09-22 20:22:10args[prefixUpper .. num .. suffixUpper], }, 4 -- The 4 is the length of the array; this is needed as the args may be nil end local function makeWikilink(page...
Click to read more »Module:Road data/strings/USA/TX
Sabtu, 2023-12-16 07:06:16Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Contentious topics/aware/sandbox
Kamis, 2026-01-01 04:49:53t) local new = {} local t = require('Module:TableTools').compressSparseArray(t) for i,v in ipairs(t) do table.insert(new, frame:expandTemplate{ ...
Click to read more »Module:Sandbox/trappist the monk/CS1
Senin, 2022-10-24 04:17:05true ) } ); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Category main article
Selasa, 2025-12-09 01:37:11'Template:Category main article'}) local pages = mTableTools.compressSparseArray(args) if #pages == 0 and args[1] then pages = { args[1] } end local...
Click to read more »Module:Road data/strings/USA/MA
Kamis, 2022-08-11 09:03:16Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Settlement short description/sandbox
Jumat, 2023-09-29 17:44:20end end end local location = table.concat(tableTools.compressSparseArray(p.reverseTable(subdivision_names)), ', ') location = p.cleanupLoc (location)...
Click to read more »Module:Random slideshow/sandbox
Minggu, 2024-08-18 18:07:29end local sortedLines = nonRandom and galleryLines or randomModule.main('array', randomiseArgs) for i = 1, #sortedLines do -- insert a switcher-label...
Click to read more »Module:Road data/strings/USA/WY
Rabu, 2026-01-14 22:02:03Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/pietrasagh/Graph2
Sabtu, 2020-08-08 17:18:42-- custom shape if stringArray(symbolsShape) and #stringArray(symbolsShape) > 1 then symbolsShape = stringArray(symbolsShape) end local...
Click to read more »Module:Sandbox/Liangent/zhwiki/Module:Citation/CS1
Sabtu, 2014-06-28 08:20:06var; end end end -- Whether needle is in haystack function inArray( needle, haystack ) if needle == nil then return false; ...
Click to read more »Module:Road data/strings/USA/ME
Jumat, 2021-09-24 04:14:39Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) ]==] --Maine local ME = require("Module:Road data/strings/USA")...
Click to read more »Module:Sandbox/pietrasagh/Graph
Minggu, 2020-05-24 14:15:46-- custom shape if stringArray(symbolsShape) and #stringArray(symbolsShape) > 1 then symbolsShape = stringArray(symbolsShape) end local...
Click to read more »Module:Road data/strings/ZAF
Jumat, 2024-09-13 22:06:16Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:User:Gommeh/CategoryView
Rabu, 2026-02-18 02:25:41and remove {{icon|...}} (case/spacing tolerant), returning cleaned text + array of icons local function extractIcons(w) w = w or "" local icons...
Click to read more »Module:Archive/sandbox
Minggu, 2025-04-13 03:12:00}) return mbox end function Navigator:getArchiveNums() -- Returns an array of the archive numbers to format. local noLinks = tonumber(self.args.links)...
Click to read more »Module:Infobox3cols/sandbox
Senin, 2026-05-25 12:16:45etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix"...
Click to read more »Module:Road data/strings/CAN/SK
Jumat, 2025-10-10 00:47:45Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/IND
Sabtu, 2022-02-19 12:11:20Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/ND
Jumat, 2021-09-24 08:37:23Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to iNDlude...
Click to read more »Module:Sandbox/DePiep/uchar
Selasa, 2023-08-01 22:45:17end return inMono(sGenCat) .. '=' .. tCat[1] end -- Formats table ( array ) using concat -- replace space by nbsp ( keep untrimmed sp ) -- in monospace...
Click to read more »Module:Sandbox/MJL/CS1
Senin, 2022-10-24 04:16:54true ) } ); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Sandbox/Philroc
Selasa, 2023-04-11 15:26:04= args.merge } end -- Remove any gaps in the array we made. local function compressSparseArray(t) local ret, nums = {}, {} for num, data in pairs(t)...
Click to read more »Module:Jctint/USA
Selasa, 2025-08-12 06:21:29return locns[subType] end end -- end transition code local function trackedArray(arr) local origArr = arr arr = {} local mt = { __index = function(t...
Click to read more »Module:Road data/strings/USA/AL
Kamis, 2023-08-17 06:58:50Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Music ratings/sandbox
Rabu, 2026-06-03 22:39:57args[prefixUpper .. num .. suffixUpper], }, 4 -- The 4 is the length of the array; this is needed as the args may be nil end local function extractKey(arg)...
Click to read more »Module:Section sizes
Sabtu, 2026-04-18 10:58:52Read article content and fill associative arrays in sequence <sections_t>. The associative arrays hold section name, its starting location within...
Click to read more »Module:Road data/strings/USA/KY
Jumat, 2025-02-07 04:08:32Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/VNM
Selasa, 2022-11-15 09:21:09Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/BGR/sandbox
Jumat, 2023-08-04 06:04:28Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Listen
Jumat, 2022-07-08 00:12:31etc. with args.filename etc. origNumArgs = mTableTools.compressSparseArray(origNumArgs) for i, t in ipairs(origNumArgs) do -- Check if the files...
Click to read more »Module:Road data/strings/USA/NH
Jumat, 2024-08-23 06:25:13Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Lua banner/sandbox
Jumat, 2025-11-28 13:29:11end function p._main(args) local modules = mTableTools.compressSparseArray(args) local box = p.renderBox(modules) local trackingCategories = p...
Click to read more »Module:Road data/strings/USA/VT
Sabtu, 2021-09-25 11:30:45Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Adjacent stations/doc
Selasa, 2025-06-03 23:16:39a default case and then exceptions, if necessary. Station format is an array, similar to a switch with cases. Take Module:Adjacent stations/Incheon Subway...
Click to read more »Module:Road data/strings/CAN/BC
Selasa, 2025-09-16 21:40:50Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/MT
Senin, 2022-07-11 00:52:24Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/SRB
Jumat, 2024-10-25 23:51:14Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/FIN
Sabtu, 2022-02-26 16:39:42Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/EF5
Jumat, 2025-01-31 23:18:43or 'title'}); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Road data/strings/USA/ID
Senin, 2023-03-06 10:28:21Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Sandbox/Izno/Citation/CS1
Senin, 2022-10-24 04:16:44true ) } ); end if utilities.in_array (cfg.keywords_xlate[Title], {'off', 'none'}) and utilities.in_array (config.CitationClass, {'journal', 'citation'})...
Click to read more »Module:Television critical response/sandbox
Jumat, 2022-10-21 17:03:17args={formatted_caption}}) end end -- Extract seasons info and place into a 3D array local SeasonEntries = {} local SeasonCount = 0 for k,v in pairs(args)...
Click to read more »Module:CS1 translator
Jumat, 2026-03-06 13:45:32Whether needle is in haystack ]] local function in_array (needle, haystack) if needle == nil then return false; end for n, v...
Click to read more »Module:Message box
Senin, 2025-10-20 01:19:52title end end local function union(t1, t2) -- Returns the union of two arrays. local vals = {} for i, v in ipairs(t1) do vals[v] = true end for...
Click to read more »Module:Road data/strings/KOR
Jumat, 2026-03-27 06:22:50Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/IN
Senin, 2023-01-16 12:13:03Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/NM
Jumat, 2025-08-01 05:01:47Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/TN
Senin, 2022-09-12 20:29:49Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Parameters/sandbox
Sabtu, 2020-07-04 17:56:03-- operate on the table (which is to say, the normalised parameters -- array), key access will be by way of the paramIndex metatable. setmetatable(paramsNorm...
Click to read more »Module:Sandbox/Matthiaspaul/Citation/CS1/Date validation
Rabu, 2024-09-18 03:24:52T I O N S >-------------------------------------- ]] local is_set, in_array; -- imported functions from selected Module:Citation/CS1/Utilities...
Click to read more »Module:Mapframe
Senin, 2026-06-01 22:40:49--Single item, no array needed if #content==1 then return content[1] end --Multiple items get placed in a FeatureCollection local contentArray = '[\n' .....
Click to read more »Module:Sandbox/Monochrome Monitor
Senin, 2022-10-24 04:02:05display} pages[k] = page end end pages = mTableTools.compressSparseArray(pages) local options = { selfref = args.selfref } local frame = mw...
Click to read more »Module:Aligned table
Kamis, 2021-01-14 04:53:43isnotempty(args['style']) then root:cssText(args['style']) end -- build arrays with the column styles and classes if isnotempty(args['leftright']) then...
Click to read more »Module:Road data/strings/IRN
Minggu, 2022-01-09 12:38:56Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Chessboard/sandbox
Rabu, 2026-05-27 11:27:47function convertFenToArgs( fen ) -- converts FEN notation to 64 entry array of positions, offset by 2 local res = { ' ', ' ' } -- Loop over rows,...
Click to read more »Module:Road data/strings/USA/UT
Jumat, 2021-12-10 12:26:37Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Road data/strings/USA/KS
Sabtu, 2021-10-09 07:27:04Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Adjacent stations/testcases/Test module
Sabtu, 2024-02-24 13:20:22"Auditorium", ['right terminus'] = "Chunhua Avenue", }, ["terminus with array"] = { ["title"] = "line with only left terminus", ['left terminus']...
Click to read more »Module:Road data/strings/USA/SD
Selasa, 2022-09-13 05:52:09Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include...
Click to read more »Module:Lua call
Rabu, 2025-07-30 11:17:19------------------------- -- ipairsAtOffset -- This is an iterator for arrays. It can be used like ipairs, but with -- specified i as first index to iterate...
Click to read more »Module:UserLinks
Minggu, 2024-09-01 00:20:30local codes if mTableTools then codes = mTableTools.compressSparseArray(args) else codes = {} for i, code in ipairs(args) do codes[i] =...
Click to read more »Module:Sandbox/N3rsti/Names
Sabtu, 2020-01-11 17:55:56"''Family'' = " .. surname end end -- Loop through spain letters from array. for _, i in pairs(lang.spain_letters) do if string.match(fullname, i)...
Click to read more »Module:Team appearances list
Senin, 2026-04-20 17:39:54tables with absent years and absent year ranges. -- Parameter data is an array of strings from template parameters, or -- numbers or strings from built-in...
Click to read more »