Search Results: Module:Object height
Sorry, the article you're looking for isn't specifically available. Here are related topics:
Module:Object weight/testcases
Jumat, 2025-10-03 16:43:29-- Unit tests for [[Module:Object weight]]. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_weight() ...
Click to read more »Module:Celestial object quadrangle/doc
Jumat, 2024-08-30 03:36:31{{#invoke:Celestial object quadrangle|category|globe=GLOBE|lat=XX.XXX|lon=YY.YYY}} or, for the quadrangle name, use {{#invoke:Celestial object...
Click to read more »Module:Object weight/doc
Jumat, 2025-10-03 16:13:57This module is intended to aid in converting weights in {{Infobox mobile phone}}. {{#invoke:Object weight|weight|123 g}} Module:Object size...
Click to read more »Module:Object size/doc
Selasa, 2025-09-23 05:51:47dimensions in {{Infobox mobile phone}}. It is implemented by {{Infobox mobile phone/size}}. {{#invoke:Object size|size|153 x 235 x 23 mm}} Module:Object weight...
Click to read more »Module:R from fictional object multi/doc
Kamis, 2020-04-02 22:13:10Module:R from fictional object multi is used by {{R from fictional character}}, {{R from fictional element}} and {{R from fictional location}} to handle...
Click to read more »Module:R from fictional object multi/testcases
Senin, 2024-05-06 18:33:44-- Unit tests for [[Module:R from fictional object multi]]. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_01_multiple_categories()...
Click to read more »Module:Redirect
Jumat, 2021-09-10 14:46:37getting the target of a redirect page. local p = {} -- Gets a mw.title object, using pcall to avoid generating script errors if we -- are over the expensive...
Click to read more »Module:Namespace detect
Minggu, 2014-04-06 00:01:23ret = demospace end else local pageObject = p.getPageObject(page) if pageObject then if pageObject.isTalkPage then -- Get the subject namespace...
Click to read more »Module:Buffer/doc
Senin, 2025-12-08 00:22:18generalized for all modules. The interface for Module:Buffer objects is similar to that of mw.html objects in that you may build complex strings with independent...
Click to read more »Module:Italic title
Sabtu, 2022-10-22 04:17:12Things that belong to the class are here. Things that belong to each -- object are in the constructor. ----------------------------------------------...
Click to read more »Module:Redirect template handler/doc
Kamis, 2024-06-27 16:56:06has two entry points setEpisodeRedirect(args) and setFictionalObjectRedirect(args, objectType). The functions return a {{Redirect category shell}} and...
Click to read more »Module:IP
Sabtu, 2022-10-22 16:07:04isObjectFunc) -- Make a function for validating a specific object. return function (methodName, argIdx, arg) if not isObjectFunc(arg) then...
Click to read more »Module:Redirect/sandbox
Senin, 2023-04-17 04:25:54getting the target of a redirect page. local p = {} -- Gets a mw.title object, using pcall to avoid generating script errors if we -- are over the expensive...
Click to read more »Module:Sensitive IP addresses/API/doc
Selasa, 2020-07-07 20:26:21sensitiveips child object will be present and can contain the following objects and arrays: matches - an array of IP address objects or IP range objects, where the...
Click to read more »Module:Arrowverse redirect category handler
Minggu, 2024-11-10 01:21:45function which handles the main operation. --]] local function main(args, objectType) local franchiseHandlerModule = require("Module:Fiction redirect category...
Click to read more »Module:Dump
Senin, 2021-06-07 14:35:17table to help develop other modules. -- It is also possible to use mw.dumpObject() but the result from this -- module is clearer and is close to valid Lua...
Click to read more »Module:Italic title/sandbox
Kamis, 2026-03-05 20:57:34Things that belong to the class are here. Things that belong to each -- object are in the constructor. ----------------------------------------------...
Click to read more »Module:RFX report
Minggu, 2025-10-05 04:35:50status = rfxObject:getStatus() local page = rfxObject:getTitleObject().prefixedText local user = rfxObject.user or rfxObject:getTitleObject().subpageText...
Click to read more »Module:Class/doc
Sabtu, 2024-10-19 09:21:33model for the class definition JSON. The top-level JSON object contains a number of objects. Each is either a class definition, or an alias. The keys...
Click to read more »Module:Article history
Selasa, 2024-08-20 01:12:15and the collapsible notice objects, and generate the -- HTML objects for the action objects. We need the action HTML objects so -- that we can accurately...
Click to read more »Module:Unsubst
Sabtu, 2021-10-09 01:22:16#invoke)", BODY_PARAM ), 2) end end -- Sanity check for the frame object. if type(frame) ~= 'table' or type(frame.getParent) ~= 'function' or...
Click to read more »Module:Ref info
Minggu, 2024-09-15 17:17:04objects[object].count = objects[object].func (text, objects[object].pattern, objects) -- do the search and store the result end end objects['named_refs']...
Click to read more »Module:Sandbox/trappist the monk/i18n dates
Senin, 2022-10-24 03:58:59long_names_from_lang_object_t = {}; local short_names_from_lang_object_t = {}; local lang_obj = mw.language.new (lang_tag); -- make a new language object for...
Click to read more »Module:Arguments
Rabu, 2020-04-01 13:12:40end --[[ -- Get the argument tables. If we were passed a valid frame object, get the -- frame arguments (fargs) and the parent frame arguments (pargs)...
Click to read more »Module:Article history/doc
Jumat, 2024-08-30 03:17:53variable is the category text, and sort is its sort key. Once category objects are created, they have the following properties: category - the category...
Click to read more »Module:Wd
Rabu, 2025-07-23 02:53:47with value objects local valuesArray -- array with value objects local sep = nil -- value object local out = {} -- array with value objects local...
Click to read more »Module:WikidataCheck/sandbox
Kamis, 2023-11-30 17:34:06qid == "" then entity = mw.wikibase.getEntityObject() else entity = mw.wikibase.getEntityObject(qid) end if not entity then -- no Wikidata item...
Click to read more »Module:WikidataCheck
Kamis, 2023-11-30 18:27:19qid == "" then entity = mw.wikibase.getEntityObject() else entity = mw.wikibase.getEntityObject(qid) end if not entity then -- no Wikidata item...
Click to read more »Module:Namespace detect/sandbox
Sabtu, 2014-04-05 23:58:53ret = demospace end else local pageObject = p.getPageObject(page) if pageObject then if pageObject.isTalkPage then -- Get the subject namespace...
Click to read more »Module:Redirect template handler
Kamis, 2024-06-27 16:55:32objectType) local disambiguation = getDisambiguation(args) local correctDisambiguation = getCorrectDisambiguation(args) objectType = objectType...
Click to read more »Module:Arguments/sandbox
Rabu, 2021-04-21 16:30:15end --[[ -- Get the argument tables. If we were passed a valid frame object, get the -- frame arguments (fargs) and the parent frame arguments (pargs)...
Click to read more »Module:Rfx/doc
Senin, 2022-08-22 20:27:57called with the colon syntax: local titleObject = exampleRfa:getTitleObject() getTitleObject(): gets the title object for the RfX page. See the reference manual...
Click to read more »Module:Article history/config
Jumat, 2024-11-22 11:26:36history object as the first parameter, and the current status object as -- the second parameter, and should return an array of category objects. -- noticeBarIcon:...
Click to read more »Module:Year in various calendars/doc
Kamis, 2023-12-28 21:57:18object to wikicode. This calls calendar:export() and calendarGroup:export() to export calendar objects and calendar group objects. A calendar object is...
Click to read more »Module:Documentation
Rabu, 2025-03-12 10:38:41including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env...
Click to read more »Module:Sandbox/Marsupium/Object
Minggu, 2025-12-28 22:36:54wikibase.getLabelByLang(qid, langs[i]) end return label end function p.object(frame) local args = frame:getParent().args local qid = mw.text.trim(frame...
Click to read more »Module:Japanese calendar/doc
Jumat, 2024-08-30 05:01:36era object for the "old" era. This is the same as the current era object unless eraYear equals 1. If eraYear equals 1 then this returns the era object for...
Click to read more »Module:Template invocation
Jumat, 2024-09-06 03:21:20mw.title object. -- Description: This function detects whether a string or a mw.title -- object has been passed in, and...
Click to read more »Module:Rfx
Senin, 2024-11-25 04:10:19function getTitleObject(title) local success, titleObject = pcall(newTitle, title) if success and titleObject then return titleObject else return...
Click to read more »Module:Sandbox/sameboat
Selasa, 2013-03-19 10:38:19my_object = {}; --All lua modules on wiki must define a global variable --that will hold their externally accessible functions...
Click to read more »Module:IP/testcases
Senin, 2026-03-09 22:51:53IP_ADDRESS_CLASS = 'IPAddress' local IP_ADDRESS_OBJECT = 'ipAddress' local SUBNET_CLASS = 'Subnet' local SUBNET_OBJECT = 'subnet' local IPV4COLLECTION_CLASS =...
Click to read more »Module:Sandbox/Popcorndude/test0
Rabu, 2015-09-16 19:16:49object = {} object.claim = function(frame) local prop = frame.args[1] local qid = frame.args[2] local entity = mw.wikibase.getEntityObject(qid) return...
Click to read more »Module:Sandbox/Luis150902/Test
Jumat, 2018-02-16 02:00:45middleclass('TreeNode'); function TreeNode:initialize(object, options) self.children = {}; self.object = object; self.options = options or {}; end function...
Click to read more »Module:Arrowverse redirect category handler/sandbox
Senin, 2024-05-06 13:53:04function which handles the main operation. --]] local function main(args, objectType) local franchiseHandlerModule = require("Module:Fiction redirect category...
Click to read more »Module:Japanese calendar
Sabtu, 2023-09-30 10:29:55the era object for the "old" era. In most cases this is the same as the current era object, but -- if the era year for the current object is 1, this...
Click to read more »Module:Current RfX/doc
Senin, 2025-02-24 18:48:59page names of currently open RfX, and rfx, which returns a table of rfx objects created using Module:Rfx. First, load the module. local currentRfx =...
Click to read more »Module:Diff days
Sabtu, 2022-10-22 04:35:01require('strict'); local get_args = require ('Module:Arguments').getArgs; local lang_object = mw.getContentLanguage(); --[[--------------------------< D I F F _ D...
Click to read more »Module:Category pair/doc
Jumat, 2024-08-30 03:35:43{{Category pair}}, {{Preceding category}}, and {{Succeeding category}} {{#invoke:Category pair|_pair|title object for first page|title object for second page}}...
Click to read more »Module:Sandbox/trappist the monk/template params/data
Selasa, 2022-09-06 23:18:40>------------------------------------------------ this does not work. title_object gets the object for the page that the template is used on, not for the template...
Click to read more »Module:Rfx/sandbox
Senin, 2024-11-18 07:08:46function getTitleObject(title) local success, titleObject = pcall(newTitle, title) if success and titleObject then return titleObject else return...
Click to read more »Module:Sandbox/Xinbenlv/WikiLoop
Senin, 2019-03-25 06:10:38local function parseConflictValueObject(frame) local qid = frame.args.qid -- Qnum id local conflict_value_object = {} -- out = '' for i...
Click to read more »Module:Sandbox/trappist the monk/get lead section
Minggu, 2018-04-22 17:27:30(frame) local title_object = mw.title.new (frame.args[1]); -- get a title object for named article local content = title_object:getContent(); ...
Click to read more »Module:Template invocation/sandbox
Sabtu, 2024-07-13 19:42:56mw.title object. -- Description: This function detects whether a string or a mw.title -- object has been passed in, and...
Click to read more »Module:TemplatePar
Kamis, 2023-04-20 01:13:15frame object -- Precondition: -- frame -- object; #invoke environment, or false -- Postcondition: -- Return frame object --...
Click to read more »Module:Mock title/doc
Senin, 2023-08-28 20:57:54This module allows you to easily mock Scribunto title objects. This can be useful when writing unit tests for modules which depend on whether a certain...
Click to read more »Module:Message box
Senin, 2025-10-20 01:19:52-------------------------------- local function getTitleObject(...) -- Get the title object, passing the function through pcall -- in case we are over...
Click to read more »Module:Ref info/sandbox
Kamis, 2024-03-21 16:56:53objects[object].count = objects[object].func (text, objects[object].pattern, objects) -- do the search and store the result end end objects['named_refs']...
Click to read more »Module:Category pair
Jumat, 2022-10-21 13:49:24Arguments: -- prevTitle -- mw.title.Title object for preceding category -- nextTitle -- mw.title.Title object for succeeding category -- Returns: -- ...
Click to read more »Module:Noinclude tfd
Senin, 2025-04-28 00:36:23hidden = "" local bogus = "" for _, object in ipairs(links) do if object then local title = "Template:" .. object; local rtarget; errorvalue,...
Click to read more »Module:Jf-JSON
Kamis, 2016-12-08 10:48:33__index = isArray local isObject = { __tostring = function() return "JSON object" end } isObject.__index = isObject function OBJDEF:newArray(tbl)...
Click to read more »Module:Mock title
Jumat, 2024-05-17 23:58:52--[[ -- Set a property on an object to the given value, if that value is not nil. --]] local function maybeSetProperty(object, property, value) if value...
Click to read more »Module:Sandbox/Ahecht/flag/redirects/doc
Sabtu, 2020-06-13 22:58:22{ query = Object.assign(query, cont); } api.get( query ) .done (function (data) { if (data && data.query) { if (data.query.pages) { Object.entries(data...
Click to read more »Module:Article history/sandbox
Kamis, 2025-12-18 05:31:22and the collapsible notice objects, and generate the -- HTML objects for the action objects. We need the action HTML objects so -- that we can accurately...
Click to read more »Module:IP/doc
Sabtu, 2024-10-19 09:20:23class is used to work with single IP addresses. To create a new IPAddress object: local ipAddress = IPAddress.new(ipString) The ipString variable can be...
Click to read more »Module:RFX report/sandbox
Rabu, 2024-11-20 09:54:07status = rfxObject:getStatus() local page = rfxObject:getTitleObject().prefixedText local user = rfxObject.user or rfxObject:getTitleObject().subpageText...
Click to read more »Module:Fiction redirect category handler
Sabtu, 2026-04-18 11:11:01element and location redirect handling code. --]] local function main(args, objectType, validArgs) local redirectTemplateHandler = require("Module:Redirect...
Click to read more »Module:Category pair/sandbox
Jumat, 2022-10-21 16:58:32Arguments: -- prevTitle -- mw.title.Title object for preceding category -- nextTitle -- mw.title.Title object for succeeding category -- Returns: -- ...
Click to read more »Module:Timing/doc
Rabu, 2023-05-03 05:15:29itself my_object = {}; my_object.hello = function( frame ) local str = "Hello World!" return str end my_object.wrap = function () return my_object.hello(mw...
Click to read more »Module:Sandbox/Sdsds/Sandbox
Sabtu, 2014-07-12 12:43:40my_object = {} my_object.hello = function( frame ) local str = "Hello Sdsds!" return str end return my_object...
Click to read more »Module:Jctbtm
Senin, 2024-07-15 23:40:52table.sort(keys) return keys end local function createLegend(key, html_object) local listargs = { class = 'jct-bottom-legend' } for _,v in ipairs(key)...
Click to read more »Module:Sandbox/sameboat2
Kamis, 2015-07-30 13:40:20my_object = {}; function indextable() t={'odin'} t={'dva'} t={'tri'} for i,v in ipair(t) do t = t .. ', ' end return t .. '.' end function factorial(n)...
Click to read more »Module:Sandbox/AbyAll19
Minggu, 2017-12-10 08:18:502017, Introduction to Lua in Wikipedia my_object = {} my_object.hello = function(frame) local str = "Hello World!" return str end return my_object...
Click to read more »Module:Docbunto/references
Rabu, 2024-09-25 13:37:59reference manual#function", name = "function" }, -- Scribunto library objects. ["mw.loadData"] = { link = "mw:Extension:Scribunto/Lua reference...
Click to read more »Module:Wd/sandbox
Jumat, 2025-08-08 00:45:17with value objects local valuesArray -- array with value objects local sep = nil -- value object local out = {} -- array with value objects local...
Click to read more »Module:Official website
Jumat, 2025-11-28 13:13:53Wikidata. local fetchWikidataUrl fetchWikidataUrl = function(qid) -- Get objects for all official sites on Wikidata. local websites = quickPcall(function...
Click to read more »Module:Interlinear/data
Rabu, 2025-03-19 02:27:58wikipage = "discourse marker"}, ["DO"] = {expansion = "direct object", wikipage = "direct object"}, ["DR"] = {expansion = "motion downriver", wikipage = ""}...
Click to read more »Module:Sandbox/Mr. Ibrahem
Sabtu, 2024-06-01 06:36:00frame.args[1] local _; local page_title_object = mw.title.new(title); local text = page_title_object:getContent(); local count; _, count =...
Click to read more »Module:Multilingual
Selasa, 2022-08-09 07:07:40end object = object[ s ] if type( object ) == "table" then if object[ attempt ] then r = object[ attempt ]...
Click to read more »Module:Sandbox/xiaphias/maritime row
Rabu, 2013-05-08 11:42:43my_object = {}; --All lua modules on Wikipedia must begin by defining a variable --that will hold their externally accessible...
Click to read more »Module:Italic title2
Rabu, 2025-08-13 08:01:58Things that belong to the class are here. Things that belong to each -- object are in the constructor. ----------------------------------------------...
Click to read more »Module:Article history/config/sandbox
Jumat, 2025-12-19 03:09:03history object as the first parameter, and the current status object as -- the second parameter, and should return an array of category objects. -- noticeBarIcon:...
Click to read more »Module:Routelist bottom
Selasa, 2022-12-27 10:24:22table.sort(keys) return keys end local function createLegend(key, html_object) local listargs = { class = 'routelist-bottom-legend' } for _,v in...
Click to read more »Module:Sandbox/David-ri93/Timeline Fedora Linux Wikidata
Selasa, 2020-04-28 06:18:31then mw.logObject("Key not found " .. recConcat(key) .. " in order " .. recConcat(keys)) --mw.logObject(keys) --mw.logObject(stepper) return...
Click to read more »Module:Jf-JSON/sandbox
Minggu, 2018-02-18 02:54:37__index = isArray local isObject = { __tostring = function() return "JSON object" end } isObject.__index = isObject function OBJDEF:newArray(tbl)...
Click to read more »Module:Redirect template handler/sandbox
Rabu, 2026-02-04 01:37:07objectType) local disambiguation = getDisambiguation(args) local correctDisambiguation = getCorrectDisambiguation(args) objectType = objectType...
Click to read more »Module:One page calendar
Jumat, 2022-11-11 22:48:04where first-of-month is on day local first_day_t = { -- lang_object:formatDate ('L', 'YYYY-01-01') + 1 returns 1 (Sunday) to 7 (Saturday) {}...
Click to read more »Module:Sandbox/trappist the monk/diff time
Senin, 2022-10-24 04:02:14require('strict'); local lang_object = mw.getContentLanguage(); --[[--------------------------< D I F F _ D A Y S >---------------------------------...
Click to read more »Module:Sandbox/DixonD/Datetime
Kamis, 2013-04-25 14:20:48then return index; -- fast path: assume that index is a calendar object (not indexed) already loaded end; if type(calendar) == "string"...
Click to read more »Module:Wikitext Parsing/sandbox
Kamis, 2025-10-23 05:59:23LatestObject:Clean(true) finalObjects[#finalObjects+1] = LatestObject else LatestObject:Clean(false) end activeObjects[#activeObjects]...
Click to read more »Module:RedirectData
Sabtu, 2021-03-06 04:25:13titleObject = mw.title.getCurrentTitle() -- check if this is a redirect if titleObject.redirectTarget then targetNamespace = titleObject.redirectTarget...
Click to read more »Module:Wikitext Parsing
Selasa, 2025-05-06 00:47:12LatestObject:Clean(true) finalObjects[#finalObjects+1] = LatestObject else LatestObject:Clean(false) end activeObjects[#activeObjects]...
Click to read more »Module:Protection banner/testcases
Senin, 2026-03-09 22:37:23---------------------------------------------- local function makeTitleObject(options) local title = mw.title.new(options.page) -- Set protection levels...
Click to read more »Module:Requested move
Rabu, 2024-03-20 06:51:08Validates a page name, and if it is valid, returns true and the title -- object for that page. If it is not valid, returns false and the -- appropriate...
Click to read more »Module:Sandbox/trappist the monk/template params
Senin, 2022-10-24 04:03:52here local title_object = mw.title.getCurrentTitle(); -- create a title object for the current title if 10 == title_object.namespace then ...
Click to read more »Module:Sandbox/Mant08/IMDb name
Rabu, 2026-03-25 23:17:11base_link_object = "[https://imdb.com/name/" .. id .. "/" if (section == nil) then return pronoun .. " " .. base_link_object .. " "...
Click to read more »Module:Routelist bottom/sandbox
Selasa, 2022-12-27 10:21:34table.sort(keys) return keys end local function createLegend(key, html_object) local listargs = { class = 'routelist-bottom-legend' } for _,v in...
Click to read more »Module:Mock title/sandbox
Jumat, 2024-05-24 21:30:10--[[ -- Set a property on an object to the given value, if that value is not nil. --]] local function maybeSetProperty(object, property, value) if value...
Click to read more »Module:Infobox dim/doc
Sabtu, 2026-01-24 18:21:24about physical size of objects into parameters for geohack or mapframes. The following parameters describe the physical object size: length_km length_mi...
Click to read more »Module:Jctbtm/sandbox
Selasa, 2022-12-27 11:39:10table.sort(keys) return keys end local function createLegend(key, html_object) local listargs = { class = 'jct-bottom-legend' } for _,v in ipairs(key)...
Click to read more »Module:IP/sandbox
Minggu, 2023-03-19 04:48:22isObjectFunc) -- Make a function for validating a specific object. return function (methodName, argIdx, arg) if not isObjectFunc(arg) then...
Click to read more »Module:Sandbox/jonpatterns/fruitbynumber
Senin, 2016-06-27 01:44:51= getArgs(frame) page_title_object = mw.title.new("User:Jonpatterns/toggle0"); text = page_title_object:getContent(); return "goodbye and"...
Click to read more »Module:Random slideshow
Jumat, 2025-03-28 20:28:55namespaceNumber = function(pagetitle) local titleObject = mw.title.new(pagetitle) return titleObject and titleObject.namespace end local lines = {} local...
Click to read more »Module:Message box/sandbox
Rabu, 2026-01-14 07:04:32-------------------------------- local function getTitleObject(...) -- Get the title object, passing the function through pcall -- in case we are over...
Click to read more »Module:Navigation header/doc
Senin, 2023-09-25 03:25:22Template:Navigation header. main(frame: table) -> string Takes a frame object containing the template's arguments and generates a navigation header. frame:...
Click to read more »Module:Documentation/sandbox
Rabu, 2026-06-03 23:02:24Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @function p.getEnvironment...
Click to read more »Module:Redirect/doc
Jumat, 2026-02-06 12:11:39title object. phab:T68974 - Provide a standard way to get the target of a redirect page mw:Extension:Scribunto/Lua reference manual#Title objects, the...
Click to read more »Module:CineMol/svg
Kamis, 2025-10-30 06:30:08definitions, "\n" ) local objects_str = "" for i,object in ipairs( objects ) do objects_str = objects_str .. object:to_svg() .. "\n" end ...
Click to read more »Module:Fiction redirect category handler/Franchise
Kamis, 2024-11-14 11:39:50Public function which handles the main operation. --]] function p.main(args, objectType, franchise, tvSeriesNameList) local validArgs = {"correct_disambiguation"...
Click to read more »Module:Sandbox/Mr. Stradivarius/sandbox4
Selasa, 2024-03-26 14:34:06-- title object ---------------------------------------------------------------------- -- Get the title object for the current page and...
Click to read more »Module:Celestial object quadrangle
Kamis, 2022-06-09 22:46:32-- This module implements/replaces -- [[Template:Lunar quadrangle]] -- [[Template:Mars quadrangle]] -- [[Template:Venus quadrangle]] local p = {} local...
Click to read more »Module:Sandbox/Jikat2/datehanding
Selasa, 2020-12-29 02:24:40gmatch(text, "%w+") do local object, object2 = string.find(i, "%d+") if object then i = string.sub(i, object, object2) end if tonumber(i)...
Click to read more »Module:Sandbox/Rockingerser/Random sentence generator
Minggu, 2023-04-02 11:12:35"fishes" }, }, object = { main = function(data) local object = module.inputs.object.items[math.random(#module.inputs.object.items)] local result...
Click to read more »Module:Location map
Selasa, 2026-05-26 13:47:54result[2] then mw.log('Malformed coordinates value') mw.logObject(para, 'para') mw.logObject(coord, 'coord') return error('Malformed coordinates value'...
Click to read more »Module:Sandbox/Ajuanca/Dates
Jumat, 2020-01-24 00:43:35function p.chooseFormat(dateObject, prefference) local correctFormat="" if(dateObject.dateFormat~= nil)then correctFormat=dateObject.dateFormat else ...
Click to read more »Module:Pn
Senin, 2025-12-22 01:09:01getVal = function(frame) local args = {} -- copy arguments from frame object and its parent for k, v in pairs(frame.args) do args[k] = v end for...
Click to read more »Module:Shindo/data/doc
Jumat, 2025-03-07 22:44:21objectToWriteTo, id_prefix ) (function) Adds field to multiple scales Parameters: nameOfField field name (string) objectToWriteTo write to object (table)...
Click to read more »Module:Television episode redirect handler/doc
Jumat, 2021-07-02 07:14:22place the redirect in a series-specific category: [[Category:(series) (object) redirects to lists]], such as Category:Arrow (TV series) character redirects...
Click to read more »Module:Sensitive IP addresses/API
Rabu, 2016-11-23 16:27:57-- otherwise. matchObj is the Subnet object that was matched, and queryObj -- is the IPAddress or Subnet object corresponding to the input string. ...
Click to read more »Module:Page/doc
Senin, 2024-09-02 05:15:19goodies listed in mw:Extension:Scribunto/Lua reference manual § Title objects to be accessed by people who do not want to write a Lua module. Usage is:...
Click to read more »Module:IPAddress/doc
Sabtu, 2024-10-19 09:19:46other modules can require this module and call them directly. We return an object with 3 small stub functions to call the real ones so that the functions...
Click to read more »Module:Shortcut/doc
Kamis, 2024-12-05 06:16:07Module:Yesno, such as "no"), categories are suppressed. frame is a frame object. This is optional, and only intended to be used internally. cfg is a table...
Click to read more »Module:Disambiguation/doc
Minggu, 2025-12-07 20:21:42_isDisambiguationPage. If you have already have a Title object for the page to check, get the content using the title object's getContent() method, and pass that into...
Click to read more »Module:Sandbox/econterms
Rabu, 2019-08-14 22:29:09CleverName(frame) return "Hello world." end -- the "frame" object containts an object called args. frame.args is a table -- frames.arg.name is a string...
Click to read more »Module:OSM
Senin, 2015-09-28 05:48:01target) local textToDisplay, leftLink, rightLink, runQueryRightAway, itemObject, itemID, query, coord, bbox, remark, overpassUrl, primitives, timeout, style...
Click to read more »Module:Sandbox/CX Zoom/TestPage4
Sabtu, 2024-11-02 00:14:37status = rfxObject:getStatus() local page = rfxObject:getTitleObject().prefixedText local user = rfxObject.user or rfxObject:getTitleObject().subpageText...
Click to read more »Module:Fiction redirect category handler/doc
Jumat, 2024-08-30 04:19:56place the redirect in a series-specific category: [[Category:(series) (object) redirects to lists]], such as Category:Arrow (TV series) character redirects...
Click to read more »Module:Sandbox/Jeblad/NLG/Q618123
Minggu, 2019-11-17 11:05:25--[[ This data is for testing purposes. --]] --- @return Plan for [[d:Q618123|geographical object (Q618123)]] return { }...
Click to read more »Module:Sandbox/hakanist
Kamis, 2019-08-15 21:09:20CleverName(frame) return "Hello world." end -- the "frame" object containts an object called args. frame.args is a table -- frames.arg.name is a string...
Click to read more »Module:Sandbox/Jeblad/NLG/Q488383
Minggu, 2019-11-17 11:05:24--[[ This data is for testing purposes. --]] --- @return Plan for [[d:Q488383|object (Q488383)]] return { }...
Click to read more »Module:Lockbox
Minggu, 2024-11-10 13:48:34CASCADINGSOURCES. -- -- We cannot generate this transclusion using the title object for the -- parent title (the lockbox), as if the lockbox is transcluded...
Click to read more »Module:Repr/doc
Minggu, 2021-03-14 09:27:07module contains functions for generating string representations of Lua objects. It is inspired by Python's repr function. To use the module, first you...
Click to read more »Module:Mock title/testcases
Jumat, 2024-05-24 21:30:40MockTitle: passing a MockTitle object to the redirectTarget option causes redirectTarget to be that MockTitle object'] = function (self) local mockRedirectTarget...
Click to read more »Module:R from fictional object multi
Senin, 2024-05-06 18:35:58require("strict") local p = {} local resolveRedir = require("Module:Resolve category redirect").rtarget --[[ Local function which creates the relevent...
Click to read more »Module:Clickable button/sandbox
Kamis, 2025-10-23 15:48:12@field private pageTitleObject mw.title Title object of the current page. --- @field private linkTitleObject mw.title Title object of the target wikilink...
Click to read more »Module:ISBN RangeMessage xlate
Sabtu, 2023-09-09 20:53:50('strict'); local title_object = mw.title.getCurrentTitle (); -- get this module's title object if not title_object.fullText:find ('/doc$') then...
Click to read more »Module:Signpost
Sabtu, 2023-12-16 07:24:07rowseparator end self.noarticles = args.noarticles -- Get article objects, filtered by page, date and tag, and sort them. if args.page then self...
Click to read more »Module:Unsubst/sandbox
Rabu, 2026-06-03 03:52:34#invoke)", BODY_PARAM ), 2) end end -- Sanity check for the frame object. if type(frame) ~= 'table' or type(frame.getParent) ~= 'function' or...
Click to read more »Module:Excerpt slideshow
Minggu, 2024-08-18 18:19:31isArticle = function(pagetitle) local titleObject = mw.title.new(pagetitle) return ( titleObject and titleObject.namespace == 0 ) and true or false end ...
Click to read more »Module:Official website/sandbox
Rabu, 2025-11-26 12:04:00Wikidata. local fetchWikidataUrl fetchWikidataUrl = function(qid) -- Get objects for all official sites on Wikidata. local websites = quickPcall(function...
Click to read more »Module:Spatial image viewer/doc
Rabu, 2025-02-05 02:41:24image viewer|makeViewer}} Make an image viewer for when you have multiple images of the same object at different angles. See {{Spatial image viewer}}....
Click to read more »Module:Sandbox/Luis150902/Test/doc
Minggu, 2022-05-08 03:25:00Second, invoke the treeView function of the module with the object to render and (optionally) an option table as the second argument. Wikitext...
Click to read more »Module:Ns has subpages/doc
Sabtu, 2024-10-19 09:12:27or a page name. It defaults to the current namespace. frame is a frame object with which we can call frame:callParserFunction if necessary. This is optional...
Click to read more »Module:Sandbox/CX Zoom/TestPage1
Jumat, 2024-11-01 23:48:37function getTitleObject(title) local success, titleObject = pcall(newTitle, title) if success and titleObject then return titleObject else return...
Click to read more »Module:Protected edit request/active
Rabu, 2026-04-15 08:14:15<span></span>]', protectionLinkText, self:urlEncode()) end -- Get a subpage title object, but go through pcall rather than use the unprotected mw.title:subPageTitle...
Click to read more »Module:Fiction-based redirects to list entries category handler/RedirectType
Kamis, 2024-06-27 01:00:59RedirectType, "Fiction-based redirects to list entries category handler object") --[[ Public function which is used to retrieve the main category for...
Click to read more »Module:Sandbox/Jeblad/NLG/Q223557
Minggu, 2019-11-17 11:05:23--[[ This data is for testing purposes. --]] --- @return Plan for [[d:Q223557|physical object (Q223557)]] return { }...
Click to read more »Module:File link
Rabu, 2020-04-01 13:31:54new table to avoid looking up -- every possible parameter in the frame object. local args = {} for k, v in pairs(origArgs) do -- Make _BLANK a special...
Click to read more »Module:Location map/sandbox
Selasa, 2026-06-02 04:25:47result[2] then mw.log('Malformed coordinates value') mw.logObject(para, 'para') mw.logObject(coord, 'coord') return error('Malformed coordinates value'...
Click to read more »Module:Sandbox/Jeblad/NLG/Q20719696
Minggu, 2019-11-17 11:05:23--[[ This data is for testing purposes. --]] --- @return Plan for [[d:Q20719696|physico-geographical object (Q20719696)]] return { }...
Click to read more »Module:Fiction redirect category handler/sandbox
Senin, 2024-05-06 13:52:35element and location redirect handling code. --]] local function main(args, objectType, validArgs) local redirectTemplateHandler = require("Module:Redirect...
Click to read more »Module:Sandbox/trappist the monk/bob
Kamis, 2024-07-11 22:20:39dumpObject (iso2_not_in_iana) .. '\n\niso2B_not_in_iana:\n' .. mw.dumpObject (iso2B_not_in_iana) .. '\n\niso3_not_in_iana:\n' .. mw.dumpObject (iso3_not_in_iana)...
Click to read more »Module:Graph/doc
Rabu, 2025-12-10 00:26:18extension to display graphs and maps. From de:Modul:Graph. Creates a JSON object for <graph> to display a political map with colored highlights. In the article...
Click to read more »Module:Sandbox/Erutuon/Climate/stats
Rabu, 2024-04-17 18:46:03desired -- value. For instance, "Stats_object.mean" returns the mean of the values in -- "Stats_object", "Stats_object.above_10" the number of values greater...
Click to read more »Module:Citation/CS1/Date validation
Minggu, 2026-01-18 02:25:14>-------------------------------- File-scope variables are declared here ]] local lang_object = mw.getContentLanguage(); -- used by is_valid_accessdate(), is_valid_year()...
Click to read more »Module:Engvar/detect
Senin, 2025-06-16 01:00:58title_object = pagename and mw.title.new(pagename) or mw.title.getCurrentTitle(); local content; if 10 ~= title_object.namespace and 828 ~= title_object...
Click to read more »Module:TemplateDataGenerator
Jumat, 2025-11-28 00:56:12TemplateData skeleton -- Precondition: -- attempt -- mw.title object; related to template code -- alphabetical -- boolean or nil; sort...
Click to read more »Module:Sandbox/Davykamanzi/sandbox
Rabu, 2014-07-23 11:05:04-- For more about the Frame object, see http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Frame_object -- Unit tests at Module:BananasArgs/testcases...
Click to read more »Module:Sandbox/Davykamanzi
Rabu, 2014-07-23 11:07:03-- For more about the Frame object, see http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Frame_object -- Unit tests at Module:BananasArgs/testcases...
Click to read more »Module:Class
Senin, 2025-06-02 19:35:38canonical class code for a given code. --Returns two values: the definition object and the canonical class code --string. local canonicalCode = normalizeValue(code)...
Click to read more »Module:Ns has subpages
Sabtu, 2024-02-17 11:01:43function, -- which should catch the remainder of cases. Don't use a mw.title object, -- as this would increment the expensive function count for each new page...
Click to read more »Module:Engvar/detect/sandbox
Minggu, 2024-09-01 13:46:50title_object = pagename and mw.title.new(pagename) or mw.title.getCurrentTitle(); local content; if 10 ~= title_object.namespace and 828 ~= title_object...
Click to read more »Module:Formatnum/doc
Jumat, 2024-08-30 04:29:57functions has the advantage that you do not need to access a Lua frame object. Lua functions are preceded by _, whereas #invoke functions are not....
Click to read more »Module:Object size
Sabtu, 2026-01-31 01:00:25-- This module is based off of [[Module:Person length]] local p = {} -- This function 100% written by AI! local function replace_all_but_last(str, pattern...
Click to read more »Module:Progress box
Rabu, 2023-03-01 11:23:23args[1] self._frame = mw.getCurrentFrame() -- Make the base category object if not args[1] then error('no base category specified', 3) end self...
Click to read more »Module:Redirect hatnote
Selasa, 2022-09-06 01:21:32function getTitle(...) --Calls mw.title.new and returns either a title object, or nil on error local success, titleObj = pcall(mw.title.new, ...) return...
Click to read more »Module:Object weight
Jumat, 2025-10-03 16:28:54-- This module is based off of [[Module:Person weight]] local p = {} local function clean_weight(s) s = mw.ustring.gsub(s, 'grams', 'g') s = mw.ustring...
Click to read more »Module:Sandbox/pietrasagh/sometest
Rabu, 2020-03-25 11:57:32local p = {}; p.hello = function( frame ) --Add a function to "my_object". local str = "Hello World!" --Declare a local variable and set it...
Click to read more »Module:Wikidata
Sabtu, 2023-03-04 11:35:36is no local Wikipedia article output the label or link to the Wikidata object to let the user input a proper label if linkName then return linkName...
Click to read more »Module:RfX template maker
Kamis, 2014-05-22 19:17:19local rfxMethods = { page = function (obj) local title = obj:getTitleObject() return title.prefixedText end, dupes = function (obj) local dupes...
Click to read more »Module:Section link/doc
Jumat, 2026-03-13 10:20:31avoid displaying the base page name in links. title - a default mw.title object to use instead of the current title. Intended for testing purposes. All...
Click to read more »Module:Month translator
Sabtu, 2022-10-22 11:19:11-- args_t[1] = 'dump' to dump <month_names_t> table; return mw.dumpObject (data.month_names_t); end if not args_t[1] then return nil end for i...
Click to read more »Module:Sandbox/genewiki/generefbox
Rabu, 2016-05-25 13:34:14--try to get it from the args local mm_qid = "" --pull all the entity objects that we will need local entity = {} local entity_protein = {} local...
Click to read more »Module:Infobox dim/data
Selasa, 2024-10-08 01:00:28local typeToDim = { -- typical size of object (in km) country = 2000, satellite = 2000, state = 600, adm1st = 200, adm2nd = 60, adm3rd =...
Click to read more »Module:Unicode convert/doc
Selasa, 2021-05-25 19:05:29e.g. unicodeConvert.getUTF8{ args = {'1F345'} }, without a proper frame object. To find the character code of a given symbol (in decimal), use e.g....
Click to read more »Module:Sandbox/DannyS712/gen
Minggu, 2019-12-08 13:20:29row, 'initial: %d' ) -- mw.logObject( indexStart ) local fromStart = string.sub( row, indexStart + 9 ) -- mw.logObject( fromStart ) local indexEnd...
Click to read more »Module:Transclusion count/data/O
Minggu, 2026-05-31 12:14:32["Own_work"] = 13000, ["Module:OSM_Location_map"] = 7300, ["Module:Object_size"] = 2700, ["Module:Object_weight"] = 2800, ["Module:Official_website"] = 355000,...
Click to read more »Module:Taxonbar
Minggu, 2025-12-14 22:45:10then local entityObject = mw.wikibase.getEntity('P'..property) local dataType if entityObject then dataType = entityObject.datatype else...
Click to read more »Module:Discussion ping
Jumat, 2024-09-20 23:52:58--- Makes a user link -- @param {table} userTitle the title for the user object -- @return {string} the formatted user link in the form of a ping function...
Click to read more »Module:Table row counter
Kamis, 2019-11-14 05:11:54'Template:Table row counter'})) end function p._main(args) -- Get the title object. local titleObj do local success success, titleObj = pcall(mw.title...
Click to read more »Module:Infobox dim/sandbox/data
Selasa, 2025-01-07 04:06:29local typeToDim = { -- typical size of object (in km) country = 2000, satellite = 2000, state = 600, adm1st = 200, adm2nd = 60, adm3rd =...
Click to read more »Module:Scripts/doc
Rabu, 2025-06-11 15:28:31module exports a number of functions that are used to find scripts. A Script object is returned from one of the functions above. It is a Lua representation...
Click to read more »Module:Sandbox/The Master of Hedgehogs
Senin, 2024-02-26 21:08:15string result of the function. end -- Ends the block defining the function object p["main"] (or p.main). return p -- This returns the table p, which under...
Click to read more »Module:Requested move/sandbox
Selasa, 2024-03-19 09:41:26Validates a page name, and if it is valid, returns true and the title -- object for that page. If it is not valid, returns false and the -- appropriate...
Click to read more »Module:Sandbox/Was a bee/Dump
Selasa, 2018-06-12 03:48:19args.id) and frame or frame:getParent() local data = mw.wikibase.getEntityObject(f.args.id) local width = f.args.width or "100%" local height = f.args...
Click to read more »Module:File link/sandbox
Kamis, 2014-12-18 21:04:02new table to avoid looking up -- every possible parameter in the frame object. local args = {} for k, v in pairs(origArgs) do -- Make _BLANK a special...
Click to read more »Module:Wikidata/sandbox
Sabtu, 2023-03-04 11:34:03is no local Wikipedia article output the label or link to the Wikidata object to let the user input a proper label if linkName then return linkName...
Click to read more »Module:MLB standings
Sabtu, 2024-09-07 07:29:08teamInfo end, -- function readTeamInfo.default() } -- readTeamInfo object -- -- generateTableHeader: table of functions that generate table header...
Click to read more »Module:JSONutil/sandbox
Rabu, 2026-01-28 01:21:41-- Retrieve template argument indent. -- Parameter: -- frame -- object -- Returns: -- Number of indentation level, or not. local r ...
Click to read more »Module:Ns has subpages/sandbox
Jumat, 2016-06-17 07:51:09function, -- which should catch the remainder of cases. Don't use a mw.title object, -- as this would increment the expensive function count for each new page...
Click to read more »Module:Road data/strings/doc
Rabu, 2025-12-10 01:20:58parsed and returned by the parser. A format string is an ordinary string object. The power of these strings comes in the form of two special instructions...
Click to read more »Module:Redirect hatnote/testcases
Senin, 2026-03-09 22:33:20local currentTitle = suite.makeFakeTitleObject('Example') local redirectTitle = suite.makeFakeTitleObject('Example 2', {exists = false, isRedirect =...
Click to read more »Module:Sandbox/Usien6
Jumat, 2018-08-24 06:12:43break end end return result end is_string = function(object) return type(object) == "string" end select_arg = function(frame, mandatory, keys...
Click to read more »Module:Graphical timeline
Jumat, 2025-10-10 19:34:46collapsible -- args.state = set collapse state -- Returns; -- html div object that is root of DOM for graphical timeline -- -- CSS taken from previous...
Click to read more »Module:R from fictional object multi/sandbox
Senin, 2024-05-06 18:35:18require("strict") local p = {} local resolveRedir = require("Module:Resolve category redirect").rtarget --[[ Local function which creates the relevent...
Click to read more »Module:Link if exists
Selasa, 2025-11-25 09:37:32titleExistsUnprotected(titleObject) return titleObject.exists end -- test for title existing -- if we get an error accessing titleObject.exists, assume it...
Click to read more »Module:Protected edit request/active/sandbox
Rabu, 2026-04-15 07:43:12<span></span>]', protectionLinkText, self:urlEncode()) end -- Get a subpage title object, but go through pcall rather than use the unprotected mw.title:subPageTitle...
Click to read more »Module:Page assessment/doc
Kamis, 2025-06-05 05:17:27rating), by parsing the first pageAssessments property of the mw.title object for a given page name. If the API does not return a pageAssessments table...
Click to read more »Module:Template invocation/doc
Kamis, 2025-07-17 01:14:10pages it returns the full page name. title can be a string or a mw.title object. mTemplateInvocation.invocation(name, args, format) This function creates...
Click to read more »Module:Sandbox/Hike395/testExpensive
Kamis, 2025-11-06 18:06:44titleExistsUnprotected(titleObject) return titleObject.exists end -- test for title existing -- if we get an error accessing titleObject.exists, assume it...
Click to read more »Module:Sandbox/Mensis Mirabilis/gene
Selasa, 2018-11-20 21:16:41--try to get it from the args local mm_qid = "" --pull all the entity objects that we will need local entity = {} local entity_protein = {} local...
Click to read more »Module:Sandbox/pietrasagh/Tohaomg
Sabtu, 2020-10-03 15:36:36local p = {} --create object (table) to be returned function p.main(frame) args = frame:getParent().args; --get all the parameters given in template...
Click to read more »Module:Table
Minggu, 2025-10-12 09:25:44table_data Table data as a list of rows, each containing a list of cell objects function _M.get_table_data(table_wikitext) local table_data = {} ...
Click to read more »Module:Graphical timeline/sandbox
Jumat, 2025-10-10 11:13:11collapsible -- args.state = set collapse state -- Returns; -- html div object that is root of DOM for graphical timeline -- -- CSS taken from previous...
Click to read more »Module:Link if exists/sandbox
Senin, 2025-11-24 12:44:20titleExistsUnprotected(titleObject) return titleObject.exists end -- test for title existing -- if we get an error accessing titleObject.exists, assume it...
Click to read more »Module:Protected edit request
Minggu, 2025-05-11 03:02:03---------------------------------- -- Process arguments and initialise objects ----------------------------------------------------------------------...
Click to read more »Module:Table template counter/sandbox
Senin, 2022-07-18 16:52:56'Template:Table template counter'})) end function p._main(args) -- Get the title object. local titleObj do local success success, titleObj = pcall(mw.title...
Click to read more »Module:If in category/sandbox
Kamis, 2025-03-06 03:19:18getArgs(frame) return p._main(args) end function p._main(args) -- create a title object local page = (args.page and mw.title.new(args.page)) or mw.title.getCurrentTitle()...
Click to read more »Module:Sandbox/WikiMacaroons/Testlua
Jumat, 2020-06-12 18:28:20as functions. p.hello = function( frame ) --Add a function to "my_object". --Such functions are callable...
Click to read more »Module:If in category
Kamis, 2025-03-06 03:22:10getArgs(frame) return p._main(args) end function p._main(args) -- create a title object local page = (args.page and mw.title.new(args.page)) or mw.title.getCurrentTitle()...
Click to read more »Module:NewDYKnomination
Senin, 2024-10-21 15:14:24characters', page, pageType ) return formatError(msg) end -- Make a title object from the given page name. Return nil if the title is -- invalid. local function...
Click to read more »Module:Lockbox/sandbox
Senin, 2020-07-27 04:08:59CASCADINGSOURCES. -- -- We cannot generate this transclusion using the title object for the -- parent title (the lockbox), as if the lockbox is transcluded...
Click to read more »Module:Table template counter
Rabu, 2023-04-19 18:56:34'Template:Table template counter'})) end function p._main(args) -- Get the title object. local titleObj do local success success, titleObj = pcall(mw.title...
Click to read more »Module:Box-header
Senin, 2025-06-02 12:08:25local function toOpenTagString(selfClosedHtmlObject) local closedTagString = tostring(selfClosedHtmlObject) local openTagString = mw.ustring.gsub(closedTagString...
Click to read more »Module:Multilingual/sandbox
Sabtu, 2023-04-08 05:57:34else s = "labels" end object = object[s] if type(object) == "table" then if object[attempt] then r = object[attempt].value r2 = attempt...
Click to read more »Module:UKB
Senin, 2025-11-17 21:33:14translate anonymous and named arguments -- @tparam table frame A frame object -- @tparam string|nil itemType An item type to return ('criteria', 'rules'...
Click to read more »Module:Example/sandbox
Senin, 2025-02-24 12:31:25use of both unnamed and named parameters from the -- frame object. It accesses parameters from the current frame as well as -- ...
Click to read more »Module:Sandbox/Was a bee/tree
Selasa, 2017-10-24 02:36:41logObject(datas) mw.log('<br/>') mw.log('<br/>') mw.log('item is: ') mw.logObject(item) mw.log('datas[item] is: ') mw.logObject(datas[item])...
Click to read more »Module:WikidataIB
Sabtu, 2025-12-27 18:46:46failing that it uses the wiki's content language. -- It returns a language object -------------------------------------------------------------------------------...
Click to read more »Module:Sensitive IP addresses/list/validate
Kamis, 2016-09-22 16:50:05addresses/list' local p = {} local function makeErrorLogger() -- Return an object for formatting errors. return { errors = {}, addError = function (self...
Click to read more »Module:Class/sandbox
Senin, 2025-06-02 19:32:24canonical class code for a given code. --Returns two values: the definition object and the canonical class code --string. local canonicalCode = normalizeValue(code)...
Click to read more »Module:Sandbox/AlphaZeta/test3
Senin, 2013-12-30 08:44:20date object -- input:year="1999", month="12", day="31" -- output: {year=1999,month=12,day=31} or nil if date not valid local function createDateObject(year...
Click to read more »Module:Format TemplateData/doc
Rabu, 2026-01-28 01:11:36optional): 1 JSON string or <templatedata> object JSON JSON string (precedes 1) Transition from <templatedata> objects with pipe symbols needs special attention:...
Click to read more »Module:Sandbox/iantresman/sandbox/titlesubscripts
Jumat, 2013-12-13 08:08:05syntax. This syntax is often -- used in implementing Lua's version of object-oriented programming. Take a look at -- http://www.lua.org/pil/16.html...
Click to read more »Module:Sandbox/Aidan9382/Benchmarker
Sabtu, 2025-10-18 00:36:36= StackObject local s = os.clock() local response, length = GetVarargInfo(f(...)) local timetaken = os.clock() - s StackObject.TimeTaken...
Click to read more »Module:Table row counter/sandbox
Jumat, 2025-08-29 01:46:51'Template:Table row counter'})) end function p._main(args) -- Get the title object. local titleObj do local success success, titleObj = pcall(mw.title...
Click to read more »Module:Sandbox/Synpath/styles.css
Senin, 2025-02-10 08:16:31mod-gallery-flexbox-default > .mod-gallery-flex-item > .mod-gallery-flexbox-image img { object-fit: scale-down; width:100%; height:100%; } .mod-gallery-flexbox-default...
Click to read more »Module:Sandbox/Johnuniq/temp
Kamis, 2026-03-05 13:46:59frame_args = parms(frame.args), parent_args = parms(frame:getParent().args), }, 'frame') mw.logObject(result) return result end return { main = main }...
Click to read more »Module:Category handler
Rabu, 2020-04-01 13:12:40setmetatable({ _data = data, _args = args }, CategoryHandler) -- Set the title object do local pagename = obj:parameter('demopage') local success, titleObj...
Click to read more »Module:JSON arguments
Minggu, 2021-10-24 05:09:48-- Returns the frame's passed arguments as a JSON object, used for reusing -- data between a parent and child template. -- You are meant to invoke this...
Click to read more »Module:Citation/CS1/Identifiers
Senin, 2026-01-19 22:36:14representing the dates local lang_object = mw.getContentLanguage(); good1, rxiv_ts = pcall (lang_object.formatDate, lang_object, 'U', rxiv_date); -- convert...
Click to read more »Module:Sandbox/Trappist the monk/Emoji data make
Senin, 2024-03-11 06:37:27title_object_t = mw.title.new (page_title); -- get the title object for the doc page invoking this module local content = title_object_t:getContent();...
Click to read more »Module:ISO 639 name/ISO 639-3 (dep)/make
Kamis, 2025-11-27 02:53:08(frame) local page = mw.title.getCurrentTitle(); -- get a page object for this page local content = page:getContent(); -- get unparsed...
Click to read more »Module:Current RfX
Senin, 2024-11-18 07:16:30are currently open. It can return a list of page names or a list of rfx objects found using -- [[Module:Rfx]]. local rfx = require('Module:Rfx') local...
Click to read more »Module:Month translator/data
Sabtu, 2023-12-09 02:56:00lang_obj:formatDate() will return the 'next' month. To dump this table: =mw.dumpObject (p.month_names_t) ]] local function month_names_get () local month_names_t...
Click to read more »Module:Sandbox/Paweł Ziemian/test
Selasa, 2016-04-12 00:47:42local m = {} function m.D1(frame) mw.logObject(frame.args[1], "frame.args[1]") return frame.args[1] end m.NumberOfArticlesBetween = function(frame)...
Click to read more »Module:Progress box/sandbox
Kamis, 2023-04-13 08:21:23args[1] self._frame = mw.getCurrentFrame() -- Make the base category object if not args[1] then error('no base category specified', 3) end self...
Click to read more »Module:Archive list
Selasa, 2026-02-17 22:19:42exist. return false else if titleObject then return titleObject.exists else return false -- Return...
Click to read more »Module:Protection banner
Rabu, 2026-02-18 15:46:08local yesno = require('Module:Yesno') -- Lazily initialise modules and objects we don't always need. local getArgs, makeMessageBox, lang -- Set constants...
Click to read more »Module:OSM/sandbox
Selasa, 2023-04-11 16:20:58target) local textToDisplay, leftLink, rightLink, runQueryRightAway, itemObject, itemID, query, coord, bbox, remark, overpassUrl, primitives, timeout, style...
Click to read more »Module:Citation/CS1/Identifiers/sandbox
Kamis, 2026-06-04 20:26:17representing the dates local lang_object = mw.getContentLanguage(); good1, rxiv_ts = pcall (lang_object.formatDate, lang_object, 'U', rxiv_date); -- convert...
Click to read more »Module:Wikidata/sandbox2
Jumat, 2022-10-21 17:02:01is no local Wikipedia article output the label or link to the Wikidata object to let the user input a proper label if linkName then return linkName...
Click to read more »Module:Lang/data/make is latn data
Kamis, 2025-01-16 21:01:40('strict'); local title_object = mw.title.getCurrentTitle (); -- get this module's title object if not title_object.fullText:find ('/doc$') then...
Click to read more »Module:Redirect hatnote/sandbox
Selasa, 2022-09-06 01:20:21function getTitle(...) --Calls mw.title.new and returns either a title object, or nil on error local success, titleObj = pcall(mw.title.new, ...) return...
Click to read more »Module:Sandbox/Erutuon/Unicode
Kamis, 2019-02-28 08:35:22success, title_object = pcall(mw.title.new, page_name) if not (success and title_object) then mw.logf("Could not make title object for '%s'.", page_name)...
Click to read more »Module:Jctint
Kamis, 2024-09-19 07:57:41avoid expensive table lookups. local insert = table.insert -- mw.html object for the generated row local row -- Default row span for all columns (`jspan`...
Click to read more »Module:ISO 639 name/ISO 639-2/make
Kamis, 2024-07-11 14:22:13(frame) local page = mw.title.getCurrentTitle(); -- get a page object for this page local content = page:getContent(); -- get unparsed...
Click to read more »Module:Demo
Rabu, 2024-08-14 09:31:11local p = {} --creates a frame object that cannot access any of the parent's args --unless a table containing a list keys of not to inherit is provided...
Click to read more »Module:Object weight/sandbox
Jumat, 2025-10-03 16:35:03-- This module is based off of [[Module:Person weight]] local p = {} local tracking_category = ' ' if mw.title.getCurrentTitle():inNamespaces(0, 828...
Click to read more »Module:Sandbox/Hike395/Graphical timeline
Minggu, 2021-05-02 00:19:23args.margin = uniform margin around timeline -- Returns; -- html div object that is root of DOM for graphical timeline -- -- CSS taken from previous...
Click to read more »Module:ISO 639 name/ISO 639-3/make
Kamis, 2024-07-11 20:50:52(frame) local page = mw.title.getCurrentTitle(); -- get a page object for this page local content = page:getContent(); -- get unparsed...
Click to read more »Module:Sandbox/isaacl/NHL standings
Senin, 2014-08-11 07:08:45teamInfo end, -- function readTeamInfo.default() } -- readTeamInfo object local function initTableHeaderText(frame) config.tableHeaderText =...
Click to read more »Module:Template test case
Kamis, 2025-08-07 00:01:43Template.memoizedMethods = { -- Names of methods to be memoized in each object. This table should only -- hold methods with no parameters. getFullPage...
Click to read more »Module:Sandbox/Ketil3/Famt
Minggu, 2015-09-06 19:06:25function p.main( frame ) --return mw.dumpObject ( frame.args ) --return frame.args["f"] return mw.dumpObject ( mw.text.split ( frame.args["f"] , '\n')...
Click to read more »Module:Page assessment raw
Jumat, 2025-07-18 00:04:56local subjectPage = mw.title.new(namePage) -- create new object for given page title for _, entry in ipairs(subjectPage.pageAssessments)...
Click to read more »Module:ISO 639 name/ISO 639-5/make
Kamis, 2024-07-11 21:05:35(frame) local page = mw.title.getCurrentTitle(); -- get a page object for this page local content = page:getContent(); -- get unparsed...
Click to read more »Module:Infobox road/map
Jumat, 2025-10-03 03:59:07(#qid == 0) then qid = nil end local entity = mw.wikibase.getEntityObject(qid) or {} local claims = entity.claims or {} local mapProp = claims...
Click to read more »Module:Citation/CS1/Configuration
Sabtu, 2026-02-28 22:14:44lang_obj = mw.language.getContentLanguage(); -- make a language object for the local language; used here for languages and dates ...
Click to read more »Module:RexxS
Kamis, 2022-11-03 00:49:08--debug end end return "no claims" end -- checkPage creates a "title object" for the given title and namespace -- named parameters: -- art = title of...
Click to read more »Module:Fiction redirect category handler/Franchise/sandbox
Senin, 2024-05-06 13:52:51Public function which handles the main operation. --]] function p.main(args, objectType, franchise, tvSeriesNameList) local validArgs = {"correct_disambiguation"...
Click to read more »Module:Infobox road/map/sandbox
Jumat, 2025-10-03 04:00:14(#qid == 0) then qid = nil end local entity = mw.wikibase.getEntityObject(qid) or {} local claims = entity.claims or {} local mapProp = claims...
Click to read more »Module:Shindo/data
Selasa, 2025-04-01 23:25:24{table} objectToWriteTo write to object -- @param {table} id_prefix name of id prefix function addField(nameOfField, objectToWriteTo, objectToReadFrom)...
Click to read more »Module:Article history/Category
Kamis, 2015-02-12 12:38:12creation of category links. With -- this class, categories can passed between objects without concerns about -- interoperability and still have their values...
Click to read more »Module:Track listing
Senin, 2025-05-12 11:35:39showCategories = yesno(self.category) ~= false self.category = nil -- Make track objects self.tracks = {} for i, trackData in ipairs(data.tracks or {}) do table...
Click to read more »Module:WikidataIB/sandbox
Senin, 2025-12-22 06:49:07failing that it uses the wiki's content language. -- It returns a language object -------------------------------------------------------------------------------...
Click to read more »Module:CineMol/api/testcases
Kamis, 2025-10-30 06:22:40Look.CARTOON, 50 ) self:equals("objects", #svg.objects, 4) self:equals("fills", #svg.fills, 4) end function...
Click to read more »Module:Sandbox/Revent
Rabu, 2014-07-16 12:56:34return "" end entity = mw.wikibase.getEntityObject() if entity == nil then return "" end ...
Click to read more »Module:Article history/config/doc
Jumat, 2024-08-30 03:17:39instructions on how to edit it, see the comments in the code, and see Module:Article history#Class documentation for how to use the different objects....
Click to read more »Module:Sandbox/Liinisx
Jumat, 2023-01-13 22:32:10with value objects local valuesArray -- array with value objects local sep = nil -- value object local out = {} -- array with value objects local...
Click to read more »Module:Sandbox/Nyoron/anyToString/doc
Selasa, 2016-05-17 21:06:36mw.dumpObject is better....
Click to read more »Module:Sandbox/trappist the monk/ac code
Senin, 2022-10-24 04:00:06(frame) local page = mw.title.getCurrentTitle(); -- get a page object for this page local content = page:getContent(); -- get unparsed...
Click to read more »Module:User:Anomie/Sandbox
Kamis, 2025-11-20 07:05:15) return '<pre>\n' .. mw.dumpObject( mw.getCurrentFrame() ) .. '\n</pre>\n' .. '<pre>\n' .. mw.dumpObject( cf ) .. '\n</pre>\n'; end function...
Click to read more »Module:Get short description/sandbox
Jumat, 2024-08-16 05:34:18local success, titleObj = pcall(mw.title.new, title) -- get a title object for title if not success then return nil end -- return nil if...
Click to read more »Module:Random slideshow/sandbox
Minggu, 2024-08-18 18:07:29namespaceNumber = function(pagetitle) local titleObject = mw.title.new(pagetitle) return titleObject and titleObject.namespace end local lines = {} local...
Click to read more »Module:Sandbox/Jts1882/Test
Selasa, 2023-03-28 22:44:59"Template", page) end if not title then return p.errormsg("Title object not created") end if not title.exists then return "Invalid...
Click to read more »Module:Sandbox/Izno/citationTests
Sabtu, 2021-02-20 14:27:59t3[k] = v end return t3 end -- takes an object and template args -- the object should have a base_args object, the frame, the template name, -- and the...
Click to read more »Module:Wikidata/sandbox3
Jumat, 2022-10-21 17:01:14is no local Wikipedia article output the label or link to the Wikidata object to let the user input a proper label if linkName then return linkName...
Click to read more »Module:Sandbox/Johnuniq/debug
Senin, 2019-04-22 10:44:38effect. f = mw.getCurrentFrame() f.args[1] = 'Ignored' f.args[2] = 42 =mw.logObject(f, 'f') =p.main(f) -- Can create a child frame with specified args. f2...
Click to read more »Module:TableTools
Minggu, 2024-08-18 11:19:07mw.loadData. For -- other tables, use #. -- Note: #frame.args in frame object always be set to 0, regardless of the number -- of unnamed template parameters...
Click to read more »Module:NRHP row counter/sandbox
Kamis, 2023-06-29 07:46:45'Template:NRHP row counter'})) end function p._main(args) -- Get the title object. local titleObj do local success success, titleObj = pcall(mw.title...
Click to read more »Module:Scripts
Senin, 2023-11-20 10:47:19Script:getSystems() if not self._systemObjects then local m_systems = require("Module:writing systems") self._systemObjects = {} for _, ws in...
Click to read more »Module:Taxonbar/sandbox
Rabu, 2025-12-17 19:42:44then local entityObject = mw.wikibase.getEntity('P'..property) local dataType if entityObject then dataType = entityObject.datatype else...
Click to read more »Module:Infobox mapframe
Senin, 2025-11-24 11:39:55"nil") .. " and item " .. (maskItem or "nil")) end --A list of types for objects that are too small to allow Kartographer to take over zoom local tinyType...
Click to read more »Module:Road data/locations/testcases
Sabtu, 2024-08-24 04:49:05out = out .. frame:preprocess('<syntaxhighlight lang="lua">' .. mw.dumpObject(arg) .. '</syntaxhighlight>') end return out end local function addTest(frame...
Click to read more »Module:Fiction redirect category handler/Franchise/doc
Jumat, 2024-08-30 04:19:47require('Module:Fiction redirect category handler/Franchise') return franchiseHandlerModule.main(objectType, frame, args, franchiseName, tvSeriesNameList)...
Click to read more »Module:NRHP row counter
Kamis, 2023-06-29 21:14:06'Template:NRHP row counter'})) end function p._main(args) -- Get the title object. local titleObj do local success success, titleObj = pcall(mw.title...
Click to read more »Module:Professional wrestling profiles/sandbox
Selasa, 2020-10-06 00:43:30local p = {} local categories = {} local entity = mw.wikibase.getEntityObject() local yesno = require('Module:Yesno') local getArgs = require('Module:Arguments')...
Click to read more »Module:Year in various calendars
Minggu, 2026-03-22 13:44:13'table' and type( obj.new ) ~= 'function' then return end -- Exit if the object is invalid. self.calendars = self.calendars or {} table.insert( self.calendars...
Click to read more »Module:Infobox/dates/sandbox
Selasa, 2025-04-08 21:45:18--- Validates date formats in infobox templates. -- @param frame Frame object from Wikipedia -- @return Error category string if validation fails, nil...
Click to read more »Module:Sandbox/Kotz/G
Jumat, 2018-06-22 03:03:26if (entityName) then entity=mw.wikibase.getEntityObject(); else entity=mw.wikibase.getEntityObject(entityName) end if (entity) then mw.log(entity)...
Click to read more »Module:Infobox dim
Minggu, 2025-11-16 01:59:08then dim = 5 end end return dim end -- Convert from dimension of object to Geohack dim local function computeDim(length,width,area) if length and...
Click to read more »Module:Infobox dim/sandbox
Minggu, 2025-11-16 01:56:27then dim = 5 end end return dim end -- Convert from dimension of object to Geohack dim local function computeDim(length,width,area) if length and...
Click to read more »Module:Protected edit request/sandbox
Selasa, 2025-12-09 15:10:28---------------------------------- -- Process arguments and initialise objects ----------------------------------------------------------------------...
Click to read more »Module:Sandbox/Was a bee/wd20170930
Sabtu, 2017-10-07 16:37:56with value objects local valuesArray -- array with value objects local sep = nil -- value object local out = {} -- array with value objects local...
Click to read more »Module:MLB standings/sandbox
Sabtu, 2024-09-07 07:25:40teamInfo end, -- function readTeamInfo.default() } -- readTeamInfo object -- -- generateTableHeader: table of functions that generate table header...
Click to read more »Module:Sandbox/Trappist the monk/deprecated sources
Kamis, 2024-01-04 06:36:09rendered by mw.dumpObject() {{#invoke:Sandbox/Trappist the monk/deprecated sources|main}} ]] local function main () return mw.dumpObject (out_t) end ...
Click to read more »Module:Taxonbar/sandbox2
Jumat, 2022-10-21 17:01:26type(property) == 'number' then local entityObject = mw.wikibase.getEntity('P'..property) local dataType = entityObject.datatype if dataType == "external-id"...
Click to read more »Module:Lang
Rabu, 2026-05-13 06:20:12{cfg.lang_xx_t.romanization, translit_script_name})); -- make a title object; no engvar, article titles use US spelling if translit_title_obj.exists...
Click to read more »Module:Lua-mock/doc
Senin, 2019-10-14 08:28:06This is the lua-mock library, used to create mock objects for use in unit testing. URL: https://henry4k.github.io/lua-mock/ Author: Henry Kielmann Licence:...
Click to read more »Module:Lang/documentor tool
Senin, 2025-05-12 23:10:52'<pre>' .. table.concat (private_t) .. '\n|}' .. '</pre>' --error (mw.dumpObject (private_t)) end --[[ -------------------------< L A N G - X X _ S E T...
Click to read more »Module:Sandbox/Carn/TextSnippets
Senin, 2021-06-21 14:08:45text only at the end of operations (string creation isn't cheap for lua) object types, conditions and order pattern string formatting (easier for users)...
Click to read more »Module:Sandbox/Ahecht
Kamis, 2026-04-23 22:36:51.. type(frame) .. ' ') if type(frame) == 'table' then output(mw.dumpObject(frame)) end output('<br />frame:getParent() ' .. type(frame:getParent())...
Click to read more »Module:WPSHIPS utilities
Selasa, 2026-04-07 00:38:23local target_object = mw.title.new (link).redirectTarget; -- if <link> points to a redirect if target_object then link = target_object.fullText; ...
Click to read more »Module:Archive list/sandbox
Rabu, 2024-08-14 06:03:40exist. return false else if titleObject then return titleObject.exists else return false -- Return...
Click to read more »Module:Jctint/sandbox
Minggu, 2025-12-14 20:28:01avoid expensive table lookups. local insert = table.insert -- mw.html object for the generated row local row -- Default row span for all columns (`jspan`...
Click to read more »Module:Coordinates
Senin, 2026-01-26 03:35:45args[3] = args[1]; args[1] = nil local entity = mw.wikibase.getEntityObject(args.qid) if entity and entity.claims and entity.claims.P625 ...
Click to read more »Module:Lang/sandbox
Rabu, 2026-05-13 06:17:18{cfg.lang_xx_t.romanization, translit_script_name})); -- make a title object; no engvar, article titles use US spelling if translit_title_obj.exists...
Click to read more »Module:European and national party data/Wd
Senin, 2025-06-09 18:51:16with value objects local valuesArray -- array with value objects local sep = nil -- value object local out = {} -- array with value objects local...
Click to read more »Module:Sandbox/maslen/Next Hebrew Date
Kamis, 2015-01-22 10:07:45-- our new object setmetatable(gregoriandate,GregorianDate) -- make GregorianDate handle lookup -- initialize our object gregoriandate...
Click to read more »Module:Graph
Sabtu, 2025-07-12 23:57:01traceback() .. "result type: ".. type(result) .. " result: \n\n" .. mw.dumpObject(result) --invoke chartDebuger() to get graph JSON and this string debuglog...
Click to read more »Module:Sandbox/PeaceDeadC/Wd
Jumat, 2022-04-01 19:27:32with value objects local valuesArray -- array with value objects local sep = nil -- value object local out = {} -- array with value objects local...
Click to read more »Module:Location map/multi
Selasa, 2024-04-30 08:22:33parent then mw.log('Parent is ' .. parent:getTitle()) end mw.logObject(args, 'args') markhigh = true end for k, v in pairs(args) do -- @todo...
Click to read more »Module:Protection banner/sandbox
Kamis, 2026-04-16 03:24:56local yesno = require('Module:Yesno') -- Lazily initialise modules and objects we don't always need. local getArgs, makeMessageBox, lang -- Set constants...
Click to read more »Module:Sandbox/Qwerfjkl
Minggu, 2022-06-26 21:25:07title passed to checkArchiveExists', 2) end local noError, titleObject = pcall(mw.title.new, title) if not noError then -- If we are...
Click to read more »Module:Convert/documentation/conversion data
Senin, 2026-03-02 10:32:53assumption that the mass refers to the force due to the "weight" of an object. The following tables define "override" unit codes which conflict with another...
Click to read more »Module:Message box/sandbox/2
Jumat, 2022-10-21 17:01:02local getArgs local yesno = require('Module:Yesno') -- Get a language object for formatDate and ucfirst. local lang = mw.language.getContentLanguage()...
Click to read more »Module:Wd/sandbox/testcases/common
Sabtu, 2024-06-08 18:15:48contains functions used in testcases. local p = {} -- generates unit test object to be returned by a specific testcase module -- first argument: name of...
Click to read more »Module:Commons link
Kamis, 2024-10-24 17:43:16local titleObject = mw.title.getCurrentTitle() -- look up qid for current page (if not testing) local nsText = string.gsub(titleObject.nsText,"_","...
Click to read more »Module:Lua call
Rabu, 2025-07-30 11:17:192, 3) -- {{#invoke:Lua call|call|mw.logObject|\a|321|\321| \321 }} will return results of mw.logObject('a', 321, '321', ' \\321 ') -- -- This example...
Click to read more »Module:UnitPlural
Kamis, 2023-02-16 11:20:27Failing that, it uses the wiki's content language. It returns a language object. --]] local function findLang(langcode) local langobj langcode = mw.text...
Click to read more »Module:Sandbox/KiharaSofia/zl-conjugation
Minggu, 2026-02-22 08:20:08return tokens, 'unknown' end -- Parse affix string into affix object local function affix(str, color) local infixContent, infixSyl, infixSlot...
Click to read more »Module:External links
Selasa, 2024-05-28 13:09:32production, use the console local function dump(obj) return "<pre>" .. mw.dumpObject(obj) .. "</pre>" end local function stringFormatter( datavalue ) if datavalue...
Click to read more »Module:Sandbox/TiiJ7/StringBuilder
Rabu, 2013-09-11 20:06:31elseif m == 'error' then error( 'ERROR: Trying to append object of type "' .. type(str) .. '"' ) else return ...
Click to read more »Module:Sandbox/Jeblad/NLG/layout
Minggu, 2019-11-17 11:05:26min = v:position() end end mw.logObject(min) mw.logObject(max) local scale = 100/(max-min) mw.logObject(scale) for _,v in pairs(registry) do...
Click to read more »Module:P703
Selasa, 2026-01-20 01:59:19value from a Wikidata entity -- @param entity table The Wikidata entity object -- @param prop string The property ID (e.g., "P1476") -- @return string|nil...
Click to read more »Module:Sandbox/Nihiltres/Category manager
Rabu, 2020-01-08 15:19:19string.format( defaults.badCatListFormat, mw.dumpObject(k), mw.dumpObject(v) ), 2 ) end table.insert( constructedList...
Click to read more »Module:Coordinates/sandbox
Senin, 2026-01-12 03:40:02args[3] = args[1]; args[1] = nil local entity = mw.wikibase.getEntityObject(args.qid) if entity and entity.claims and entity.claims.P625 ...
Click to read more »Module:TableTools/sandbox
Kamis, 2024-08-15 03:03:06mw.loadData. For -- other tables, use #. -- Note: #frame.args in frame object always be set to 0, regardless of the number -- of unnamed template parameters...
Click to read more »Module:Citation/CS1/COinS
Sabtu, 2025-04-12 20:48:47private data) -- ctx_id=<data.RawPage>#<ref> (identifier for the context object) -- ctx_tim=<ts> (timestamp in format yyyy-mm-ddThh:mm:ssTZD or yyyy-mm-dd)...
Click to read more »Module:Lua class
Senin, 2025-08-11 23:03:29= cls.__call mt.__metatable = "unauthorized access attempt of wrapper object metatable" inst_private_mts[cls] = mt end setmetatable(self_private...
Click to read more »Module:Fiction-based redirects to list entries category handler/RedirectType/sandbox
Senin, 2024-05-06 13:54:11RedirectType, "Fiction-based redirects to list entries category handler object") --[[ Public function which is used to retrieve the main category for...
Click to read more »Module:Mainspace editnotice/sandbox
Selasa, 2025-02-04 15:48:22"Refideas editnotice" end end, } p.core = function(page, frame) -- Context object to store values that are expensive to compute and required -- in multiple...
Click to read more »Module:Sandbox/Jackmcbarn/2
Jumat, 2015-12-04 10:35:35local p = {} function p.main(frame) return mw.dumpObject(package.loaders[2]('Module:Sandbox/Jackmcbarn/doesntexist')) .. ': function if it exists, nil...
Click to read more »Module:Episode list
Sabtu, 2025-10-11 08:47:09require('Module:Table empty cell') local yesNoModule = require('Module:Yesno') -- mw.html object for the generated row. local row -- Variable that will decide the colspan=...
Click to read more »Module:Sandbox/Erutuon
Senin, 2019-09-16 16:39:40success, title_object = pcall(mw.title.new, page_name) if not (success and title_object) then mw.logf("Could not make title object for '%s'.", page_name)...
Click to read more »Module:NewDYKnomination/sandbox
Minggu, 2025-11-09 04:51:52characters', page, pageType ) return formatError(msg) end -- Make a title object from the given page name. Return nil if the title is -- invalid. local function...
Click to read more »Module:Demo/sandbox
Selasa, 2026-03-17 02:19:50local p = {} --creates a frame object that cannot access any of the parent's args --unless a table containing a list keys of not to inherit is provided...
Click to read more »Module:Category handler/sandbox
Minggu, 2020-05-17 21:35:33setmetatable({ _data = data, _args = args }, CategoryHandler) -- Set the title object do local pagename = obj:parameter('demopage') local success, titleObj...
Click to read more »Module:Citation/CS1/Configuration/sandbox
Rabu, 2026-06-03 02:12:03local lang_obj = mw.getContentLanguage(); -- make a language object for the local language; used here for languages and dates ...
Click to read more »Module:Sandbox/Erutuon/Climate
Rabu, 2024-04-17 18:48:21errorf("Low #%d is missing", i) elseif highs[i] <= lows[i] then mw.logObject({ highs = highs, lows = lows }) errorf("High #%d (%d) is not greater...
Click to read more »Module:In lang/sandbox
Sabtu, 2023-07-22 13:11:35v; -- not a valid tag so presume it is a name end mw.logObject (lang_name, 'lang_name') lc_lang_name = table.concat ({ -- build...
Click to read more »Module:Commons link/sandbox
Kamis, 2024-10-24 17:40:20local titleObject = mw.title.getCurrentTitle() -- look up qid for current page (if not testing) local nsText = string.gsub(titleObject.nsText,"_","...
Click to read more »Module:Sandbox/Trappist the monk/Emoji short name data make
Rabu, 2024-03-13 23:01:24title_object_t = mw.title.new (page_title); -- get the title object for the doc page invoking this module local content = title_object_t:getContent();...
Click to read more »Module:Sandbox/Sunpriat/Test
Sabtu, 2021-02-27 04:46:02"revisions":[{"timestamp":"2021-02-25T16:10:57Z"}]}]}}' ) return mw.dumpObject() end function p.test3(frame) return frame.args[1] end return p...
Click to read more »Module:Next Occurrence of Hebrew Date
Jumat, 2015-01-23 20:34:57-- our new object setmetatable(gregoriandate,GregorianDate) -- make GregorianDate handle lookup -- initialize our object gregoriandate...
Click to read more »Module:Drvlinks
Kamis, 2023-06-22 04:07:37makeExternalLink(url, display) -- The URL can be a URL string or a mw.uri object. url = tostring(url) return string.format('[%s %s]', url, display) end...
Click to read more »Module:Editnotice load/doc
Sabtu, 2025-06-28 00:38:13(function) Gets the editnotice type of any editnotice Parameter: title a title object for the editnotice (table) Returns: the editnotice type (string) getEditnoticeMainPage(...
Click to read more »Module:Template link general
Kamis, 2026-02-12 18:19:37if _ne(args.debug) then ret = ret .. '\n<pre>' .. mw.text.encode(mw.dumpObject(args)) .. '</pre>' end if show_result then if _ne(args.nocat) then...
Click to read more »Module:Lang/documentor tool/sandbox
Jumat, 2025-04-11 14:14:34'<pre>' .. table.concat (private_t) .. '\n|}' .. '</pre>' --error (mw.dumpObject (private_t)) end --[[ -------------------------< L A N G - X X _ S E T...
Click to read more »Module:Sandbox/trappist the monk/wiktlang compare
Sabtu, 2024-12-07 00:24:12names_list_t = mw.dumpObject (names_list_t), -- list of wikt_lang names and selected Lang-data name for <tag> no_names_list_t = mw.dumpObject (no_names_list_t)...
Click to read more »Module:PageLinks
Rabu, 2026-01-21 05:39:06local ToolbarBuilder = require('Module:Toolbar') local p = {} -- Page object local trackingCategories = {} -- Table for storing the tracking categories...
Click to read more »Module:Sandbox/genewiki/geneboxdev
Rabu, 2015-10-21 23:03:40~= "" then entity = mw.wikibase.getEntityObject(itemID) else entity = mw.wikibase.getEntityObject() end if entity.claims[propertyID] ~= nil...
Click to read more »Module:Sandbox/Alexiscoutinho/Lua set
Selasa, 2024-03-26 21:49:52h = h + 1 end elements_obj[h] = elem -- otherwise different objects with the same content would duplicate end end, __pairs = function...
Click to read more »Module:Sandbox/Chlod/sandbox
Sabtu, 2023-05-13 10:29:49require('Module:Arguments').getArgs local p = {} function p.main(frame) mw.logObject(getArgs(frame, { frameOnly = true, trim = true })) end return p...
Click to read more »Module:Sandbox/Ajuanca
Jumat, 2020-01-24 01:12:00titleOfPage = frame.args.titleOfPage local titleObject = mw.title.new(titleOfPage) local output = "" if titleObject == nil then output = "You need to give a...
Click to read more »Module:WP
Sabtu, 2022-10-22 05:02:57title.new (title); -- get title object for <title> if not title_obj then -- title object for non-existent valid <title> will have...
Click to read more »Module:Infobox mapframe/sandbox
Senin, 2026-02-02 23:39:37"nil") .. " and item " .. (maskItem or "nil")) end --A list of types for objects that are too small to allow Kartographer to take over zoom local tinyType...
Click to read more »Module:WPSHIPS utilities/sandbox
Senin, 2025-12-29 14:36:53local target_object = mw.title.new (link).redirectTarget; -- if <link> points to a redirect if target_object then link = target_object.fullText; ...
Click to read more »Module:Sandbox/Element10101/Wikidata
Minggu, 2025-06-08 21:45:29else qid = f.args[1] end -- Create the mw.wikibase.entity object of the QID. -- This starts the real process of generating the infobox...
Click to read more »Module:ScribuntoUnit/doc
Jumat, 2026-01-30 21:43:03After you have done this you can add individual test functions to the suite object. Any function that begins with test is treated as a test. (Other functions...
Click to read more »Module:Parameter validation
Jumat, 2026-05-15 20:39:27mw.logObject(res) return res end -- wraps report in hidden frame local function wrapReport(report, template_name, options) mw.logObject(report)...
Click to read more »Module:Sandbox/Artoria2e5/Fallback
Jumat, 2020-04-03 00:16:07the old metamethod first. -- Thanks to closures, this whole oldArgsMeta object will stay. if oldArgsMeta.__index ~= nil then local val = oldArgsMeta...
Click to read more »Module:Sandbox/Nihiltres/Testing
Jumat, 2016-12-16 06:34:25string.format( "[[:%s|%s]]", class.category, class.labels.short ) foo:wikitext(img, link) return foo --return mw.dumpObject(foo) end return p...
Click to read more »Module:Sandbox/Awesome Aasim/Boolean
Rabu, 2025-10-22 03:26:33if (tonumber(k) ~= nil) then args2[tonumber(k)] = v end end mw.logObject(args2) return p._not({ p._and({ args2[1], args2[2] }), ['true'] = args['true']...
Click to read more »Module:Template test case/sandbox
Rabu, 2025-08-06 23:54:27Template.memoizedMethods = { -- Names of methods to be memoized in each object. This table should only -- hold methods with no parameters. getFullPage...
Click to read more »Module:Wikitext Parsing/doc
Senin, 2025-10-13 17:48:09and should be used carefully. The function returns a list of template objects in order of appearance, which have the following properties: Args: A key-value...
Click to read more »Module:Track gauge
Minggu, 2024-01-14 16:27:34-------------------- function p.main(frame) -- In general: the tgEntry object (from TG/data) is passed to the functions, while arguments are processed...
Click to read more »Module:Sandbox/ProcrastinatingReader/Dbm
Sabtu, 2020-11-07 01:02:07local csdKeys = getTableKeys(csdTable) --if true then return mw.dumpObject(csdTable) end local builtCsdTemplates = {} local summary = "" ...
Click to read more »Module:Sister project links
Kamis, 2026-04-02 20:52:27nav end function p._main(args) local titleObject = mw.title.getCurrentTitle() local ns = titleObject.namespace -- find qid, either supplied with...
Click to read more »Module:Svg/doc
Senin, 2026-05-18 08:46:04General syntax {{#invoke:svg|function_name}} Brief Create an SVG object Syntax {{#invoke:svg|create|content=...|...<nowiki>}} This function shows SVG images...
Click to read more »Module:Sandbox/RexxS/Images
Kamis, 2014-09-04 01:15:38none exists p.getImage = function(frame) local ent = mw.wikibase.getEntityObject() local props = ent:formatPropertyValues('P18') local out = {} for k...
Click to read more »Module:Signpost/sandbox
Sabtu, 2022-11-12 11:53:58rowseparator end self.noarticles = args.noarticles -- Get article objects, filtered by page, date and tag, and sort them. if args.page then self...
Click to read more »Module:Track listing/sandbox
Minggu, 2025-05-11 20:50:26showCategories = yesno(self.category) ~= false self.category = nil -- Make track objects self.tracks = {} for i, trackData in ipairs(data.tracks or {}) do table...
Click to read more »Module:UnitTests/testcases/frame
Rabu, 2017-10-11 19:56:23"\n" .. "# " .. frame0_getTitle .. "\n" .. "# " .. getCurrentFrame_getTitle .. "\n" .. "# " .. mw.dumpObject(arg) .. "\n" .. "" end return p...
Click to read more »Module:Sandbox/RexxS/GetDateValue
Senin, 2022-10-24 04:15:14is no local Wikipedia article output the label or link to the Wikidata object to let the user input a proper label if linkName then return linkName...
Click to read more »Module:Sandbox/Evad37/X1
Jumat, 2026-02-06 21:41:48mw.ustring.match(geo, "<span class=\"geo%-dec\".->(.-)</span>") mw.logObject({ geo = geo, coord = coord }) if coord then local coord = mw...
Click to read more »Module:Template link general/sandbox
Sabtu, 2026-02-07 00:02:18if _ne(args.debug) then ret = ret .. '\n<pre>' .. mw.text.encode(mw.dumpObject(args)) .. '</pre>' end if show_result then local result = mw...
Click to read more »Module:High-use
Kamis, 2025-10-09 03:24:46local lang_obj = mw.getContentLanguage() -- this here because the language object is used multiple places in the module local large_count_cutoff = 100000...
Click to read more »Module:Sandbox/ProcrastinatingReader/PageUtil
Senin, 2022-10-24 03:58:27page) local matches = mw.ustring.match(title:getContent(), "{{[Uu]se (%w+) [Ee]nglish}}", 0) mw.logObject(matches) return matches[0] end return p...
Click to read more »Module:Excerpt/portals
Rabu, 2026-05-13 00:55:29getTemplateParameters(text) --Search all template parameters for file-like objects local positionalImages = {} local position = 1 for _,key in ipairs(parameterOrder)...
Click to read more »Module:Clade/transclude
Jumat, 2025-07-11 22:40:18content local title = mw.title.new( mw.text.trim(page)) -- , ns) -- creates object if page doesn't exist (and valid page name) ...
Click to read more »Module:Extract short description
Sabtu, 2022-10-22 04:19:43is found in article wiki source requires three arguments: frame: frame object required to preprocess template_name article_title: the name of the article...
Click to read more »Module:Mainspace editnotice
Minggu, 2025-12-14 04:13:47"Refideas editnotice" end end, } p.core = function(page, frame) -- Context object to store values that are expensive to compute and required -- in multiple...
Click to read more »Module:Userbox
Sabtu, 2025-10-04 09:14:54usercategory4 cats[#cats + 1] = args.usercategory5 -- Get the title object local title if page then title = mw.title.new(page) else title =...
Click to read more »Module:Sandbox/RexxS/TA98
Senin, 2014-09-22 06:08:17htm p.getTAValue = function(frame) local ent = mw.wikibase.getEntityObject() local props = ent:formatPropertyValues('P1323') local out = {} local...
Click to read more »Module:Sandbox/SunloungerFrog
Selasa, 2026-01-20 16:27:22end function p.debug() local t = mw.ext.data.get('URAstats_Data.tab') local rows = t.data return mw.dumpObject(rows) end return p...
Click to read more »Module:Country population
Minggu, 2025-06-15 02:39:20local count = 0 local title = mw.title.new( page) -- , ns) -- creates object if page doesn't exist (and valid page name) ...
Click to read more »Module:Gutenberg
Jumat, 2022-04-01 15:43:54bestP1938.mainsnak.datavalue.value local entity = mw.wikibase.getEntityObject() or {} tagline = tagline .. " [[File:OOjs UI icon edit-ltr-progressive...
Click to read more »Module:Dump/doc
Sabtu, 2026-02-07 11:36:35text. That may help develop other modules. An alternative is to use mw.dumpObject() but the result from this module is clearer and is close to valid Lua source...
Click to read more »Module:Sandbox/genewiki/experimental
Jumat, 2015-10-16 07:08:17~= "" then entity = mw.wikibase.getEntityObject(itemID) else entity = mw.wikibase.getEntityObject() end if entity.claims[propertyID] ~= nil...
Click to read more »Module:Spoken Wikipedia
Sabtu, 2025-10-18 07:13:29nocat) end -- TODO: the else branch really wants to be a mw.html <ol> object rather than wikitext -- version of the same, so that we can style the numbers...
Click to read more »Module:Detect singular
Kamis, 2025-10-16 13:01:56-- origArgs.parse_links: if false, treat wikilinks as opaque singular objects (default false) -- origArgs.any_comma: if true, allow any comma to cause...
Click to read more »Module:Sandbox/RexxS/GetImages
Rabu, 2015-09-30 21:00:30input_parm == "FETCH_WIKIDATA" then local entity = mw.wikibase.getEntityObject() local claims if entity and entity.claims then claims = entity.claims[propertyID]...
Click to read more »Module:Currency
Sabtu, 2026-04-18 11:04:04= {} local lang = mw.language.getContentLanguage(); -- language object for this wiki local presentation ={}; -- table of tables that...
Click to read more »Module:WikidataIdentifiers
Selasa, 2022-07-05 00:59:54and (#qid == 0) then qid = nil end local entity = mw.wikibase.getEntityObject(qid) local props if entity and entity.claims then props = entity.claims[propertyID]...
Click to read more »Module:Make emoji zwj table
Jumat, 2025-08-29 05:08:11if title_obj.prefixedText:match ('/doc$') then -- if this title object is the ~/doc page (viewing the ~/doc page standalone) content = title_obj:getContent();...
Click to read more »Module:Sandbox/RexxS/PipedCoords
Kamis, 2015-04-09 06:25:56mw.text.trim(frame.args[2] or "") local entity = mw.wikibase.getEntityObject() if entity then claims = entity.claims['P625'] if claims then local...
Click to read more »Module:Sandbox/Galobtter/Related changes
Rabu, 2023-04-26 14:49:46current page (inadvisable...) or a specified page -- returns either a title object or an error string, and a boolean true for successful completion local...
Click to read more »Module:Remsense/Unicode chart
Jumat, 2024-09-20 07:27:17= getArgs(frame) return p._uChart(args) end function p.uChart(args) end -- mw.logObject(p.uData.get_block_info("CJK Radicals Supplement")) return p...
Click to read more »Module:Sports reference
Kamis, 2023-03-23 04:17:39return link and tracking category local entity = mw.wikibase.getEntityObject() or {} local claims = entity.claims or {} local hasProp = claims["P1447"]...
Click to read more »Module:Sandbox/BartVaes/Bananas
Senin, 2022-10-24 20:31:21ref=Args["ref"..index], link=Args["link"..index] } end mw.logObject(entries_list) --Only 1 header local header = p.get_header(frame, Args)...
Click to read more »Module:Lua call/sandbox
Rabu, 2025-07-30 08:59:452, 3) -- {{#invoke:Lua call|call|mw.logObject|\a|321|\321| \321 }} will return results of mw.logObject('a', 321, '321', ' \\321 ') -- -- This example...
Click to read more »Module:Insurgency in Mozambique detailed map/doc
Jumat, 2024-08-30 04:57:04easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Sandbox/Bawolff/canvas
Rabu, 2025-01-22 23:08:02type( pathDesc._path ) == 'string' then -- Constructor can take a Path2D object. path._path = pathDesc._path end return path end -- Technically this...
Click to read more »Module:OSM/doc
Kamis, 2022-12-22 11:05:30notices it's missing and recreates it fresh. So pointing directly to the OSM objects themselves doesn't work all that well. Let's say it's not future proof...
Click to read more »Module:CS1 translator
Jumat, 2026-03-06 13:45:32+)'); -- split parameter string if nil == param then error (mw.dumpObject (cite_args_t)) end out_t[param] = val; -- and put the results...
Click to read more »Module:Sandbox/Relentlessly/Cycling race/teamroster
Rabu, 2016-03-23 19:29:46or 2 --defaults to two columns local squadSeason = mw.wikibase.getEntityObject( frame.args[1] ) local flags = {} local riderIds = {} local riderNames...
Click to read more »Module:Page assessment
Kamis, 2025-06-05 05:15:27local subjectPage = mw.title.new(pageName) -- create new object for given page title local subjectAssessment = subjectPage.pageAssessments[1]...
Click to read more »Module:Buffer
Kamis, 2025-12-18 20:25:54setmetatable(BHi, g) end for k in next, nonSelf do--any HTML objects returned by these funcs will be granted Module:Buffer enhancements ...
Click to read more »Module:Sandbox/Greenbreen/Toy
Rabu, 2026-03-04 01:31:27dump if args.debug == "dump" then return "<pre>" .. mw.dumpObject(args) .. "</pre>" end -- argument checking if not args.x then...
Click to read more »Module:Protection banner/doc
Kamis, 2026-02-05 22:33:38instead of Module:Protection banner/config, and titleObj specifies a mw.title object to use instead of the current title. args, cfg and titleObj are all optional...
Click to read more »Module:Sandbox/zache
Minggu, 2020-10-04 01:42:20args[1] or frame.args.item or ""; local entity = mw.wikibase.getEntityObject(item); local targetproperties={"P2002", "P2037", "P2397"} local out={}...
Click to read more »Module:Format TemplateData
Minggu, 2026-02-08 09:48:03class="mw-templatedata-doc-wrap"> got = false, -- table, initial templatedata object heirs = false, -- table, params that are inherited jump = false,...
Click to read more »Module:Age
Rabu, 2025-12-10 15:08:14local _Date, _currentDate local function getExports(frame) -- Return objects exported from the date module or its sandbox. if not _Date then local...
Click to read more »Module:Sandbox/trappist the monk/ru test
Kamis, 2023-07-27 07:59:50['refusal'] = refusal, ['admission'] = admission, ['non_admission'] = non_admission}; return mw.dumpObject (table_t) end end return { main = main }...
Click to read more »Module:Sandbox/trappist the monk/template compare
Senin, 2022-10-24 04:04:19-- add parameters used in B that are not used in A return mw.dumpObject (diff); -- for now; prettify later end --[[--------------------------<...
Click to read more »Module:Excerpt slideshow/sandbox
Minggu, 2024-08-18 18:09:47isArticle = function(pagetitle) local titleObject = mw.title.new(pagetitle) return ( titleObject and titleObject.namespace == 0 ) and true or false end ...
Click to read more »Module:Location map/multi/sandbox
Minggu, 2026-03-22 19:11:31parent then mw.log('Parent is ' .. parent:getTitle()) end mw.logObject(args, 'args') markhigh = true end for k, v in pairs(args) do -- @todo...
Click to read more »Module:Sports reference/sandbox
Jumat, 2020-05-22 07:21:55return link and tracking category local entity = mw.wikibase.getEntityObject() or {} local claims = entity.claims or {} local hasProp = claims["P1447"]...
Click to read more »Module:Television infoboxes disambiguation check
Senin, 2025-12-22 19:01:57"DisambiguationPattern", obj, "Television infoboxes disambiguation check object" ) return obj end --------------------------------------------------...
Click to read more »Module:Mali War detailed map/doc
Senin, 2022-02-14 15:37:04easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Sandbox/Rexxs/PropIDs
Jumat, 2016-09-30 00:18:01input_parm == "FETCH_WIKIDATA" then local entity = mw.wikibase.getEntityObject(qid) local propclaims if entity and entity.claims then propclaims...
Click to read more »Module:Citation/CS1/COinS/sandbox
Jumat, 2025-11-21 02:45:55private data) -- ctx_id=<data.RawPage>#<ref> (identifier for the context object) -- ctx_tim=<ts> (timestamp in format yyyy-mm-ddThh:mm:ssTZD or yyyy-mm-dd)...
Click to read more »Module:Message box/div
Jumat, 2025-10-17 08:14:35-------------------------------- local function getTitleObject(...) -- Get the title object, passing the function through pcall -- in case we are over...
Click to read more »Module:Infobox gene
Rabu, 2025-02-05 02:58:46--try to get it from the args local mm_qid = "" --pull all the entity objects that we will need local entity = {} local entity_protein = {} local...
Click to read more »Module:TemplatePar/sandbox
Senin, 2023-04-03 05:36:37options.preview -- options.cat -- options.template -- frame -- object, or false -- Postcondition: -- Return string or false -- Uses: -- ...
Click to read more »Module:JCW
Jumat, 2022-10-21 17:51:19options = options or {} local doiText = options.linkdoi and '[[Digital object identifier#Prefix|doi]]' or 'doi' return setmetatable({doiText = doiText}...
Click to read more »Module:Syrian Civil War detailed map/sandbox/doc
Kamis, 2022-10-20 20:19:31easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Year in various calendars/sandbox
Sabtu, 2026-03-21 01:47:59'table' and type( obj.new ) ~= 'function' then return end -- Exit if the object is invalid. self.calendars = self.calendars or {} table.insert( self.calendars...
Click to read more »Module:Somali Civil War detailed map/doc
Kamis, 2020-12-17 05:15:01easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Sandbox/Hike395/CommonsLink2
Jumat, 2020-02-21 16:09:49getArgs local p = {} local function _getTitleQID(qid) local titleObject = mw.title.getCurrentTitle() qid = (qid or ""):upper() -- look up qid...
Click to read more »Module:Sandbox/Artoria2e5/Ruby-zh
Selasa, 2024-04-02 21:25:24:addClass('zhuyin-rt-tone') :wikitext(tone) return ru end -- Annotate objects in pinyin. -- Pinyin orthography allow multiple characters to be annotated...
Click to read more »Module:WLink
Jumat, 2020-10-30 22:03:05with URL, or something different -- anURLutil -- library module object, or nil -- Postcondition: -- Returns string, with first detected...
Click to read more »Module:R avoided double redirect
Jumat, 2025-06-27 21:54:21formatError("The current page was passed as the parameter."); end -- Get mw.title objects for redirect targets. -- Note that using mw.title's redirectTarget will...
Click to read more »Module:Sister project links/sandbox
Kamis, 2026-04-02 20:45:34nav end function p._main(args) local titleObject = mw.title.getCurrentTitle() local ns = titleObject.namespace -- find qid, either supplied with...
Click to read more »Module:Ifexist
Sabtu, 2026-01-03 17:42:08argument #1 to \'%s\' (%s expected, got %s)', callFn, 'string or mw.title object', type(title) )) end local function wrapCacheAbleExistsFunc(callFn,...
Click to read more »Module:Authority control/config
Rabu, 2026-06-03 23:08:08[A-Z0-9/ ()-]?', link = 'https://www.minorplanetcenter.net/db_search/show_object?object_id=$1', label = 'MPC', }, { property = 5818, section = 3, link =...
Click to read more »Module:Sandbox/Thayts/Wd
Senin, 2022-07-18 02:01:58expand, args=args} elseif object.label then value = object.label else value = table.concat(object) end if not insideRef and not...
Click to read more »Module:Spoken Wikipedia/sandbox
Senin, 2025-05-19 21:16:28nocat) end -- TODO: the else branch really wants to be a mw.html <ol> object rather than wikitext -- version of the same, so that we can style the numbers...
Click to read more »Module:User:Cscott/LuaTurtle
Jumat, 2022-12-09 06:54:38["PUSH_FRAME"] = 0, ["PUSH_LOCAL_FRAME"] = 1, ["PUSH_LITERAL"] = 2, ["NEW_OBJECT"] = 3, ["NEW_ARRAY"] = 4, ["NEW_FUNCTION"] = 5, ["GET_SLOT_DIRECT"]...
Click to read more »Module:Urltowiki
Jumat, 2019-11-08 12:05:32else return "" end end input = mw.text.trim(input) -- Get the URI object. url = mw.uri.new(input) local host = url.host -- Get the interwiki...
Click to read more »Module:Sandbox/Soccer Tees
Senin, 2024-03-25 19:06:58teamInfo end, -- function readTeamInfo.default() } -- readTeamInfo object local generateTableHeader = { default = function(tableHeaderInfo) ...
Click to read more »Module:Russo-Ukrainian war detailed map/doc
Sabtu, 2025-11-01 02:03:55easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:TFRRS
Rabu, 2025-05-14 02:48:56end end if maxparam == 0 then local entity = mw.wikibase.getEntityObject() or {} local claims = entity.claims or {} local hasProp = claims["P5120"]...
Click to read more »Module:Gutenberg/sandbox
Jumat, 2022-04-01 15:38:16bestP1938.mainsnak.datavalue.value local entity = mw.wikibase.getEntityObject() or {} tagline = tagline .. " [[File:OOjs UI icon edit-ltr-progressive...
Click to read more »Module:Authority control/config/sandbox
Kamis, 2026-06-04 00:28:33[A-Z0-9/ ()-]?', link = 'https://www.minorplanetcenter.net/db_search/show_object?object_id=$1', label = 'MPC', }, { property = 5818, section = 3, link =...
Click to read more »Module:Sudanese Internal Conflict detailed map/doc
Kamis, 2020-12-17 12:50:50easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Sandbox/Pelagic/01
Kamis, 2021-06-10 19:37:13{ 'joker', 'joker' } -- two jokers local d = { } -- the deck -- mw.logObject(ranks) -- mw.log(table.concat(ranks,"")) -- default to a standard 52-card...
Click to read more »Module:Sandbox/pppery/massrm
Senin, 2025-12-22 10:02:53= matcher(); if not p then if frame.args.go then return mw.dumpObject(args) end args.reason = frame.args.reason; frame = frame:newChild{title=frame...
Click to read more »Module:Protection banner/config
Sabtu, 2026-04-18 09:24:50just by using parameters. Functions take two arguments, the -- protection object and the template arguments, and they must output a string. -- -- For example:...
Click to read more »Module:Graph/sandbox
Minggu, 2025-07-13 00:29:11traceback() .. "result type: ".. type(result) .. " result: \n\n" .. mw.dumpObject(result) --invoke chartDebuger() to get graph JSON and this string debuglog...
Click to read more »Module:High-use/sandbox
Kamis, 2025-10-09 03:17:31local lang_obj = mw.getContentLanguage() -- this here because the language object is used multiple places in the module local large_count_cutoff = 100000...
Click to read more »Module:Sorted plain list
Kamis, 2022-12-08 06:03:15function getValue(frame, propertyID) local entity = mw.wikibase.getEntityObject() local claims if entity and entity.claims then claims = entity.claims[propertyID]...
Click to read more »Module:PageLinks/sandbox
Rabu, 2026-01-21 05:37:30local ToolbarBuilder = require('Module:Toolbar') local p = {} -- Page object local trackingCategories = {} -- Table for storing the tracking categories...
Click to read more »Module:Central African Republic Civil War detailed map/doc
Jumat, 2024-08-30 03:36:56easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Sandbox/Mps/Test
Rabu, 2014-10-22 20:31:39input_parm == "FETCH_WIKIDATA" then local entity = mw.wikibase.getEntityObject() local claims = entity.claims[propertyID] if claims then if (claims[1]...
Click to read more »Module:Sandbox/Theklan/PipedCoords
Jumat, 2015-04-10 01:29:06mw.text.trim(frame.args[2] or "") local entity = mw.wikibase.getEntityObject() if entity then claims = entity.claims['P625'] if claims then local...
Click to read more »Module:Sandbox/Habst/Athletics results
Jumat, 2019-07-05 00:26:38style="width:5%;"|N\n' for i, pc in ipairs(participantOfClaims) do mw.logObject(mw.wikibase.renderSnak(pc['mainsnak'])) if pc['qualifiers'] then local...
Click to read more »Module:Sandbox/40bus/Climate
Selasa, 2025-08-05 01:02:12errorf("Low #%d is missing", i) elseif highs[i] <= lows[i] then mw.logObject({ highs = highs, lows = lows }) errorf("High #%d (%d) is not greater...
Click to read more »Module:Lang/data/iana languages/make
Rabu, 2024-07-10 21:55:31(frame) local page = mw.title.getCurrentTitle(); -- get a page object for this page local content = page:getContent(); -- get unparsed...
Click to read more »Module:Urltowiki/sandbox
Kamis, 2023-04-13 03:15:12else return "" end end input = mw.text.trim(input) -- Get the URI object. url = mw.uri.new(input) local host = url.host -- Get the interwiki...
Click to read more »Module:Routemap
Kamis, 2026-03-26 07:59:00added after every object, separated to the left by "!_". This, if there is a link, must be after the link. Parameters for individual objects in an overlapping...
Click to read more »Module:Page assessment/sandbox
Kamis, 2025-06-05 05:15:03local subjectPage = mw.title.new(pageName) -- create new object for given page title local subjectAssessment = subjectPage.pageAssessments[1]...
Click to read more »Module:Buffer/sandbox
Kamis, 2025-12-18 07:41:21setmetatable(BHi, g) end for k in next, nonSelf do--any HTML objects returned by these funcs will be granted Module:Buffer enhancements ...
Click to read more »Module:Detect singular/sandbox
Kamis, 2025-10-16 12:59:12-- origArgs.parse_links: if false, treat wikilinks as opaque singular objects (default false) -- origArgs.any_comma: if true, allow any comma to cause...
Click to read more »Module:Age/sandbox
Selasa, 2025-12-09 10:52:00local _Date, _currentDate local function getExports(frame) -- Return objects exported from the date module or its sandbox. if not _Date then local...
Click to read more »Module:Archive list alpha
Rabu, 2022-10-12 01:03:23title passed to checkArchiveExists', 2) end local noError, titleObject = pcall(mw.title.new, title) if not noError then -- If we are...
Click to read more »Module:User:McBayne/Core
Selasa, 2026-01-06 23:04:121) frame - frame objects see below for details https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame-object See also: Module:Arguments...
Click to read more »Module:ScribuntoUnit
Rabu, 2026-05-27 01:46:51expected = mw.dumpObject(expected) end if type(actual) == 'table' then actual = mw.dumpObject(actual) end ...
Click to read more »Module:UnitTests
Senin, 2026-04-27 06:17:38`remaining_b` are tables, the fast check will only work if the exact same object exists as a key in the other table. Any others from `a` that don't match...
Click to read more »Module:Interwiki extra
Rabu, 2026-02-11 20:49:01-- This module provides functions and objects for dealing with interwiki links. local checkType = require('libraryUtil').checkType local interwikiData...
Click to read more »Module:Cyclone map
Sabtu, 2022-10-22 05:04:38default properties are set by the unindexed parameters and affect all objects local defaultProperties = { ['marker-color']...
Click to read more »Module:Sandbox/Nux
Sabtu, 2025-02-15 23:21:50log("Test Table Input:", mw.text.jsonEncode(testTable, mw.text.JSON_PRETTY)) mw.logObject(testTable) return p.tableToNiceJson(testTable) end return p...
Click to read more »Module:Track gauge/sandbox
Selasa, 2023-04-11 08:20:28-------------------- function p.main(frame) -- In general: the tgEntry object (from TG/data) is passed to the functions, while arguments are processed...
Click to read more »Module:Television infoboxes disambiguation check/sandbox
Selasa, 2025-12-30 10:41:40"DisambiguationPattern", obj, "Television infoboxes disambiguation check object" ) return obj end --------------------------------------------------...
Click to read more »Module:Sandbox/RexxS/Concat
Sabtu, 2015-03-07 01:08:07input_parm == "FETCH_WIKIDATA" then local entity = mw.wikibase.getEntityObject() local props = entity.claims[propertyID] if props then local val...
Click to read more »Module:Sandbox/trappist the monk/MSGJ regex
Minggu, 2022-11-13 02:00:56capture); -- add to the captures_t sequence end end return mw.dumpObject (captures_t); end --[[--------------------------< I S _ V A L I D...
Click to read more »Module:Date
Rabu, 2026-02-18 10:21:21the current date/time (UTC). -- -- Note that os.date() returns an empty object with optimized lazy getters for each field. -- Avoid current.min or current...
Click to read more »Module:RoundN
Kamis, 2024-03-07 20:54:05data for match specified by <code>|demoWash=</code>:<br>', mw.dumpObject{scores = m.bold.clean, cycles = p.scoreWasher.cycles, sum = p.scoreSumBox...
Click to read more »Module:Sandbox/RexxS/ImageLegend
Selasa, 2016-05-17 00:03:11input_parm == "FETCH_WIKIDATA" then local ent = mw.wikibase.getEntityObject(id) local imgs if ent and ent.claims then imgs = ent.claims.P18 ...
Click to read more »Module:Transclude TOC
Sabtu, 2022-10-22 16:17:38bytes local lang = mw.language.getContentLanguage(); -- language object for number formatting appropriate to local language local s; ...
Click to read more »Module:Sandbox/B2project/NHL Standings
Selasa, 2016-08-02 08:18:01teamInfo end, -- function readTeamInfo.default() } -- readTeamInfo object local generateTableHeader = { default = function(tableHeaderInfo) ...
Click to read more »Module:Lang/data
Senin, 2026-05-04 04:40:57MediaWiki has for your language, enter this in the Debug console: =mw.dumpObject (mw.language.fetchLanguageNames ('<tag>', 'all')) (replacing <tag> with...
Click to read more »Module:Sandbox/Julio974fr
Minggu, 2023-12-10 21:27:39P_BALLOTS_CAST = 'P1868' local P_NAME = 'P2561' local P_OBJECT_HAS_ROLE = 'P3831' local P_CANDIDATE_NUMBER = '4243' local P_SPOILT_VOTES...
Click to read more »Module:Math/doc
Senin, 2026-04-06 23:54:17functions has the advantage that you do not need to access a Lua frame object. Lua functions are preceded by _, whereas #invoke functions are not....
Click to read more »Module:Nagorno-Karabakh conflict detailed map/doc
Kamis, 2020-12-24 17:23:30easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Sandbox/Mlkj
Kamis, 2022-10-06 19:44:03exist. return false else if titleObject then return titleObject.exists else return false -- Return...
Click to read more »Module:Arguments/doc
Kamis, 2026-02-26 17:42:19improving performance by avoiding the overhead of interacting with the frame object. local getArgs = require('Module:Arguments').getArgs local p = {} function...
Click to read more »Module:Interwiki extra/data
Kamis, 2024-07-25 01:00:32pairs(urls) do local urlObj = mw.uri.new(url) -- We can't output URI objects as they have metatables if not urlObj or not urlObj.host then error(string...
Click to read more »Module:Sandbox/Harry noob/Dates
Selasa, 2020-01-21 19:22:44c local possibleArrangement = {{a, b, c}, {c, b, a}, {c, a, b}} mw.logObject(possibleArrangement, "possibleArrangement: ") for _, arrange in...
Click to read more »Module:Sandbox/Ajuanca/ExtraTabular
Senin, 2020-09-28 15:04:52end table.insert(ltable, ntable) else end end return mw.logObject(ltable) end function p._get_rows(args) local page = args.src or args[1]...
Click to read more »Module:Sandbox/Habst/Athletics PBs
Minggu, 2023-04-23 05:43:37output .. '!colspan=11|PBs\n' for i, pc in ipairs(pbClaims) do mw.logObject(mw.wikibase.renderSnak(pc['mainsnak'])) if pc['qualifiers'] then local...
Click to read more »Module:Sandbox/Desb42
Minggu, 2022-08-07 15:25:01return diagnostic_preprocess_nested_data end function p.info(frame) mw.logObject(frame) return dump_table(frame) end local htmlencodeMap = { ['>'] = '>'...
Click to read more »Module:Box-header/sandbox
Senin, 2025-06-02 12:04:31local function toOpenTagString(selfClosedHtmlObject) local closedTagString = tostring(selfClosedHtmlObject) local openTagString = mw.ustring.gsub(closedTagString...
Click to read more »Module:Footnotes/anchor id list
Selasa, 2025-01-14 09:04:50last search end mw.logObject (anchor_id_list, 'anchor_id_list'); mw.logObject (template_list, 'template_list'); mw.logObject (article_whitelist, 'article_whitelist');...
Click to read more »Module:CineMol/model
Kamis, 2025-10-30 06:31:56ref_points[#ref_points+1] = endp end objects[#objects+1] = line -- Otherwise, calculate polygon for visible...
Click to read more »Module:Libyan Civil War detailed map/doc
Jumat, 2024-08-30 05:08:32easiest way to place these icons is to copy/paste the line code of the object you want to have a circle (or semi-circle) around it and then: Replace the...
Click to read more »Module:Array
Selasa, 2023-08-22 22:32:32to have the argument order reversed to work as methods of the -- array object. local second_argument_is_array = { "map", "some", "all", "filter" } --...
Click to read more »Module:WikiProject metrics
Minggu, 2021-01-10 20:02:04local count = frame:preprocess("{{#lst:" .. title .. "|count}}") mw.logObject(count) table.insert(xdata, month:text("%Y-%m-%d")) table.insert(y1data...
Click to read more »Module:Sandbox/RexxS/DateBC
Senin, 2015-06-15 00:05:28input_parm == "FETCH_WIKIDATA" then local entity = mw.wikibase.getEntityObject() if entity.claims[propertyID] ~= nil then local out = {} local...
Click to read more »Module:Sandbox/Was a bee/uses
Minggu, 2018-05-13 09:12:24local p = {} function p.getQuerytext(id) local query = '' return mw.logObject( mw.wikibase.getEntity( id ) ) end function p.usesProperty(frame) local...
Click to read more »