User contributions for Sware
Jump to navigation
Jump to search
28 June 2025
- 09:1509:15, 28 June 2025 diff hist +695 N Module:frame Created page with "local export = {} local frame local function get_frame() frame = mw.getCurrentFrame():newChild{} return frame end function export.callParserFunction(...) return (frame or get_frame()):callParserFunction(...) end function export.expandTemplate(...) return (frame or get_frame()):expandTemplate(...) end function export.extensionTag(...) return (frame or get_frame()):extensionTag(...) end function export.newParserValue(...) return (frame or get_frame()):newParserV..."
- 09:1509:15, 28 June 2025 diff hist +1,322 N Module:fun/isCallable Created page with "local table_get_metamethod_module = "Module:table/getMetamethod" local require = require local type = type local function get_metamethod(...) get_metamethod = require(table_get_metamethod_module) return get_metamethod(...) end --[==[ Return {true} if the input is a function or functor (an object which can be called like a function, because it has a {__call} metamethod). Note: if the input is an object with a {__call} metamethod, but this function is not able to fin..." current
- 09:1409:14, 28 June 2025 diff hist +1,771 N Module:table/getUnprotectedMetatable Created page with "local _getmetatable = debug.getmetatable -- For testing (and just in case it gets enabled). if _getmetatable ~= nil then -- Avoid debug.getmetatable() throwing an error if 0 arguments are passed, -- for parity with the other function. return function(t) return _getmetatable(t) end end _getmetatable = getmetatable local pcall = pcall local rawget = rawget local setmetatable = setmetatable local type = type --[==[ Attempts to retrieve the input value's metatable,..."
- 09:1409:14, 28 June 2025 diff hist +1,552 N Module:table/getMetamethod Created page with "local table_get_unprotected_metatable = "Module:table/getUnprotectedMetatable" local rawget = rawget local select = select local function get_unprotected_metatable(...) get_unprotected_metatable = require(table_get_unprotected_metatable) return get_unprotected_metatable(...) end local function get_metamethod(n, i, mt, mm, ...) if mt then mm = rawget(mt, mm) else mm = nil end if i == n then return mm end return mm, get_metamethod(n, i + 1, mt, ...) end -..."
- 09:1309:13, 28 June 2025 diff hist +1,362 N Module:title/isTitle Created page with "local table_get_metamethod_module = "Module:table/getMetamethod" local error = error local rawequal = rawequal local type = type local function get_metamethod(...) get_metamethod = require(table_get_metamethod_module) return get_metamethod(...) end local title_eq, title_lt local function get_title_mm() local success, eq, lt = get_metamethod(mw.title.getCurrentTitle(), "__eq", "__lt") if not success then error("Failed to fetch current title") -- this should never..."
- 09:1309:13, 28 June 2025 diff hist +1,969 N Module:title/exists Created page with "local title_is_title_module = "Module:title/isTitle" local title_new_title_module = "Module:title/newTitle" local error = error local format = string.format local pcall = pcall local require = require local type = type local at_limit local function is_title(...) is_title = require(title_is_title_module) return is_title(...) end local function new_title(...) new_title = require(title_new_title_module) return new_title(...) end local function exists(title) return..." current
- 09:1309:13, 28 June 2025 diff hist +645 N Module:title/getMainPageTitle Created page with "local title_new_title_module = "Module:title/newTitle" local require = require local function new_title(...) new_title = require(title_new_title_module) return new_title(...) end local main_page local function get_main_page() -- Ideally this would be done via some kind of :parse() method, but the -- mw.message library got heavily nerfed by phab:T62758, meaning it's -- now only able to fetch the unparsed wikitext and can't expand it. main_page, get_main_page..." current
- 09:1209:12, 28 June 2025 diff hist +964 N Module:title/getCurrentTitle Created page with "local get_current_title = mw.title.getCurrentTitle --[==[ A modified version of {mw.title.getCurrentTitle}, which returns the title object for the current title. If the additional optional parameter {fragment} is given, the returned title object will have that value as the fragment, which is the part of the title that comes after {#}, referring to a specific section on the page (e.g. in {"foo#bar"}, the fragment is {"bar"}). This is a convenience function, which is gen..." current
- 09:1209:12, 28 June 2025 diff hist +196 N Module:title/getCurrentNamespace Created page with "--[==[ Returns the data table for the current namespace from {mw.site.namespaces}. This module may be loaded with {mw.loadData}.]==] return mw.site.namespaces[mw.title.getCurrentTitle().namespace]"
- 09:1109:11, 28 June 2025 diff hist +6,179 N Module:title/newTitle Created page with "local load_module = "Module:load" local scribunto_module = "Module:Scribunto" local title_get_current_namespace_module = "Module:title/getCurrentNamespace" local title_get_current_title_module = "Module:title/getCurrentTitle" local title_get_main_page_title_module = "Module:title/getMainPageTitle" local byte = string.byte local find = string.find local match = string.match local new_title = mw.title.new local reverse = string.reverse local sub = string.sub local type =..."
- 09:0909:09, 28 June 2025 diff hist +3,129 Module:documentation No edit summary
- 09:0509:05, 28 June 2025 diff hist −240 Module:number list/show No edit summary current
13 June 2025
- 18:0518:05, 13 June 2025 diff hist 0 m Module:languages/data/3/q Protected "Module:languages/data/3/q" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) current
- 17:5217:52, 13 June 2025 diff hist +2 Module:number list/data/beme No edit summary current
- 17:5117:51, 13 June 2025 diff hist +2 Module:number list/data/beme No edit summary
- 17:4817:48, 13 June 2025 diff hist −2 Module:number list/data/beme No edit summary
- 17:4617:46, 13 June 2025 diff hist +21 Contionary:wan No edit summary
- 16:5316:53, 13 June 2025 diff hist +239 Module:number base No edit summary current
- 16:1816:18, 13 June 2025 diff hist +19 Module:number list No edit summary current
8 June 2025
- 20:4820:48, 8 June 2025 diff hist +4 Seventh Linguifex Relay →How-to
- 20:4620:46, 8 June 2025 diff hist +76 Seventh Linguifex Relay →How-to
- 09:2809:28, 8 June 2025 diff hist 0 Module:qay-noun No edit summary current
- 09:2509:25, 8 June 2025 diff hist +12 Module:qay-noun No edit summary
27 May 2025
- 22:1122:11, 27 May 2025 diff hist +467 User talk:Sware →Thanks!
- 22:0322:03, 27 May 2025 diff hist +353 User talk:Sware →Thanks!
14 May 2025
- 23:5523:55, 14 May 2025 diff hist +1 Template:Lyti-table-ncm No edit summary
- 23:5523:55, 14 May 2025 diff hist −1 Template:Lyti-table-ncm No edit summary
- 23:5223:52, 14 May 2025 diff hist +2 Template:Lyti-table-ncm No edit summary
30 April 2025
- 17:3117:31, 30 April 2025 diff hist +23 N Category:Popular culture texts Created page with "Category:Literature" current
- 16:1916:19, 30 April 2025 diff hist 0 Template:Library translation sidebar No edit summary
- 16:1916:19, 30 April 2025 diff hist +35 Literature:Ring verse No edit summary current
- 16:1716:17, 30 April 2025 diff hist +37 Literature:Night's Watch oath No edit summary current
- 16:1616:16, 30 April 2025 diff hist +10 Literature:Jabberwocky No edit summary current
- 16:1616:16, 30 April 2025 diff hist −6 Literature:Jabberwocky No edit summary
- 16:1516:15, 30 April 2025 diff hist +171 Template:Library translation sidebar No edit summary
29 April 2025
- 20:3320:33, 29 April 2025 diff hist +125 Module:number list Undo revision 451947 by Sware (talk)
- 20:3120:31, 29 April 2025 diff hist −398 Module:number list No edit summary
- 20:2920:29, 29 April 2025 diff hist +77 Module:number list/data/qsc No edit summary current
- 20:2520:25, 29 April 2025 diff hist −502 Module:number list No edit summary
19 April 2025
- 01:1001:10, 19 April 2025 diff hist −74 m Contionary:ai clean up
- 01:0901:09, 19 April 2025 diff hist −42 m Contionary:ad clean up
- 01:0801:08, 19 April 2025 diff hist −57 m Contionary:abutsíl clean up
17 April 2025
- 16:3616:36, 17 April 2025 diff hist +1 Contionary:ats →Etymology 1
- 16:3516:35, 17 April 2025 diff hist −128 Contionary:ats No edit summary
- 16:3016:30, 17 April 2025 diff hist −44 Template:G No edit summary current
- 16:2916:29, 17 April 2025 diff hist +211 Module:script utilities/data No edit summary current
- 16:2816:28, 17 April 2025 diff hist +3,205 Module:script utilities No edit summary current
13 April 2025
- 15:0515:05, 13 April 2025 diff hist +40 N Category:Requests for native script in Oltic usage examples Created page with "t" current
- 15:0315:03, 13 April 2025 diff hist +89 Module:languages No edit summary
- 15:0015:00, 13 April 2025 diff hist +5,860 N Module:patterns Created page with "local export = {} local byte = string.byte local find = string.find local gsub = string.gsub local match = string.match do local pattern_chars local function get_pattern_chars() pattern_chars, get_pattern_chars = { ["\0"] = "%z", ["$"] = "%$", ["%"] = "%%", ["("] = "%(", [")"] = "%)", ["*"] = "%*", ["+"] = "%+", ["-"] = "%-", ["."] = "%.", ["?"] = "%?", ["["] = "%[", ["]"] = "%]", ["^"] = "%^", }, nil return pattern_chars end --[==[Escapes the magic..." current