<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.schjessu.fyi/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Limeee</id>
	<title>Schjessu wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.schjessu.fyi/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Limeee"/>
	<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/Special:Contributions/Limeee"/>
	<updated>2026-12-05T06:51:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.4</generator>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User_talk:Limeee&amp;diff=3342</id>
		<title>User talk:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User_talk:Limeee&amp;diff=3342"/>
		<updated>2026-12-04T21:07:06Z</updated>

		<summary type="html">&lt;p&gt;Limeee: Created page with &amp;quot;== yap yap yap == meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow me...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== yap yap yap ==&lt;br /&gt;
meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow meow :3 [[User:Limeee|Limeee]] ([[User talk:Limeee|talk]]) 21:07, 4 December 2026 (UTC)&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=3341</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=3341"/>
		<updated>2026-12-04T21:06:38Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Infobox country&lt;br /&gt;
|largest_city={{Collapsible list&lt;br /&gt;
|1=paw&lt;br /&gt;
|2=claw&lt;br /&gt;
|3=tail}}&lt;br /&gt;
|common_name=lime|national_motto=keys keys keys|conventional_long_name=mr lime the heoiking chicken chicken [[Pornography|cock]]adoodledoo bok bok}}Lmfaoooo this new style is dope bu ugh the fucking search is on the left now [[User:Limeee|Limeee]] ([[User talk:Limeee|talk]]) 21:06, 4 December 2026 (UTC)[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=File:F.png&amp;diff=2745</id>
		<title>File:F.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=File:F.png&amp;diff=2745"/>
		<updated>2026-11-23T20:50:58Z</updated>

		<summary type="html">&lt;p&gt;Limeee: rip&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;they blocked it TmT -skyprotogen&lt;br /&gt;
&lt;br /&gt;
nooo :&amp;lt; [[User:Limeee|Limeee]] ([[User talk:Limeee|talk]]) 20:50, 23 November 2026 (UTC)&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Slurs&amp;diff=2521</id>
		<title>Slurs</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Slurs&amp;diff=2521"/>
		<updated>2026-11-20T16:29:40Z</updated>

		<summary type="html">&lt;p&gt;Limeee: not just men&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;slur&#039;&#039;&#039; is a form of swear word which is generally targeted towards a specific group of people. [[Kids fighting|Many people tend to get angry with you if you dare use a slur because slurs are le bad.]]&lt;br /&gt;
&lt;br /&gt;
List of slurs:&lt;br /&gt;
&lt;br /&gt;
* Nigger (against blacks)&lt;br /&gt;
** Nigga (more chill term used by blacks. use this as a white person for people to HATE you)&lt;br /&gt;
* Faggot (against [[LGBTQ|homosexuals]])&lt;br /&gt;
* Retard (against people with [[Autism|neurodivergence]] and/or [[Schizophrenia|intellectual disabilities]])&lt;br /&gt;
* Tranny (against transgender people (usually trans men))&lt;br /&gt;
** Troon&lt;br /&gt;
** [[Troed Sångberg|Troid]] (less common)&lt;br /&gt;
* Pooner (against transgender women)&lt;br /&gt;
* Kike (against Jews)&lt;br /&gt;
* Dyke (against lesbians)&lt;br /&gt;
* TBD&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2483</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2483"/>
		<updated>2026-11-19T20:44:32Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Infobox country&lt;br /&gt;
|largest_city={{Collapsible list&lt;br /&gt;
|1=paw&lt;br /&gt;
|2=claw&lt;br /&gt;
|3=tail}}&lt;br /&gt;
}}&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2482</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2482"/>
		<updated>2026-11-19T20:43:57Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Infobox country&lt;br /&gt;
|ideologies={{#invoke:dump|dumphtml|1={{Collapsible list|paw|claw|tail}}}}&lt;br /&gt;
|largest_city=&lt;br /&gt;
{{Collapsible list|1=paw|2=claw|3=tail}}&lt;br /&gt;
}}&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2481</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2481"/>
		<updated>2026-11-19T20:43:25Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Collapsible list|paw|claw|tail}}&lt;br /&gt;
{{Infobox country&lt;br /&gt;
|ideologies={{#invoke:dump|dumphtml|1={{Collapsible list|paw|claw|tail}}}}&lt;br /&gt;
|largest_city=&lt;br /&gt;
{{Collapsible list|paw|claw|tail}}&lt;br /&gt;
}}&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2479</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2479"/>
		<updated>2026-11-19T20:35:09Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Collapsible list|paw|claw|tail}}&lt;br /&gt;
{{Infobox country|ideologies={{#invoke:dump|dumphtml|1={{Collapsible list|paw|claw|tail}}}}|largest_city={{Collapsible list|paw|claw|tail}}}}&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2478</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2478"/>
		<updated>2026-11-19T20:34:30Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Collapsible list|paw|claw|tail}}&lt;br /&gt;
{{Infobox country|ideologies={{#invoke:dump|dumphtml|1={{Collapsible list|paw|claw|tail}}}}}}&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2477</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2477"/>
		<updated>2026-11-19T20:33:26Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Collapsible list|paw|claw|tail}}&lt;br /&gt;
{{#invoke:dump|dumphtml|1={{Collapsible list|paw|claw|tail}}}}&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Dump&amp;diff=2476</id>
		<title>Module:Dump</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Dump&amp;diff=2476"/>
		<updated>2026-11-19T20:32:12Z</updated>

		<summary type="html">&lt;p&gt;Limeee: Created page with &amp;quot;-- Dump a table 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 source. -- The main purpose is to allow easy inspection of Wikidata items. -- Preview the following in a sandbox to see entity Q833639 as a Lua table: --   {{#invoke:dump|wikidata|Q833639}} -- Preview the following to dump a built-in table: --   {{#invoke:dump|testcase}}  local Collection  -- a table to hold...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- Dump a table to help develop other modules.&lt;br /&gt;
-- It is also possible to use mw.dumpObject() but the result from this&lt;br /&gt;
-- module is clearer and is close to valid Lua source.&lt;br /&gt;
-- The main purpose is to allow easy inspection of Wikidata items.&lt;br /&gt;
-- Preview the following in a sandbox to see entity Q833639 as a Lua table:&lt;br /&gt;
--   {{#invoke:dump|wikidata|Q833639}}&lt;br /&gt;
-- Preview the following to dump a built-in table:&lt;br /&gt;
--   {{#invoke:dump|testcase}}&lt;br /&gt;
&lt;br /&gt;
local Collection  -- a table to hold items&lt;br /&gt;
Collection = {&lt;br /&gt;
	add = function (self, item)&lt;br /&gt;
		if item ~= nil then&lt;br /&gt;
			self.n = self.n + 1&lt;br /&gt;
			self[self.n] = item&lt;br /&gt;
		end&lt;br /&gt;
	end,&lt;br /&gt;
	join = function (self, sep)&lt;br /&gt;
		return table.concat(self, sep)&lt;br /&gt;
	end,&lt;br /&gt;
	remove = function (self, pos)&lt;br /&gt;
		if self.n &amp;gt; 0 and (pos == nil or (0 &amp;lt; pos and pos &amp;lt;= self.n)) then&lt;br /&gt;
			self.n = self.n - 1&lt;br /&gt;
			return table.remove(self, pos)&lt;br /&gt;
		end&lt;br /&gt;
	end,&lt;br /&gt;
	sort = function (self, comp)&lt;br /&gt;
		table.sort(self, comp)&lt;br /&gt;
	end,&lt;br /&gt;
	new = function ()&lt;br /&gt;
		return setmetatable({n = 0}, Collection)&lt;br /&gt;
	end&lt;br /&gt;
}&lt;br /&gt;
Collection.__index = Collection&lt;br /&gt;
&lt;br /&gt;
local function pre_block(text)&lt;br /&gt;
	-- Pre tags returned by a module do not act like wikitext &amp;lt;pre&amp;gt;...&amp;lt;/pre&amp;gt;.&lt;br /&gt;
	return &#039;&amp;lt;pre&amp;gt;\n&#039; ..&lt;br /&gt;
		mw.text.nowiki(text) ..&lt;br /&gt;
		(text:sub(-1) == &#039;\n&#039; and &#039;&#039; or &#039;\n&#039;) ..&lt;br /&gt;
		&#039;&amp;lt;/pre&amp;gt;\n&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function make_tabstr(indent)&lt;br /&gt;
	-- Return a string to generate one level of indent.&lt;br /&gt;
	if indent == &#039;tab&#039; then&lt;br /&gt;
		-- Tabs do not work well in a browser edit window, but can force them.&lt;br /&gt;
		return &#039;\t&#039;&lt;br /&gt;
	end&lt;br /&gt;
	indent = tonumber(indent)&lt;br /&gt;
	if not (type(indent) == &#039;number&#039; and 1 &amp;lt;= indent and indent &amp;lt;= 32) then&lt;br /&gt;
		indent = 4&lt;br /&gt;
	end&lt;br /&gt;
	return string.rep(&#039; &#039;, indent)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function _dumphtml(html, tabwidth)&lt;br /&gt;
	-- Return a pretty-text formatted dump of an html string.&lt;br /&gt;
	-- This assumes clean html, for example, tag &amp;quot;&amp;lt;table&amp;gt;&amp;quot; not &amp;quot;&amp;lt; table &amp;gt;&amp;quot;.&lt;br /&gt;
	if type(html) ~= &#039;string&#039; then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	local selfClosingTags = {  -- from mw.html.lua&lt;br /&gt;
		area = true,&lt;br /&gt;
		base = true,&lt;br /&gt;
		br = true,&lt;br /&gt;
		col = true,&lt;br /&gt;
		command = true,&lt;br /&gt;
		embed = true,&lt;br /&gt;
		hr = true,&lt;br /&gt;
		img = true,&lt;br /&gt;
		input = true,&lt;br /&gt;
		keygen = true,&lt;br /&gt;
		link = true,&lt;br /&gt;
		meta = true,&lt;br /&gt;
		param = true,&lt;br /&gt;
		source = true,&lt;br /&gt;
		track = true,&lt;br /&gt;
		wbr = true,&lt;br /&gt;
	}&lt;br /&gt;
	local tabstr = make_tabstr(tabwidth)&lt;br /&gt;
	local function indent_pad(depth, isfirst)&lt;br /&gt;
		-- Return a string with an indent to match depth.&lt;br /&gt;
		if depth &amp;gt; 0 then&lt;br /&gt;
			return &#039;\n&#039; .. string.rep(tabstr, depth)&lt;br /&gt;
		end&lt;br /&gt;
		return isfirst and &#039;&#039; or &#039;\n&#039;&lt;br /&gt;
	end&lt;br /&gt;
	local function extract(result, html, pos, len, depth, currenttag)&lt;br /&gt;
		-- Dump more of html into table result and return new pos.&lt;br /&gt;
		local has_child&lt;br /&gt;
		while pos &amp;lt;= len do&lt;br /&gt;
			local s, e = html:find(&#039;&amp;lt;[^&amp;lt;&amp;gt;]*&amp;gt;&#039;, pos)&lt;br /&gt;
			if s then&lt;br /&gt;
				if s &amp;gt; pos then&lt;br /&gt;
					table.insert(result, html:sub(pos, s-1))&lt;br /&gt;
				end&lt;br /&gt;
				if html:sub(s+1, s+1) == &#039;/&#039; then&lt;br /&gt;
					-- A closing tag.&lt;br /&gt;
					local tag = html:match(&#039;^([a-zA-Z0-9]+)&amp;gt;&#039;, s+2) or &#039;NOTAG&#039;&lt;br /&gt;
					if tag == currenttag then&lt;br /&gt;
						local indent = has_child and indent_pad(depth - 1) or &#039;&#039;&lt;br /&gt;
						table.insert(result, indent .. &#039;&amp;lt;/&#039; .. tag .. &#039;&amp;gt;&#039;)&lt;br /&gt;
					else&lt;br /&gt;
						-- Should never happen.&lt;br /&gt;
						table.insert(result, &#039;\n&amp;lt;/&#039; .. tag .. &#039;&amp;gt;&#039;)&lt;br /&gt;
					end&lt;br /&gt;
					return e + 1&lt;br /&gt;
				end&lt;br /&gt;
				local tag = html:match(&#039;^[a-zA-Z0-9]+&#039;, s+1) or &#039;NOTAG&#039;&lt;br /&gt;
				if html:sub(e-1, e-1) == &#039;/&#039; or selfClosingTags[tag] then&lt;br /&gt;
					-- A self-closing tag.&lt;br /&gt;
					table.insert(result, html:sub(s, e))&lt;br /&gt;
					pos = e + 1&lt;br /&gt;
				else&lt;br /&gt;
					-- An opening tag.&lt;br /&gt;
					table.insert(result, indent_pad(depth, pos == 1) .. html:sub(s, e))&lt;br /&gt;
					pos = extract(result, html, e+1, len, depth+1, tag)&lt;br /&gt;
					has_child = true&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				table.insert(result, html:sub(pos))&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return len + 1&lt;br /&gt;
	end&lt;br /&gt;
	local result = {}&lt;br /&gt;
	html = html:gsub(&#039;&amp;gt;%s+&amp;lt;&#039;, &#039;&amp;gt;&amp;lt;&#039;):gsub(&#039;\n%s*&#039;, &#039; &#039;)&lt;br /&gt;
	extract(result, html, 1, #html, 0)&lt;br /&gt;
	return pre_block(table.concat(result))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function dumphtml(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	local pargs = frame:getParent().args&lt;br /&gt;
	local text = args[1] or pargs[1]&lt;br /&gt;
	local indent = args.indent or pargs.indent&lt;br /&gt;
	return _dumphtml(text, indent)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function quoted(str)&lt;br /&gt;
	return (string.format(&#039;%q&#039;, str):gsub(&#039;\\\n&#039;, &#039;\\n&#039;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function iterkeys(var, control)&lt;br /&gt;
	-- Return an iterator over the keys of var (which should be a table).&lt;br /&gt;
	-- The keys are sorted with numbered keys first, then other types.&lt;br /&gt;
	-- The iterator returns key, repr where key is the actual key, and&lt;br /&gt;
	-- repr is its representation: a number for the ipairs keys, or&lt;br /&gt;
	-- a string, including for number keys above the table length.&lt;br /&gt;
	if type(var) ~= &#039;table&#039; then&lt;br /&gt;
		return function () return nil end&lt;br /&gt;
	end&lt;br /&gt;
	local nums = {}&lt;br /&gt;
	local results = Collection.new()&lt;br /&gt;
	for i, _ in ipairs(var) do&lt;br /&gt;
		nums[i] = true&lt;br /&gt;
		results:add({ i, i })&lt;br /&gt;
	end&lt;br /&gt;
	local keys = Collection.new()&lt;br /&gt;
	for k, _ in pairs(var) do&lt;br /&gt;
		if not nums[k] then&lt;br /&gt;
			keys:add(k)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local autoname = control.autoname&lt;br /&gt;
	keys:sort(function (a, b)&lt;br /&gt;
			local ta, tb = type(a), type(b)&lt;br /&gt;
			if ta == tb then&lt;br /&gt;
				if ta == &#039;number&#039; or ta == &#039;string&#039; then&lt;br /&gt;
					return a &amp;lt; b&lt;br /&gt;
				end&lt;br /&gt;
				if ta == &#039;boolean&#039; then&lt;br /&gt;
					return b and not a&lt;br /&gt;
				end&lt;br /&gt;
				return autoname(a) &amp;lt; autoname(b)&lt;br /&gt;
			end&lt;br /&gt;
			if ta == &#039;number&#039; then&lt;br /&gt;
				return true&lt;br /&gt;
			elseif tb == &#039;number&#039; then&lt;br /&gt;
				return false&lt;br /&gt;
			else&lt;br /&gt;
				return ta &amp;lt; tb&lt;br /&gt;
			end&lt;br /&gt;
		end)&lt;br /&gt;
	for _, k in ipairs(keys) do&lt;br /&gt;
		local repr&lt;br /&gt;
		local tk = type(k)&lt;br /&gt;
		if tk == &#039;number&#039; then&lt;br /&gt;
			repr = &#039;[&#039; .. k .. &#039;]&#039;&lt;br /&gt;
		elseif tk == &#039;string&#039; then&lt;br /&gt;
			if k:match(&#039;^[%a_][%w_]*$&#039;) then&lt;br /&gt;
				repr = k&lt;br /&gt;
			else&lt;br /&gt;
				repr = &#039;[&#039; .. quoted(k) .. &#039;]&#039;&lt;br /&gt;
			end&lt;br /&gt;
		elseif tk == &#039;boolean&#039; then&lt;br /&gt;
			repr = &#039;[&#039; .. tostring(k) .. &#039;]&#039;&lt;br /&gt;
		else&lt;br /&gt;
			repr = autoname(k)&lt;br /&gt;
			control.needed[repr] = true&lt;br /&gt;
		end&lt;br /&gt;
		results:add({ k, repr })&lt;br /&gt;
	end&lt;br /&gt;
	local last = 0&lt;br /&gt;
	return function ()&lt;br /&gt;
		if last &amp;lt; results.n then&lt;br /&gt;
			last = last + 1&lt;br /&gt;
			return unpack(results[last])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function vardump(var, vname, depth, control, self, parents)&lt;br /&gt;
	-- Update items in control with results from dumping a variable.&lt;br /&gt;
	local function put(value, options)&lt;br /&gt;
		options = options or {}&lt;br /&gt;
		local indent = options.indent or depth&lt;br /&gt;
		local comma = (options.kind == &#039;open&#039; or indent == 0) and &#039;&#039; or &#039;,&#039;&lt;br /&gt;
		control.items:add({&lt;br /&gt;
			key = (type(vname) == &#039;string&#039; and options.kind ~= &#039;close&#039;) and vname or nil,&lt;br /&gt;
			value = value .. comma,&lt;br /&gt;
			depth = indent,&lt;br /&gt;
			note = options.note&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
	if var == nil then&lt;br /&gt;
		put(&#039;nil&#039;)&lt;br /&gt;
	elseif type(var) == &#039;string&#039; then&lt;br /&gt;
		put(quoted(var))&lt;br /&gt;
	elseif type(var) == &#039;table&#039; then&lt;br /&gt;
		local this = control.autoname(var)&lt;br /&gt;
		if depth &amp;gt;= control.limitdepth then&lt;br /&gt;
			put(this)&lt;br /&gt;
		elseif parents and parents[this] then&lt;br /&gt;
			control.needed[this] = true&lt;br /&gt;
			if self == this then&lt;br /&gt;
				put(this, {note = &#039;self&#039;})&lt;br /&gt;
				control.needed[&#039;self&#039;] = true&lt;br /&gt;
			else&lt;br /&gt;
				put(this, {note = &#039;repeat&#039;})&lt;br /&gt;
				control.needed[&#039;repeat&#039;] = true&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			parents = parents or {}&lt;br /&gt;
			parents[this] = true&lt;br /&gt;
			self = this&lt;br /&gt;
			put(&#039;{&#039;, {kind = &#039;open&#039;, note = this})&lt;br /&gt;
			local mt = getmetatable(var)&lt;br /&gt;
			if mt then&lt;br /&gt;
				vardump(mt, &#039;__metatable&#039;, depth + 1, control, self, parents)&lt;br /&gt;
			end&lt;br /&gt;
			local maxsize = control.items.n + control.limititems&lt;br /&gt;
			for key, keyrep in iterkeys(var, control) do&lt;br /&gt;
				if control.items.n &amp;gt; maxsize then&lt;br /&gt;
					put(&#039;...more...&#039;)&lt;br /&gt;
					break&lt;br /&gt;
				end&lt;br /&gt;
				vardump(var[key], keyrep, depth + 1, control, self, parents)&lt;br /&gt;
			end&lt;br /&gt;
			put(&#039;}&#039;, { kind = &#039;close&#039; })&lt;br /&gt;
		end&lt;br /&gt;
	elseif type(var) == &#039;boolean&#039; or type(var) == &#039;number&#039; then&lt;br /&gt;
		put(tostring(var))&lt;br /&gt;
	else  -- function (or userdata or thread)&lt;br /&gt;
		put(control.autoname(var))&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function dumper(var, vname, tabwidth, wantraw, limititems, limitdepth)&lt;br /&gt;
	-- Return a string representing var in almost-correct Lua syntax.&lt;br /&gt;
	-- There is no newline at the end of the result.&lt;br /&gt;
	local onames = {}&lt;br /&gt;
	local tcounts = {}&lt;br /&gt;
	local function autoname(var)&lt;br /&gt;
		-- Return a string that is a unique name for var, given it is not&lt;br /&gt;
		-- a number or string.&lt;br /&gt;
		if not onames[var] then&lt;br /&gt;
			local name = type(var)&lt;br /&gt;
			tcounts[name] = (tcounts[name] or 0) + 1&lt;br /&gt;
			onames[var] = name .. &#039;_&#039; .. tcounts[name]&lt;br /&gt;
		end&lt;br /&gt;
		return onames[var]&lt;br /&gt;
	end&lt;br /&gt;
	local control = {&lt;br /&gt;
		autoname = autoname,&lt;br /&gt;
		limititems = limititems or 10000,&lt;br /&gt;
		limitdepth = limitdepth or 50,&lt;br /&gt;
		items = Collection.new(),&lt;br /&gt;
		needed = {},&lt;br /&gt;
	}&lt;br /&gt;
	vardump(var, tostring(vname or &#039;variable&#039;), 0, control)&lt;br /&gt;
	local tabstr = make_tabstr(tabwidth)&lt;br /&gt;
	local lines = Collection.new()&lt;br /&gt;
	for i, v in ipairs(control.items) do&lt;br /&gt;
		local indent = string.rep(tabstr, v.depth)&lt;br /&gt;
		local note = v.note&lt;br /&gt;
		if note and control.needed[note] then&lt;br /&gt;
			note = &#039;  -- &#039; .. note&lt;br /&gt;
		else&lt;br /&gt;
			note = &#039;&#039;&lt;br /&gt;
		end&lt;br /&gt;
		local k = v.key and (v.key .. &#039; = &#039;) or &#039;&#039;&lt;br /&gt;
		lines:add(indent .. k .. v.value .. note)&lt;br /&gt;
	end&lt;br /&gt;
	local raw = lines:join(&#039;\n&#039;)&lt;br /&gt;
	return wantraw and raw or pre_block(raw)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function dump_testcase(frame)&lt;br /&gt;
	local item&lt;br /&gt;
	if type(frame) == &#039;table&#039; then&lt;br /&gt;
		item = frame.args[1]&lt;br /&gt;
	else&lt;br /&gt;
		item = frame&lt;br /&gt;
	end&lt;br /&gt;
	if item == &#039;G&#039; or item == &#039;_G&#039; then&lt;br /&gt;
		return dumper(_G, &#039;_G&#039;, frame.args.indent)&lt;br /&gt;
	end&lt;br /&gt;
	local fruit = { &#039;apple&#039;, &#039;banana&#039;, [0] = &#039;zero&#039;, [{&#039;anon&#039;}] = &#039;anon&#039; }&lt;br /&gt;
	local testcase = {&lt;br /&gt;
		[100] = &#039;one hundred&#039;,&lt;br /&gt;
		[99] = &#039;ninety nine&#039;,&lt;br /&gt;
		[0.5] = &#039;one half&#039;,&lt;br /&gt;
		[-1] = &#039;negative one&#039;,&lt;br /&gt;
		&#039;one&#039;,&lt;br /&gt;
		&#039;two&#039;,&lt;br /&gt;
		[&#039; &#039;] = &#039;space&#039;,&lt;br /&gt;
		[&#039;1 –◆— z&#039;] = &#039;unicode&#039;,&lt;br /&gt;
		alpha = &#039;aaa&#039;,&lt;br /&gt;
		beta = &#039;bbb&#039;,&lt;br /&gt;
		c = 123,&lt;br /&gt;
		data = {&lt;br /&gt;
			dumper = dumper,&lt;br /&gt;
			[dumper] = &#039;dumper&#039;,&lt;br /&gt;
			&#039;three&#039;,&lt;br /&gt;
			&#039;four&#039;,&lt;br /&gt;
			T = true,&lt;br /&gt;
			[true] = &#039;T&#039;,&lt;br /&gt;
			alpha2 = &#039;aaa2&#039;,&lt;br /&gt;
			beta2 = &#039;bbb2&#039;,&lt;br /&gt;
			F = false,&lt;br /&gt;
			[false] = &#039;F&#039;,&lt;br /&gt;
			c2 = 1234,&lt;br /&gt;
			data2 = {&lt;br /&gt;
				&#039;five&#039;,&lt;br /&gt;
				&#039;six&#039;,&lt;br /&gt;
				alpha3 = &#039;aaa3&#039;,&lt;br /&gt;
				beta3 = &#039;bbb3&#039;,&lt;br /&gt;
				c3 = 12345,&lt;br /&gt;
				fruit = fruit,&lt;br /&gt;
				[fruit] = &#039;fruit&#039;,&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
		z = &#039;zoo&#039;,&lt;br /&gt;
	}&lt;br /&gt;
	testcase.testcase = testcase&lt;br /&gt;
	testcase.data.me = testcase.data&lt;br /&gt;
	testcase.data.data2.me = testcase&lt;br /&gt;
	testcase.data.data2.fruit.back = testcase.data&lt;br /&gt;
	setmetatable(testcase.data, {&lt;br /&gt;
		__index = function (self, key) return type(key) == &#039;string&#039; and #key or nil end,&lt;br /&gt;
		__tostring = function (self) return tostring(#self) end,&lt;br /&gt;
	})&lt;br /&gt;
	if item == &#039;return table&#039; then&lt;br /&gt;
		return testcase&lt;br /&gt;
	end&lt;br /&gt;
	return dumper(testcase, &#039;testcase&#039;, frame.args.indent)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function execute(frame)&lt;br /&gt;
	-- Return a dump of the result from executing {{#invoke:dump|execute|EXPRESSION}}.&lt;br /&gt;
	-- In general that is not possible in Scribunto so this has built-in code&lt;br /&gt;
	-- to parse some expressions of interest.&lt;br /&gt;
	-- The primary aim is to test the result of calling a Wikidata function&lt;br /&gt;
	-- while previewing an edit in an article.&lt;br /&gt;
	-- Examples of EXPRESSION:&lt;br /&gt;
	--   mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
	--   mw.wikibase.getBestStatements(&#039;Q868&#039;, &#039;P214&#039;)&lt;br /&gt;
	--   mw.wikibase.getBestStatements(Q868, P214)       -- also accepted&lt;br /&gt;
	--   mw.wikibase.getEntity():getDescription(&#039;de&#039;)&lt;br /&gt;
	--   mw.wikibase.getEntity(&#039;Q868&#039;):getDescription(&#039;de&#039;)&lt;br /&gt;
	-- getEntityObject is an alias for getEntity.&lt;br /&gt;
	-- Using the following gives an &amp;quot;out of memory&amp;quot; error presumably because&lt;br /&gt;
	-- the result is a table with a metatable that dump repeatedly expands.&lt;br /&gt;
	--   mw.title.getCurrentTitle()&lt;br /&gt;
	local function params(ptext, first)&lt;br /&gt;
		local p = { first }&lt;br /&gt;
		for item in (ptext .. &#039;,&#039;):gmatch(&#039;(%S.-)%s*,&#039;) do&lt;br /&gt;
			-- Remove any quotes around each parameter because it is already a string.&lt;br /&gt;
			local _, s = item:match([[^%s*([&#039;&amp;quot;])(.*)%1%s*$]])&lt;br /&gt;
			table.insert(p, s or tonumber(item) or item)&lt;br /&gt;
		end&lt;br /&gt;
		return unpack(p)&lt;br /&gt;
	end&lt;br /&gt;
	local expression = frame.args[1] or &#039;&#039;&lt;br /&gt;
	local text = expression:match(&#039;^%s*mw(%..-)%s*$&#039;)&lt;br /&gt;
	if not text then&lt;br /&gt;
		return &#039;Expression not recognized: &amp;quot;&#039; .. expression .. &#039;&amp;quot;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	-- Look for a supported expression of form &#039;mw.a.b(c):d.e(f)&#039;.&lt;br /&gt;
	local entity&lt;br /&gt;
	local object = mw&lt;br /&gt;
	local item, ptext, rest = text:match(&#039;^%.wikibase%.(%w+)%s*%((.*)%):(.*)$&#039;)&lt;br /&gt;
	if item == &#039;getEntity&#039; or item == &#039;getEntityObject&#039; then&lt;br /&gt;
		entity = mw.wikibase.getEntity(params(ptext))&lt;br /&gt;
		if not entity then&lt;br /&gt;
			return &#039;No entity found for (&#039; .. ptext .. &#039;)&#039;&lt;br /&gt;
		end&lt;br /&gt;
		object = entity&lt;br /&gt;
		text = &#039;.&#039; .. rest  -- treat &#039;:&#039; as &#039;.&#039;&lt;br /&gt;
	end&lt;br /&gt;
	local upto = 1&lt;br /&gt;
	for i1, item, i2 in text:gmatch(&#039;()%.(%w+)()&#039;) do&lt;br /&gt;
		if i1 == upto and type(object) == &#039;table&#039; then&lt;br /&gt;
			object = object[item]&lt;br /&gt;
		else&lt;br /&gt;
			object = nil&lt;br /&gt;
		end&lt;br /&gt;
		if object == nil then&lt;br /&gt;
			return &#039;Invalid item &amp;quot;&#039; .. item .. &#039;&amp;quot;&#039;&lt;br /&gt;
		end&lt;br /&gt;
		if type(object) == &#039;function&#039; then&lt;br /&gt;
			if text:sub(i2, i2 + 1) == &#039;()&#039; then&lt;br /&gt;
				object = object()&lt;br /&gt;
				i2 = i2 + 2&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		upto = i2&lt;br /&gt;
	end&lt;br /&gt;
	local parm = text:sub(upto):match(&#039;^%((.*)%)%s*$&#039;)&lt;br /&gt;
	if parm then&lt;br /&gt;
		object = object(params(parm, entity))&lt;br /&gt;
	end&lt;br /&gt;
	return dumper(object, expression)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function dumpargs(frame)&lt;br /&gt;
	-- Return text dump of frame.args.&lt;br /&gt;
	-- {{#invoke:dump|args|&amp;lt;ref&amp;gt;Example&amp;lt;/ref&amp;gt;}} → display ref strip marker&lt;br /&gt;
	local control = {&lt;br /&gt;
		autoname = function (var) return tostring(var) end,  -- should not be called since keys should be numbers or strings&lt;br /&gt;
	}&lt;br /&gt;
	local lines = Collection.new()&lt;br /&gt;
	for key, keyrep in iterkeys(frame.args, control) do&lt;br /&gt;
		lines:add(keyrep .. &#039; = &amp;lt;code&amp;gt;&#039; .. mw.text.nowiki(frame.args[key]) .. &#039;&amp;lt;/code&amp;gt;&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return lines:join(&#039;&amp;lt;br&amp;gt;\n&#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function parameters(frame)&lt;br /&gt;
	-- Return text dump of args and parent args from frame.&lt;br /&gt;
	-- This is for debugging a module to show what parameters it received.&lt;br /&gt;
	local control = {&lt;br /&gt;
		autoname = function (var) return tostring(var) end,  -- should not be called since keys should be numbers or strings&lt;br /&gt;
	}&lt;br /&gt;
	local lines = Collection.new()&lt;br /&gt;
	lines:add(&#039;&#039;)&lt;br /&gt;
	for _, f in ipairs({ frame, frame:getParent() }) do&lt;br /&gt;
		lines:add(&#039;[[&#039; .. f:getTitle() .. &#039;]]&#039;)&lt;br /&gt;
		for key, keyrep in iterkeys(f.args, control) do&lt;br /&gt;
			lines:add(&#039;&amp;amp;nbsp;&amp;amp;nbsp;&#039; .. mw.text.nowiki(keyrep .. &#039;=&#039; .. f.args[key]))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	lines:add(&#039;&#039;)&lt;br /&gt;
	return lines:join(&#039;&amp;lt;br&amp;gt;\n&#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function wikidata(frame)&lt;br /&gt;
	local item = frame.args[1]&lt;br /&gt;
	if item then&lt;br /&gt;
		local id = item:match(&#039;^%s*([PQ]%d+)%s*$&#039;)&lt;br /&gt;
		if id then&lt;br /&gt;
			local entity = mw.wikibase.getEntity(id)&lt;br /&gt;
			return dumper(entity, id, frame.args.indent)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &#039;Parameter should be a Wikidata identifier such as P2386 or Q833639&#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local builtins = {&lt;br /&gt;
	-- Handle preview of wikitext like {{#invoke|dump|TEXT}}&lt;br /&gt;
	-- where TEXT is a built-in value that can be dumped.&lt;br /&gt;
	__index = function (self, key)&lt;br /&gt;
		local result&lt;br /&gt;
		local function caller()&lt;br /&gt;
			return result&lt;br /&gt;
		end&lt;br /&gt;
		if type(key) == &#039;string&#039; then&lt;br /&gt;
			local title = key:match(&#039;^%s*[\&#039;&amp;quot;]?(.*%.tab)[\&#039;&amp;quot;]?%s*$&#039;)&lt;br /&gt;
			if title then&lt;br /&gt;
				-- Assume structured data from Commons at [[c:Data:&amp;lt;title&amp;gt;]].&lt;br /&gt;
				if title:match(&#039;^[Dd]ata:&#039;) then&lt;br /&gt;
					title = title:sub(6)&lt;br /&gt;
				end&lt;br /&gt;
				local data = mw.ext.data.get(title)  -- false if page does not exist&lt;br /&gt;
				result = dumper(data, &#039;[[c:Data:&#039; .. title .. &#039;]]&#039;)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		result = result or (&#039;UNKNOWN: &#039; .. tostring(key))&lt;br /&gt;
		return caller&lt;br /&gt;
	end&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return setmetatable({&lt;br /&gt;
	args = dumpargs,&lt;br /&gt;
	_dump = dumper,&lt;br /&gt;
	_dumphtml = _dumphtml,&lt;br /&gt;
	dumphtml = dumphtml,&lt;br /&gt;
	execute = execute,&lt;br /&gt;
	parameters = parameters,&lt;br /&gt;
	testcase = dump_testcase,&lt;br /&gt;
	wikidata = wikidata,&lt;br /&gt;
}, builtins)&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2475</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2475"/>
		<updated>2026-11-19T20:30:00Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Collapsible list|paw|claw|tail}}&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Collapsible list|paw|claw|tail}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2474</id>
		<title>User:Limeee</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee&amp;diff=2474"/>
		<updated>2026-11-19T20:29:39Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Citrelime standalone x8.png|thumb]]&lt;br /&gt;
lime dot oh wot&lt;br /&gt;
{{Collapsible list|paw|claw|tail}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{Collapsible list|paw|claw|tail}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
[[File:Chud shock 2.webp|left|thumb]]&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Our_World_of_Text&amp;diff=2424</id>
		<title>Our World of Text</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Our_World_of_Text&amp;diff=2424"/>
		<updated>2026-11-19T07:57:09Z</updated>

		<summary type="html">&lt;p&gt;Limeee: /* Chud Shock */ accuracy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{OWoT}}&lt;br /&gt;
{{Discord}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://ourworldoftext.com/ Our World of Text]&#039;&#039;&#039; (often shortened to &#039;&#039;&#039;OWoT&#039;&#039;&#039; &amp;lt;s&amp;gt;or &#039;&#039;&#039;OWOT&#039;&#039;&#039;&amp;lt;/s&amp;gt;) is an infinite canvas website with a chatbox. It is the successor to [[Your World of Text]], and is led by and administrated by [[FP]] (or System2k). Its [[OSS|source code]] was released in 2023, resulting in a bunch of [[Website splinters|splinters]].&amp;lt;blockquote&amp;gt;&#039;&#039;&#039;Our World of Text&#039;&#039;&#039; (abbreviated as &#039;&#039;&#039;OWOT&#039;&#039;&#039; or &#039;&#039;&#039;OWoT&#039;&#039;&#039;) is an interactive website where users can type text anywhere on an infinite grid. The site is accessible here. Users can choose the color of their text and visit other pages known as &amp;quot;worlds&amp;quot;. In OWOT, all users start on the front page and see other worlds by adding the name of the world to the end of the URL after a slash, or by clicking a link, such as those present in the Center Console.&amp;lt;/blockquote&amp;gt;&#039;&#039;&#039;— [https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox Wikipedia Sandbox] draft (found [https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&amp;amp;oldid=1381785610 here])&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Canvas ==&lt;br /&gt;
Canvas is objectively the only remotely good thing about OWoT, but that&#039;s no longer true as colors got whitelisted to only people FP likes&amp;lt;ref&amp;gt;https://discord.com/channels/366609898164715520/471771705518456842/1517212509898014850&amp;lt;/ref&amp;gt;. The canvas is an infinite grid of tiles where anyone can type any [[Unicode]] character&amp;lt;ref&amp;gt;https://wiki.ourworldoftext.com/wiki/Tile_format#Content&amp;lt;/ref&amp;gt;. Naturally people immediately started abusing this and made [[Symbols for Legacy Computing|SLC]] [https://wiki.ourworldoftext.com/wiki/Image_pasters Image Pasters] which completely bypass of this site not just being any regular whiteboard.&lt;br /&gt;
[[File:Owot canvas.png|none|thumb|Peak OWoT comedy. Deserves [[Reddit]] gold.]]&lt;br /&gt;
&lt;br /&gt;
=== WoTD ===&lt;br /&gt;
On OWoT, anybody with an account can claim any unclaimed world (worlds are basically pages accessed by adding any string of ASCII characters to the end of the OWoT URL) and make anything on it. WoTD (full name World of The &#039;&#039;&#039;Day&#039;&#039;&#039;) is OWoT&#039;s official world showcase system, where people can submit worlds, FP will put some of the best ones on a list, people will vote in that list, and then FP will wait for 3 months to change the WoTD based on what the votes chose.&lt;br /&gt;
&lt;br /&gt;
== Chat ==&lt;br /&gt;
[[File:Pixelmess club penguin.png|none|thumb|peak chat (none of these people use this site anymore)]]&lt;br /&gt;
&lt;br /&gt;
== Worlds ==&lt;br /&gt;
&lt;br /&gt;
== Rules ==&lt;br /&gt;
OWoT has been without many written rules for most of its lifespan. Though on the 19th of November 2026, FP would post following rule draft into the OWoT Discord server&amp;lt;ref&amp;gt;https://discord.com/channels/366609898164715520/1571624108829974720/1572822001494786058&amp;lt;/ref&amp;gt;: (open collapsible for rules)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Open Collapsible&amp;quot; data-collapsetext=&amp;quot;Close Collapsible&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;please refer to the rules. the list is not exhaustive (I might be missing something obvious) but it shows where things currently stand. virtually none of these rules are new. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Our World of Text Rules&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;=======================&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;# 1. Script usage&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1) Long-running scripts on the center of the front page aren&#039;t strictly prohibited, but may be analyzed on a case-to-case basis as to whether it constitutes a nuisance to other users.&lt;br /&gt;
&lt;br /&gt;
1.1) Unerasable text on the front page is not permitted, but is not strictly enforced. If the content of the text is offensive, it may lead to a canvas ban at minimum.&lt;br /&gt;
&lt;br /&gt;
2) Third party chat gateways are generally accepted.&lt;br /&gt;
&lt;br /&gt;
2.1) The gateway may not be used for ban evasion or being a nuisance. In such cases, the gateway may be muted.&lt;br /&gt;
&lt;br /&gt;
2.2) Gateways can be officially accredited, meaning it follows the standards for being easily manageable by OWOT. In the case of Discord gateways, this may include passing the Discord user ID to the chat metadata, or promoting one of the OWOT staff members as a moderator on the Discord server hosting the gateway.&lt;br /&gt;
&lt;br /&gt;
3) Scripts may not be used to slow or crash the server.&lt;br /&gt;
&lt;br /&gt;
4) Scripts may not be used to deny users access to parts or features of the canvas except in extraordinary circumstances.&lt;br /&gt;
&lt;br /&gt;
5) Wiper usage is allowed, but must not be abused.&lt;br /&gt;
&lt;br /&gt;
6) Excessive script usage may result in a rate-limit.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;# 2. Chat&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1) Spamming is not allowed, which may involve the use of repeated phrases, incrementing numbers, text generated randomly or from a markov chain/AI, etc.&lt;br /&gt;
&lt;br /&gt;
2) The chat may not be used to promote drugs, gambling, or illegal activities.&lt;br /&gt;
&lt;br /&gt;
3) The chat may not be used for distributing doxxes of minors.&lt;br /&gt;
&lt;br /&gt;
4) The chat may not be used for the purposes of real-world harm, or mental harm.&lt;br /&gt;
&lt;br /&gt;
5) The chat is limited to users of ages 13 and up.&lt;br /&gt;
&lt;br /&gt;
5.1) If a user must use the chat while being under 13, then the user must be strictly isolated from the rest of the website through all means possible.&lt;br /&gt;
&lt;br /&gt;
6) The chat may not be used to distribute illegal content.&lt;br /&gt;
&lt;br /&gt;
6.1) Links to CSAM, including in the form of TOR onion links, are strictly prohibited and will result in a report to the proper authorities.&lt;br /&gt;
&lt;br /&gt;
7) The chat may not be used for grooming purposes or for luring vulnerable users to other places for malicious purposes.&lt;br /&gt;
&lt;br /&gt;
7.1) Erotic role-plays where at least one party is a minor are not allowed.&lt;br /&gt;
&lt;br /&gt;
7.2) Soliciting real-world information from minors including photos and physical addresses will result in an investigation.&lt;br /&gt;
&lt;br /&gt;
8) Sexually explicit messages must belong in worlds marked as NSFW, and no minor is allowed access to such world.&lt;br /&gt;
&lt;br /&gt;
9) The chat may not be used for targeted harrassment of users.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;# 3. Text-based canvas&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1) Image pastes are restricted based on the content.&lt;br /&gt;
&lt;br /&gt;
1.1) Image pastes must not be pornographic.&lt;br /&gt;
&lt;br /&gt;
1.2) Braille pastes (including 2x3 sextants, 2x4 octants, 2x4 braille, monochrome ANSI, etc) must not be pornographic outside a NSFW-marked world.&lt;br /&gt;
&lt;br /&gt;
1.3) CSAM image pastes are strictly prohibited and will result in a report to the proper authorities.&lt;br /&gt;
&lt;br /&gt;
1.4) Lolicon/shotacon image pastes are not allowed.&lt;br /&gt;
&lt;br /&gt;
2) Links may not be spammed, although this is not strictly enforced.&lt;br /&gt;
&lt;br /&gt;
2.1) Links must not lead to illegal sources.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;# 4. General access&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1) Users under the age of 18 are not allowed to access worlds marked as NSFW.&lt;br /&gt;
&lt;br /&gt;
1.1) If a world owner cannot responsibly ensure access is controlled, the world may be restricted to the public.&lt;br /&gt;
&lt;br /&gt;
2) If chat or canvas activity is consistent with evidence that the user is from a blacklisted community, the user may be banned from the site. No such list will be published for security reasons.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;# 5. General behavior&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1) The site may not be used to organize real-world violence and attacks.&lt;br /&gt;
&lt;br /&gt;
2) Racist/pedophilic behavior is banned.&lt;br /&gt;
&lt;br /&gt;
3) Sexual harrassment is not allowed.&lt;br /&gt;
&lt;br /&gt;
4) Ban evasion is not allowed.&lt;br /&gt;
&lt;br /&gt;
4.1) Under special circumstances, a person may evade the ban to provide an explanation that may exonerate the user from what got them banned or muted.&lt;br /&gt;
&lt;br /&gt;
5) A minor may not own a world that may endanger them.&lt;br /&gt;
&lt;br /&gt;
6) A culture may not be promoted that results in the corruption of the state of the community. Examples include pedophilia, sexualized culture, etc.&lt;br /&gt;
&lt;br /&gt;
7) The site may not be used for activities illegal in the United States. Exceptions are made to unjust laws that do not impact the state where the site is currently hosted in.&lt;br /&gt;
&lt;br /&gt;
8) Denial of service attacks may not be launched against the site.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
== Community ==&lt;br /&gt;
OWoT&#039;s community is a cesspool of terminally online people. TBD&lt;br /&gt;
&lt;br /&gt;
=== Anons ===&lt;br /&gt;
[[File:Anonway.png|thumb|Anons (8965, 4843, 871) talking in Global chat using the Anonway script.]]&lt;br /&gt;
Anons are (were) a staple of OWoT&#039;s community, most often being represented as rude, racist trolls. While this stereotype is partly true, it misrepresents the anon community as a whole. Since the Anon Ban of June 2026 - where anons were permanently barred from using Global Chat - anons have been almost exclusively on Canvas. Though some anons now make throwaway accounts to speak in chat.&lt;br /&gt;
&lt;br /&gt;
On the 5th of November 2026, an Anon would create the world &#039;&#039;[https://ourworldoftext.com/global /global]&#039;&#039;, which - using a script (nicknamed Anonway) - acts as a gateway for anons to talk in global chat. It uses an account named &amp;quot;NAG&amp;quot; to relay messages typed by Anons in /global over to Global chat, and vice versa&amp;lt;ref&amp;gt;First message to be sent through the NAG acocunt: https://discord.com/channels/1509833596238823464/1509835846273204284/1567949455691358339&amp;lt;/ref&amp;gt;. This account would swiftly be banned by [[d9eoead]] after being pinged in the OWoT Discord about it&amp;lt;ref&amp;gt;Original message: https://discord.com/channels/366609898164715520/367475763680641024/1568056860945285193&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;d9 banning anonway: https://discord.com/channels/1509833596238823464/1509835846273204284/1568060088323805205&amp;lt;/ref&amp;gt;, which would lead to the creator coming back and adding a new account. This process would continue a few more times, with the Anonway getting a new account, and d9 banning it shortly afterwards.&lt;br /&gt;
&lt;br /&gt;
The Anonway script was inspired by a similar Anonway made by user freebsd-craze where he would manually forward messages sent my anons in another chat to global.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Open the Collapsible for the script.&#039;&#039;&amp;lt;ref&amp;gt;Script can also be found here: https://ourworldoftext.com/anonsagain&amp;lt;/ref&amp;gt;&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; data-expandtext=&amp;quot;Open Collapsible&amp;quot; data-collapsetext=&amp;quot;Close Collapsible&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt;/*DON&#039;T RUN ON THE SAME WORLD UNLESS YOU WANT SEVERAL POSTS AT ONCE! INSTRUCTIONS: CREATE ACCOUNT, GO TO ANY WORLD, OPEN LOCAL CHAT, OPEN CONSOLE, PASTE THE CODE AND RUN. LOCAL CHAT HAS TO ALREADY BE OPEN ON LAUNCH. LEAVE BROWSER OPEN IN THE BACKGROUND, KEEP THE PAGE ACTIVE*/(()=&amp;gt;{&amp;quot;use strict&amp;quot;;let t=!1,e=-1/0,n=null;const a=[],i=new Map,c=t=&amp;gt;new Promise(e=&amp;gt;setTimeout(e,t));function r(t){return String(t??&amp;quot;&amp;quot;).replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/g,&amp;quot;&amp;quot;).slice(0,1e4).trim()}function o(t){return[...document.querySelectorAll(t)].find(t=&amp;gt;{const e=getComputedStyle(t);return t.isConnected&amp;amp;&amp;amp;t.getClientRects().length&amp;gt;0&amp;amp;&amp;amp;&amp;quot;none&amp;quot;!==e.display&amp;amp;&amp;amp;&amp;quot;hidden&amp;quot;!==e.visibility})||null}function l(t,e=2e3){return new Promise(n=&amp;gt;{const a=performance.now()+e;!function e(){const i=o(t);i?.classList.contains(&amp;quot;chat_tab_selected&amp;quot;)?n(!0):performance.now()&amp;gt;=a?n(!1):setTimeout(e,25)}()})}async function s(t,e){const n=o(t);if(!n)throw new Error(e);if(!n.classList.contains(&amp;quot;chat_tab_selected&amp;quot;)){if(n.click(),!await l(t))throw new Error(e);await c(100)}}async function u(t){const e=o(&amp;quot;#chat_page_tab&amp;quot;);if(!o(&amp;quot;#chat_global_tab&amp;quot;)||!e)throw new Error(&amp;quot;Could not find the Global and Local chat tabs.&amp;quot;);try{await s(&amp;quot;#chat_global_tab&amp;quot;,&amp;quot;Global tab unable to be selected&amp;quot;),api_chat_send(t.text,{nick:t.nick})}finally{e.isConnected&amp;amp;&amp;amp;(e.click(),await l(&amp;quot;#chat_page_tab&amp;quot;)||console.error(&amp;quot;Local chat unable to be selected&amp;quot;))}}async function d(t){await s(&amp;quot;#chat_page_tab&amp;quot;,&amp;quot;Local chat tab unable to be selected&amp;quot;),api_chat_send(`/tell ${t} NO USERS ALLOWED!`)}function f(n){return a.length&amp;gt;=50?(console.warn(&amp;quot;Relay queue is full&amp;quot;),!1):(a.push(n),async function(){if(!t){t=!0;try{for(;a.length;){const t=a.shift(),n=e+1e3-performance.now();n&amp;gt;0&amp;amp;&amp;amp;await c(n),e=performance.now();try{&amp;quot;tell&amp;quot;===t.type?await d(t.id):await u(t)}catch(t){console.error(&amp;quot;Error:&amp;quot;,t)}}}finally{t=!1}}}(),!0)}w.on(&amp;quot;chat&amp;quot;,function(t){const e=function(t){return{id:String(t?.id??&amp;quot;&amp;quot;),location:t?.location??&amp;quot;&amp;quot;,nickname:r(t?.nickname??&amp;quot;&amp;quot;),realUsername:String(t?.realUsername??t?.dataObj?.realUsername??&amp;quot;&amp;quot;).trim(),text:t?.message??t?.dataObj?.message??&amp;quot;&amp;quot;}}(t);if(&amp;quot;page&amp;quot;!==e.location)return;const a=r(e.text);if(!a)return;if(/^\/tell\b/i.test(a)||&amp;quot;NO USERS &amp;amp; GUESTS ALLOWED!&amp;quot;===a)return;if(e.realUsername){if(/^NAG/i.test(e.realUsername))return;if(!/^\d+$/.test(e.id))return;const t=i.get(e.id)??-1/0;return void(Date.now()-t&amp;gt;=6e4&amp;amp;&amp;amp;f({type:&amp;quot;tell&amp;quot;,id:e.id})&amp;amp;&amp;amp;i.set(e.id,Date.now()))}if(!/^\d+$/.test(e.id))return;const c=e.nickname?`${e.nickname} (${e.id})`:e.id,o=a.slice(0,400);n?.id===e.id&amp;amp;&amp;amp;n?.text===o||(n={id:e.id,text:o},f({type:&amp;quot;relay&amp;quot;,nick:c,text:o}))})})();&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Users ===&lt;br /&gt;
This is a list of OWoT users, most minors and victims of [[Pornography|EPI]]:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Find a larger list of OWoT users [[List of OWoT Users|here]].&#039;&#039;&lt;br /&gt;
* [[FP]]&lt;br /&gt;
* [[Lime.person|lime.owot]]&lt;br /&gt;
* [[Schjessu]]&lt;br /&gt;
* [[Mimi]]&lt;br /&gt;
* [[JunoTehPlanet]]&lt;br /&gt;
* [[d9eoead]]&lt;br /&gt;
* [[Nota.dmg]]&lt;br /&gt;
* [[katiserie]]&lt;br /&gt;
* [[Catha&#039;Vi]]&lt;br /&gt;
* [[UntitledOWOT]]&lt;br /&gt;
* [[bonzicuck]]&lt;br /&gt;
* [[Whwywhwy]]&lt;br /&gt;
* [[Liy]]&lt;br /&gt;
* [[everest]]&lt;br /&gt;
* [[thebigh]]&lt;br /&gt;
* [[GimmickCellar|&amp;lt;s&amp;gt;gimmickCellar&amp;lt;/s&amp;gt;]]&lt;br /&gt;
* [[the4gspeed]]&lt;br /&gt;
Actually good users:&lt;br /&gt;
&lt;br /&gt;
* Mr.Guy&lt;br /&gt;
* rscr&lt;br /&gt;
&lt;br /&gt;
On the 1st of November 2026, Schjessu would release a [https://tiermaker.com TierMaker] [[Tierlists|Tierlist]] on OWoT users&amp;lt;ref&amp;gt;https://discord.com/channels/1509833596238823464/1509835846273204284/1566512057551954031&amp;lt;/ref&amp;gt; (chart found [https://tiermaker.com/create/our-world-of-text-users-tierlist-17715031 here]). This tierlist would become a sensation among OWoT Discord users, with several of them uploading their rankings to the OWoT Discord&amp;lt;ref&amp;gt;Original message sent in the discord: https://discord.com/channels/366609898164715520/367475763680641024/1566512172912345279&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;Discussion fires up here: https://discord.com/channels/366609898164715520/367475763680641024/1566543316059815946&amp;lt;/ref&amp;gt;. Below includes tierlists made by different OWoT users:&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tierlist schjessu updated.webp|link=File:Tierlist_schjessu_updated.webp|[https://tiermaker.com/list/random/our-world-of-text-users-tierlist-17715031/6741833 By] Schjessu&amp;lt;ref&amp;gt;unupdated: https://discord.com/channels/366609898164715520/367475763680641024/1566513109294907533 &amp;amp; updated: https://discord.com/channels/366609898164715520/367475763680641024/1566556196310360174&amp;lt;/ref&amp;gt;&lt;br /&gt;
File:Tierlist ajl.webp|link=File:Tierlist_ajl.webp|&#039;&#039;&amp;quot;The real tierlist:&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566560513486491782 By] AJLStick&lt;br /&gt;
File:Tierlist kaz.webp|link=File:Tierlist_kaz.webp|&#039;&#039;&amp;quot;sssdfg&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566554490470006875 By] kaz&lt;br /&gt;
File:Tierlist Nota.png|link=File:Tierlist Nota.png|By Nota&amp;lt;ref&amp;gt;Nota first uploaded his tierlist to this wiki, before sending it anywhere else.&amp;lt;/ref&amp;gt;&lt;br /&gt;
File:Tierlist mimi update.webp|link=File:Tierlist_mimi_update.webp|&#039;&#039;&amp;quot;arktos wasn&#039;t here but i wanted to include them anyways&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566561684007555173 By]&amp;lt;ref&amp;gt;Previous link is an updated version. Original found here: https://discord.com/channels/366609898164715520/367475763680641024/1566561256641400842&amp;lt;/ref&amp;gt; mimi&lt;br /&gt;
File:Tierlist thorium.webp|link=File:Tierlist_thorium.webp|&#039;&#039;&amp;quot;also about the tierlist&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566543316059815946 By] thorium1256&lt;br /&gt;
File:Tierlist realredtext.webp|link=File:Tierlist_realredtext.webp|&#039;&#039;&amp;quot;suffering from success&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566558101723938866 By] realredtext&lt;br /&gt;
File:Tierlist catha&#039;vi.webp|link=File:Tierlist_catha&#039;vi.webp|&#039;&#039;&amp;quot;My 100% serious tier list trust me&#039;&#039;&amp;lt;ref&amp;gt;This comment is deflection, meaning that Catha&#039;Vi probably wasn&#039;t truly being serious while making this list, or that he is ashamed of sharing it.&amp;lt;/ref&amp;gt;&#039;&#039;&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566559058129850388 By] Catha&#039;Vi&lt;br /&gt;
File:Tierlist thebigh.webp|link=File:Tierlist_thebigh.webp|&#039;&#039;&amp;quot;whatever idk some of these people that arent in idk&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566579386109526159 By] thebigh&lt;br /&gt;
File:Tierlist katiserie.png|&#039;&#039;&amp;quot;here&#039;s a totally unbiased owot user tierlist. this should tell you everything you need to know about me lol&amp;quot;&#039;&#039; By katiserie, trying to pass off as an anon.&amp;lt;ref&amp;gt;Goatway was offline when he said it, so no archive available.&amp;lt;/ref&amp;gt;&lt;br /&gt;
File:Tierlist chromicquanta.webp|link=File:Tierlist_chromicquanta.webp|&#039;&#039;&amp;quot;:smug:&amp;quot;&#039;&#039; [https://discord.com/channels/366609898164715520/367475763680641024/1566571093378994276 By] ChromicQuanta (joke list)&lt;br /&gt;
File:Tierlist Alan.webp|link=File:Tierlist_Alan.webp|&#039;&#039;&amp;quot;all better&amp;quot;&#039;&#039; By Alan (ossftw) (joke list)&amp;lt;ref&amp;gt;Original message seemingly deleted.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== OWoT Discord ===&lt;br /&gt;
The OWoT Discord server is a server where all normies / moralfags end up because OWoT chat is too edgy for their feewings to handle :(&lt;br /&gt;
&lt;br /&gt;
Due to FP spending more time in the OWoT Discord, people who are on the OWoT Discord tend to have more moderative power over the OWoT Website than people who aren&#039;t. This has caused a [[The Clique|Clique]] to form in the OWoT Discord. TBD&lt;br /&gt;
&lt;br /&gt;
=== Memes &amp;amp; Inside jokes ===&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==== Chud Shock ====&lt;br /&gt;
Chud Shock is a combination of emojis (generated using [[wikipedia:Gboard|Gboard]]&#039;s [https://emojikitchen.dev/ Emoji Kitchen]&amp;lt;ref&amp;gt;https://discord.com/channels/366609898164715520/814269977393233937/1510800690501390466&amp;lt;/ref&amp;gt;) including the 😲 astonished face emoji. The meme first became popular in June 2026 when kaz was screwing around with the Emoji Kitchen, which generated a few combinations which are still used by some OWoT Discord users to this day.&amp;lt;ref&amp;gt;original thread here: https://discord.com/channels/366609898164715520/814269977393233937/1510794149094232134. doesn&#039;t include some of the most well-known Chud Shock images, but it&#039;s the first occasion of something alike being used.&amp;lt;/ref&amp;gt; This meme also encompasses the 😲 astonished face emoji itself as many OWoT users now use it for reactions, regardless if it fits the situation or not.&amp;lt;gallery mode=&amp;quot;packed&amp;quot; caption=&amp;quot;The three most popular Chud Shock reaction images&amp;quot;&amp;gt;&lt;br /&gt;
File:Chud shock.webp&lt;br /&gt;
File:Chud shock 2.webp&lt;br /&gt;
File:Chud shock 3.webp&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Axing ====&lt;br /&gt;
Axing someone - often represented with the 🪓 Axe emoji - is an inside joke which builds off Everest&#039;s school attack where he attacker his teacher with an axe (read more [[Everest#School Attack|here]]).&lt;br /&gt;
&lt;br /&gt;
== Snopes ==&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Talk:Lime.person&amp;diff=2366</id>
		<title>Talk:Lime.person</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Talk:Lime.person&amp;diff=2366"/>
		<updated>2026-11-18T07:40:35Z</updated>

		<summary type="html">&lt;p&gt;Limeee: /* but why */ create&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== but why ==&lt;br /&gt;
&amp;gt; id rather not&lt;br /&gt;
[[User:Limeee|Limeee]] ([[User talk:Limeee|talk]]) 07:40, 18 November 2026 (UTC)&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=3fishiesinacircle&amp;diff=2362</id>
		<title>3fishiesinacircle</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=3fishiesinacircle&amp;diff=2362"/>
		<updated>2026-11-18T07:37:03Z</updated>

		<summary type="html">&lt;p&gt;Limeee: twinks&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{OWoT}}&lt;br /&gt;
[[File:3fish.webp|thumb|200x200px|A drawing of an OC of 3fish created by [[JamelBurger]].]]&lt;br /&gt;
&#039;&#039;&#039;3fishiesinacircle&#039;&#039;&#039; (or &#039;&#039;&#039;3fish&#039;&#039;&#039; / &#039;&#039;&#039;3fishies&#039;&#039;&#039; for short) is a bisexual 18-year-old woman and [[Our World of Text|OWoT]] user, and uses [[The Clique#Mothway|Mothway]] frequently. She also frequents several [[Discord]] servers related to OWoT, with her being in a friendgroup of mainly OWoT users.&lt;br /&gt;
&lt;br /&gt;
== On OWoT ==&lt;br /&gt;
3fish began using OWoT in mid-November 2026. TBD&lt;br /&gt;
&lt;br /&gt;
== Gallery ==&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; caption=&amp;quot;Drawings of 3fish by JamelBurger&amp;quot;&amp;gt;&lt;br /&gt;
File:3fish comic 1.webp&lt;br /&gt;
File:3fish eat aka.gif&lt;br /&gt;
File:3fish hypno.webp&lt;br /&gt;
File:3fish food.webp&lt;br /&gt;
File:3fish concept.webp&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=UntitledOWOT&amp;diff=2361</id>
		<title>UntitledOWOT</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=UntitledOWOT&amp;diff=2361"/>
		<updated>2026-11-18T07:35:41Z</updated>

		<summary type="html">&lt;p&gt;Limeee: gay&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Untitledowot.webp|thumb|196x196px|UntitledOWOT&#039;s [[Discord]] PFP]]&lt;br /&gt;
&#039;&#039;&#039;UntitledOWOT&#039;&#039;&#039; (formerly &#039;&#039;&#039;UntitledTrollbox&#039;&#039;&#039;) is a Russian [[Our World Of Text|OWoT]] user that is a proud supporter of the Abkhazia independence movement. TBD&lt;br /&gt;
&lt;br /&gt;
== On Trollbox ==&lt;br /&gt;
TBA&lt;br /&gt;
&lt;br /&gt;
== On OWoT ==&lt;br /&gt;
[[File:Owot icon.webp]]&#039;&#039;The OWoT wiki&#039;s page on Untitled can be found [https://wiki.ourworldoftext.com/wiki/UntitledOWOT here]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Untitled originally found OWoT in September 2024, but didn&#039;t become active until October 2025. TBD&lt;br /&gt;
&lt;br /&gt;
=== Projects ===&lt;br /&gt;
&lt;br /&gt;
==== freespammingzone ====&lt;br /&gt;
&lt;br /&gt;
==== ourworldofrelevancy ====&lt;br /&gt;
&lt;br /&gt;
==== FAVORITE LETTER AWARDS ====&lt;br /&gt;
&lt;br /&gt;
=== Art ===&lt;br /&gt;
&lt;br /&gt;
=== Spamming ===&lt;br /&gt;
&lt;br /&gt;
== On objection.lol ==&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Random&amp;diff=1538</id>
		<title>Module:Random</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Random&amp;diff=1538"/>
		<updated>2026-10-26T22:05:54Z</updated>

		<summary type="html">&lt;p&gt;Limeee: gosh be a bit faster&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module contains a number of functions that make use of random numbers.&lt;br /&gt;
&lt;br /&gt;
local cfg = {}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Configuration&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- Set this to true if your wiki has a traffic rate of less than one edit every two minutes or so.&lt;br /&gt;
-- This will prevent the same &amp;quot;random&amp;quot; number being generated many times in a row until a new edit is made&lt;br /&gt;
-- to the wiki. This setting is only relevant if the |same= parameter is set.&lt;br /&gt;
cfg.lowTraffic = true&lt;br /&gt;
&lt;br /&gt;
-- If cfg.lowTraffic is set to true, and the |same= parameter is set, this value is used for the refresh rate of the random seed.&lt;br /&gt;
-- This is the number of seconds until the seed is changed. Getting this right is tricky. If you set it too high, the same number&lt;br /&gt;
-- will be returned many times in a row. If you set it too low, you may get different random numbers appearing on the same page,&lt;br /&gt;
-- particularly for pages that take many seconds to process.&lt;br /&gt;
cfg.seedRefreshRate = 5&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- End configuration&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local p = {} -- For functions available from other Lua modules.&lt;br /&gt;
local l = {} -- For functions not available from other Lua modules, but that need to be accessed using table keys.&lt;br /&gt;
&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
local makeList = require(&#039;Module:List&#039;).makeList&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function raiseError(msg)&lt;br /&gt;
	-- This helps to generate a wikitext error. It is the calling function&#039;s responsibility as to how to include it in the output.&lt;br /&gt;
	return mw.ustring.format(&#039;&amp;lt;b class=&amp;quot;error&amp;quot;&amp;gt;[[Module:Random]] error: %s.&amp;lt;/b&amp;gt;&#039;, msg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- random number function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function getBigRandom(l, u)&lt;br /&gt;
	-- Gets a random integer between l and u, and is not limited to RAND_MAX.&lt;br /&gt;
	local r = 0&lt;br /&gt;
	local n = 2^math.random(30) -- Any power of 2.&lt;br /&gt;
	local limit = math.ceil(53 / (math.log(n) / math.log(2)))&lt;br /&gt;
	for i = 1, limit do&lt;br /&gt;
		r = r + math.random(0, n - 1) / (n^i)&lt;br /&gt;
	end&lt;br /&gt;
	return math.floor(r * (u - l + 1)) + l&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.number(args)&lt;br /&gt;
	-- Gets a random number.&lt;br /&gt;
	first = tonumber(args[1])&lt;br /&gt;
	second = tonumber(args[2])&lt;br /&gt;
	-- This needs to use if statements as math.random won&#039;t accept explicit nil values as arguments.&lt;br /&gt;
	if first then&lt;br /&gt;
		if second then&lt;br /&gt;
			if first &amp;gt; second then -- Second number cannot be less than the first, or it causes an error.&lt;br /&gt;
				first, second = second, first&lt;br /&gt;
			end&lt;br /&gt;
			return getBigRandom(first, second)&lt;br /&gt;
		else&lt;br /&gt;
			return getBigRandom(1, first)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return math.random()&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Date function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function l.date(args)&lt;br /&gt;
	-- This function gets random dates, and takes timestamps as positional arguments.&lt;br /&gt;
	-- With no arguments specified, it outputs a random date in the current year.&lt;br /&gt;
	-- With two arguments specified, it outputs a random date between the timestamps.&lt;br /&gt;
	-- With one argument specified, the date is a random date between the unix epoch (1 Jan 1970) and the timestamp.&lt;br /&gt;
	-- The output can be formatted using the &amp;quot;format&amp;quot; argument, which works in the same way as the #time parser function.&lt;br /&gt;
	-- The default format is the standard Wikipedia timestamp.&lt;br /&gt;
	local lang = mw.language.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
	local function getDate(format, ts)&lt;br /&gt;
		local success, date = pcall(lang.formatDate, lang, format, ts)&lt;br /&gt;
		if success then&lt;br /&gt;
			return date&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function getUnixTimestamp(ts)&lt;br /&gt;
		local unixts = getDate(&#039;U&#039;, ts)&lt;br /&gt;
		if unixts then&lt;br /&gt;
			return tonumber(unixts)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local t1 = args[1]&lt;br /&gt;
	local t2 = args[2]&lt;br /&gt;
	&lt;br /&gt;
	-- Find the start timestamp and the end timestamp.&lt;br /&gt;
	local startTimestamp, endTimestamp&lt;br /&gt;
	if not t1 then&lt;br /&gt;
		-- Find the first and last second in the current year.&lt;br /&gt;
		local currentYear = tonumber(getDate(&#039;Y&#039;))&lt;br /&gt;
		local currentYearStartUnix = tonumber(getUnixTimestamp(&#039;1 Jan &#039; .. tostring(currentYear)))&lt;br /&gt;
		local currentYearEndUnix = tonumber(getUnixTimestamp(&#039;1 Jan &#039; .. tostring(currentYear + 1))) - 1&lt;br /&gt;
		startTimestamp = &#039;@&#039; .. tostring(currentYearStartUnix) -- @ is used to denote Unix timestamps with lang:formatDate.&lt;br /&gt;
		endTimestamp = &#039;@&#039; .. tostring(currentYearEndUnix)&lt;br /&gt;
	elseif t1 and not t2 then&lt;br /&gt;
		startTimestamp = &#039;@0&#039; -- the Unix epoch, 1 January 1970&lt;br /&gt;
		endTimestamp = t1&lt;br /&gt;
	elseif t1 and t2 then&lt;br /&gt;
		startTimestamp = t1&lt;br /&gt;
		endTimestamp = t2&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get Unix timestamps and return errors for bad input (or for bugs in the underlying PHP library, of which there are unfortunately a few)&lt;br /&gt;
	local startTimestampUnix = getUnixTimestamp(startTimestamp)&lt;br /&gt;
	local endTimestampUnix = getUnixTimestamp(endTimestamp)&lt;br /&gt;
	if not startTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. tostring(startTimestamp) .. &#039;&amp;quot; was not recognised as a valid timestamp&#039;)&lt;br /&gt;
	elseif not endTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. tostring(endTimestamp) .. &#039;&amp;quot; was not recognised as a valid timestamp&#039;)&lt;br /&gt;
	elseif startTimestampUnix &amp;gt; endTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;the start date must not be later than the end date (start date: &amp;quot;&#039; .. startTimestamp .. &#039;&amp;quot;, end date: &amp;quot;&#039; .. endTimestamp .. &#039;&amp;quot;)&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get a random number between the two Unix timestamps and return it using the specified format.&lt;br /&gt;
	local randomTimestamp = getBigRandom(startTimestampUnix, endTimestampUnix)&lt;br /&gt;
	local dateFormat = args.format or &#039;H:i, d F Y (T)&#039;&lt;br /&gt;
	local result = getDate(dateFormat, &#039;@&#039; .. tostring(randomTimestamp))&lt;br /&gt;
	if result then&lt;br /&gt;
		return result&lt;br /&gt;
	else&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. dateFormat .. &#039;&amp;quot; is not a valid date format&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- List functions&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function randomizeArray(t, limit)&lt;br /&gt;
	-- Randomizes an array. It works by iterating through the list backwards, each time swapping the entry&lt;br /&gt;
	-- &amp;quot;i&amp;quot; with a random entry. Courtesy of Xinhuan at http://forums.wowace.com/showthread.php?p=279756&lt;br /&gt;
	-- If the limit parameter is set, the array is shortened to that many elements after being randomized.&lt;br /&gt;
	-- The lowest possible value is 0, and the highest possible is the length of the array.&lt;br /&gt;
	local len = #t&lt;br /&gt;
	for i = len, 2, -1 do&lt;br /&gt;
		local r = math.random(i)&lt;br /&gt;
		t[i], t[r] = t[r], t[i]&lt;br /&gt;
	end&lt;br /&gt;
	if limit and limit &amp;lt; len then&lt;br /&gt;
		local ret = {}&lt;br /&gt;
		for i, v in ipairs(t) do&lt;br /&gt;
			if i &amp;gt; limit then&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
			ret[i] = v&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	else&lt;br /&gt;
		return t&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function removeBlanks(t)&lt;br /&gt;
	-- Removes blank entries from an array so that it can be used with ipairs.&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for k, v in pairs(t) do&lt;br /&gt;
		if type(k) == &#039;number&#039; then&lt;br /&gt;
			table.insert(ret, k)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(ret)&lt;br /&gt;
	for i, v in ipairs(ret) do&lt;br /&gt;
		ret[i] = t[v]&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeSeparator(sep)&lt;br /&gt;
	if sep == &#039;space&#039; then&lt;br /&gt;
		-- Include an easy way to use spaces as separators.&lt;br /&gt;
		return &#039; &#039;&lt;br /&gt;
	elseif sep == &#039;newline&#039; then&lt;br /&gt;
		-- Ditto for newlines&lt;br /&gt;
		return &#039;\n&#039;&lt;br /&gt;
	elseif type(sep) == &#039;string&#039; then&lt;br /&gt;
		-- If the separator is a recognised MediaWiki separator, use that. Otherwise use the value of sep if it is a string.&lt;br /&gt;
		local mwseparators = {&#039;dot&#039;, &#039;pipe&#039;, &#039;comma&#039;, &#039;tpt-languages&#039;}&lt;br /&gt;
		for _, mwsep in ipairs(mwseparators) do&lt;br /&gt;
			if sep == mwsep then&lt;br /&gt;
				return mw.message.new( sep .. &#039;-separator&#039; ):plain()&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return sep&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeRandomList(args)&lt;br /&gt;
	local list = removeBlanks(args)&lt;br /&gt;
	list = randomizeArray(list, tonumber(args.limit))&lt;br /&gt;
	return list&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.item(args)&lt;br /&gt;
	-- Returns a random item from a numbered list.&lt;br /&gt;
	local list = removeBlanks(args)&lt;br /&gt;
	local len = #list&lt;br /&gt;
	if len &amp;gt;= 1 then&lt;br /&gt;
		return list[math.random(len)]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.list(args)&lt;br /&gt;
	-- Randomizes a list and concatenates the result with a separator.&lt;br /&gt;
	local list = makeRandomList(args)&lt;br /&gt;
	local sep = makeSeparator(args.sep or args.separator)&lt;br /&gt;
	return table.concat(list, sep)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.text_list(args)&lt;br /&gt;
	-- Randomizes a list and concatenates the result, text-style. Accepts separator and conjunction arguments.&lt;br /&gt;
	local list = makeRandomList(args)&lt;br /&gt;
	local sep = makeSeparator(args.sep or args.separator)&lt;br /&gt;
	local conj = makeSeparator(args.conj or args.conjunction)&lt;br /&gt;
	return mw.text.listToText(list, sep, conj)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.array(args)&lt;br /&gt;
	-- Returns a Lua array, randomized. For use from other Lua modules.&lt;br /&gt;
	return randomizeArray(args.t, args.limit)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- HTML list function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function l.html_list(args, listType)&lt;br /&gt;
	-- Randomizes a list and turns it into an HTML list. Uses [[Module:List]].&lt;br /&gt;
	listType = listType or &#039;bulleted&#039;&lt;br /&gt;
	local listArgs = makeRandomList(args) -- Arguments for [[Module:List]].&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &#039;string&#039; then&lt;br /&gt;
			listArgs[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return makeList(listType, listArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- The main function. Called from other Lua modules.&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.main(funcName, args, listType)&lt;br /&gt;
	-- Sets the seed for the random number generator and passes control over to the other functions.&lt;br /&gt;
	local same = yesno(args.same)&lt;br /&gt;
	if not same then&lt;br /&gt;
		-- Generates a different number every time the module is called, even from the same page.&lt;br /&gt;
		-- This is because of the variability of os.clock (the time in seconds that the Lua script has been running for).&lt;br /&gt;
		math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000))&lt;br /&gt;
	else&lt;br /&gt;
		if not cfg.lowTraffic then&lt;br /&gt;
			-- Make the seed as random as possible without using anything time-based. This means that the same random number&lt;br /&gt;
			-- will be generated for the same input from the same page - necessary behaviour for some wikicode templates that&lt;br /&gt;
			-- assume bad pseudo-random-number generation.&lt;br /&gt;
			local stats = mw.site.stats&lt;br /&gt;
			local views = stats.views or 0 -- This is not always available, so we need a backup.&lt;br /&gt;
			local seed = views + stats.pages + stats.articles + stats.files + stats.edits + stats.users + stats.activeUsers + stats.admins -- Make this as random as possible without using os.time() or os.clock()&lt;br /&gt;
			math.randomseed(seed)&lt;br /&gt;
		else&lt;br /&gt;
			-- Make the random seed change every n seconds, where n is set by cfg.seedRefreshRate.&lt;br /&gt;
			-- This is useful for low-traffic wikis where new edits may not happen very often.&lt;br /&gt;
			math.randomseed(math.floor(os.time() / cfg.seedRefreshRate))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if type(args) ~= &#039;table&#039; then&lt;br /&gt;
		error(&#039;the second argument to p.main must be a table&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return l[funcName](args, listType)&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Process arguments from #invoke&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function makeWrapper(funcName, listType)&lt;br /&gt;
	-- This function provides a wrapper for argument-processing from #invoke.&lt;br /&gt;
	-- listType is only used with p.html_list, and is nil the rest of the time.&lt;br /&gt;
	return function (frame)&lt;br /&gt;
		-- If called via #invoke, use the args passed into the invoking template, or the args passed to #invoke if any exist.&lt;br /&gt;
		-- Otherwise assume args are being passed directly in from the debug console or from another Lua module.&lt;br /&gt;
		local origArgs&lt;br /&gt;
		if frame == mw.getCurrentFrame() then&lt;br /&gt;
			origArgs = frame:getParent().args&lt;br /&gt;
			for k, v in pairs(frame.args) do&lt;br /&gt;
				origArgs = frame.args&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			origArgs = frame&lt;br /&gt;
		end&lt;br /&gt;
		-- Trim whitespace and remove blank arguments.&lt;br /&gt;
		local args = {}&lt;br /&gt;
		for k, v in pairs(origArgs) do&lt;br /&gt;
			if type(v) == &#039;string&#039; then&lt;br /&gt;
				v = mw.text.trim(v)&lt;br /&gt;
			end&lt;br /&gt;
			if v ~= &#039;&#039; then&lt;br /&gt;
				args[k] = v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return p.main(funcName, args, listType)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Process arguments for HTML list functions.&lt;br /&gt;
local htmlListFuncs = {&lt;br /&gt;
	bulleted_list           = &#039;bulleted&#039;,&lt;br /&gt;
	unbulleted_list         = &#039;unbulleted&#039;,&lt;br /&gt;
	horizontal_list         = &#039;horizontal&#039;,&lt;br /&gt;
	ordered_list            = &#039;ordered&#039;,&lt;br /&gt;
	horizontal_ordered_list = &#039;horizontal_ordered&#039;&lt;br /&gt;
}&lt;br /&gt;
for funcName, listType in pairs(htmlListFuncs) do&lt;br /&gt;
	p[funcName] = makeWrapper(&#039;html_list&#039;, listType)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Process arguments for other functions.&lt;br /&gt;
local otherFuncs = {&#039;number&#039;, &#039;date&#039;, &#039;item&#039;, &#039;list&#039;, &#039;text_list&#039;}&lt;br /&gt;
for _, funcName in ipairs(otherFuncs) do&lt;br /&gt;
	p[funcName] = makeWrapper(funcName)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee/Sandbox&amp;diff=1535</id>
		<title>User:Limeee/Sandbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee/Sandbox&amp;diff=1535"/>
		<updated>2026-10-26T22:04:22Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;paw, claw, meow, nyawr, or wyph: {{#invoke:random|item|paw|claw|meow|nyawr|wyph}}&lt;br /&gt;
&lt;br /&gt;
shuffle paw, claw, meow, nyawr, wyph: {{#invoke:random|list|paw|claw|meow|nyawr|wyph}}&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee/Sandbox&amp;diff=1534</id>
		<title>User:Limeee/Sandbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee/Sandbox&amp;diff=1534"/>
		<updated>2026-10-26T22:04:11Z</updated>

		<summary type="html">&lt;p&gt;Limeee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;paw, claw, meow, nyawr, or wyph: {{#invoke:random|item|paw|claw|meow|nyawr|wyph}}&lt;br /&gt;
shuffle paw, claw, meow, nyawr, wyph: {{#invoke:random|list|paw|claw|meow|nyawr|wyph}}&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Random&amp;diff=1529</id>
		<title>Module:Random</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Random&amp;diff=1529"/>
		<updated>2026-10-26T22:01:11Z</updated>

		<summary type="html">&lt;p&gt;Limeee: lowTraffic = true&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module contains a number of functions that make use of random numbers.&lt;br /&gt;
&lt;br /&gt;
local cfg = {}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Configuration&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- Set this to true if your wiki has a traffic rate of less than one edit every two minutes or so.&lt;br /&gt;
-- This will prevent the same &amp;quot;random&amp;quot; number being generated many times in a row until a new edit is made&lt;br /&gt;
-- to the wiki. This setting is only relevant if the |same= parameter is set.&lt;br /&gt;
cfg.lowTraffic = true&lt;br /&gt;
&lt;br /&gt;
-- If cfg.lowTraffic is set to true, and the |same= parameter is set, this value is used for the refresh rate of the random seed.&lt;br /&gt;
-- This is the number of seconds until the seed is changed. Getting this right is tricky. If you set it too high, the same number&lt;br /&gt;
-- will be returned many times in a row. If you set it too low, you may get different random numbers appearing on the same page,&lt;br /&gt;
-- particularly for pages that take many seconds to process.&lt;br /&gt;
cfg.seedRefreshRate = 60&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- End configuration&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local p = {} -- For functions available from other Lua modules.&lt;br /&gt;
local l = {} -- For functions not available from other Lua modules, but that need to be accessed using table keys.&lt;br /&gt;
&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
local makeList = require(&#039;Module:List&#039;).makeList&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function raiseError(msg)&lt;br /&gt;
	-- This helps to generate a wikitext error. It is the calling function&#039;s responsibility as to how to include it in the output.&lt;br /&gt;
	return mw.ustring.format(&#039;&amp;lt;b class=&amp;quot;error&amp;quot;&amp;gt;[[Module:Random]] error: %s.&amp;lt;/b&amp;gt;&#039;, msg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- random number function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function getBigRandom(l, u)&lt;br /&gt;
	-- Gets a random integer between l and u, and is not limited to RAND_MAX.&lt;br /&gt;
	local r = 0&lt;br /&gt;
	local n = 2^math.random(30) -- Any power of 2.&lt;br /&gt;
	local limit = math.ceil(53 / (math.log(n) / math.log(2)))&lt;br /&gt;
	for i = 1, limit do&lt;br /&gt;
		r = r + math.random(0, n - 1) / (n^i)&lt;br /&gt;
	end&lt;br /&gt;
	return math.floor(r * (u - l + 1)) + l&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.number(args)&lt;br /&gt;
	-- Gets a random number.&lt;br /&gt;
	first = tonumber(args[1])&lt;br /&gt;
	second = tonumber(args[2])&lt;br /&gt;
	-- This needs to use if statements as math.random won&#039;t accept explicit nil values as arguments.&lt;br /&gt;
	if first then&lt;br /&gt;
		if second then&lt;br /&gt;
			if first &amp;gt; second then -- Second number cannot be less than the first, or it causes an error.&lt;br /&gt;
				first, second = second, first&lt;br /&gt;
			end&lt;br /&gt;
			return getBigRandom(first, second)&lt;br /&gt;
		else&lt;br /&gt;
			return getBigRandom(1, first)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return math.random()&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Date function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function l.date(args)&lt;br /&gt;
	-- This function gets random dates, and takes timestamps as positional arguments.&lt;br /&gt;
	-- With no arguments specified, it outputs a random date in the current year.&lt;br /&gt;
	-- With two arguments specified, it outputs a random date between the timestamps.&lt;br /&gt;
	-- With one argument specified, the date is a random date between the unix epoch (1 Jan 1970) and the timestamp.&lt;br /&gt;
	-- The output can be formatted using the &amp;quot;format&amp;quot; argument, which works in the same way as the #time parser function.&lt;br /&gt;
	-- The default format is the standard Wikipedia timestamp.&lt;br /&gt;
	local lang = mw.language.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
	local function getDate(format, ts)&lt;br /&gt;
		local success, date = pcall(lang.formatDate, lang, format, ts)&lt;br /&gt;
		if success then&lt;br /&gt;
			return date&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function getUnixTimestamp(ts)&lt;br /&gt;
		local unixts = getDate(&#039;U&#039;, ts)&lt;br /&gt;
		if unixts then&lt;br /&gt;
			return tonumber(unixts)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local t1 = args[1]&lt;br /&gt;
	local t2 = args[2]&lt;br /&gt;
	&lt;br /&gt;
	-- Find the start timestamp and the end timestamp.&lt;br /&gt;
	local startTimestamp, endTimestamp&lt;br /&gt;
	if not t1 then&lt;br /&gt;
		-- Find the first and last second in the current year.&lt;br /&gt;
		local currentYear = tonumber(getDate(&#039;Y&#039;))&lt;br /&gt;
		local currentYearStartUnix = tonumber(getUnixTimestamp(&#039;1 Jan &#039; .. tostring(currentYear)))&lt;br /&gt;
		local currentYearEndUnix = tonumber(getUnixTimestamp(&#039;1 Jan &#039; .. tostring(currentYear + 1))) - 1&lt;br /&gt;
		startTimestamp = &#039;@&#039; .. tostring(currentYearStartUnix) -- @ is used to denote Unix timestamps with lang:formatDate.&lt;br /&gt;
		endTimestamp = &#039;@&#039; .. tostring(currentYearEndUnix)&lt;br /&gt;
	elseif t1 and not t2 then&lt;br /&gt;
		startTimestamp = &#039;@0&#039; -- the Unix epoch, 1 January 1970&lt;br /&gt;
		endTimestamp = t1&lt;br /&gt;
	elseif t1 and t2 then&lt;br /&gt;
		startTimestamp = t1&lt;br /&gt;
		endTimestamp = t2&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get Unix timestamps and return errors for bad input (or for bugs in the underlying PHP library, of which there are unfortunately a few)&lt;br /&gt;
	local startTimestampUnix = getUnixTimestamp(startTimestamp)&lt;br /&gt;
	local endTimestampUnix = getUnixTimestamp(endTimestamp)&lt;br /&gt;
	if not startTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. tostring(startTimestamp) .. &#039;&amp;quot; was not recognised as a valid timestamp&#039;)&lt;br /&gt;
	elseif not endTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. tostring(endTimestamp) .. &#039;&amp;quot; was not recognised as a valid timestamp&#039;)&lt;br /&gt;
	elseif startTimestampUnix &amp;gt; endTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;the start date must not be later than the end date (start date: &amp;quot;&#039; .. startTimestamp .. &#039;&amp;quot;, end date: &amp;quot;&#039; .. endTimestamp .. &#039;&amp;quot;)&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get a random number between the two Unix timestamps and return it using the specified format.&lt;br /&gt;
	local randomTimestamp = getBigRandom(startTimestampUnix, endTimestampUnix)&lt;br /&gt;
	local dateFormat = args.format or &#039;H:i, d F Y (T)&#039;&lt;br /&gt;
	local result = getDate(dateFormat, &#039;@&#039; .. tostring(randomTimestamp))&lt;br /&gt;
	if result then&lt;br /&gt;
		return result&lt;br /&gt;
	else&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. dateFormat .. &#039;&amp;quot; is not a valid date format&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- List functions&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function randomizeArray(t, limit)&lt;br /&gt;
	-- Randomizes an array. It works by iterating through the list backwards, each time swapping the entry&lt;br /&gt;
	-- &amp;quot;i&amp;quot; with a random entry. Courtesy of Xinhuan at http://forums.wowace.com/showthread.php?p=279756&lt;br /&gt;
	-- If the limit parameter is set, the array is shortened to that many elements after being randomized.&lt;br /&gt;
	-- The lowest possible value is 0, and the highest possible is the length of the array.&lt;br /&gt;
	local len = #t&lt;br /&gt;
	for i = len, 2, -1 do&lt;br /&gt;
		local r = math.random(i)&lt;br /&gt;
		t[i], t[r] = t[r], t[i]&lt;br /&gt;
	end&lt;br /&gt;
	if limit and limit &amp;lt; len then&lt;br /&gt;
		local ret = {}&lt;br /&gt;
		for i, v in ipairs(t) do&lt;br /&gt;
			if i &amp;gt; limit then&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
			ret[i] = v&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	else&lt;br /&gt;
		return t&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function removeBlanks(t)&lt;br /&gt;
	-- Removes blank entries from an array so that it can be used with ipairs.&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for k, v in pairs(t) do&lt;br /&gt;
		if type(k) == &#039;number&#039; then&lt;br /&gt;
			table.insert(ret, k)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(ret)&lt;br /&gt;
	for i, v in ipairs(ret) do&lt;br /&gt;
		ret[i] = t[v]&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeSeparator(sep)&lt;br /&gt;
	if sep == &#039;space&#039; then&lt;br /&gt;
		-- Include an easy way to use spaces as separators.&lt;br /&gt;
		return &#039; &#039;&lt;br /&gt;
	elseif sep == &#039;newline&#039; then&lt;br /&gt;
		-- Ditto for newlines&lt;br /&gt;
		return &#039;\n&#039;&lt;br /&gt;
	elseif type(sep) == &#039;string&#039; then&lt;br /&gt;
		-- If the separator is a recognised MediaWiki separator, use that. Otherwise use the value of sep if it is a string.&lt;br /&gt;
		local mwseparators = {&#039;dot&#039;, &#039;pipe&#039;, &#039;comma&#039;, &#039;tpt-languages&#039;}&lt;br /&gt;
		for _, mwsep in ipairs(mwseparators) do&lt;br /&gt;
			if sep == mwsep then&lt;br /&gt;
				return mw.message.new( sep .. &#039;-separator&#039; ):plain()&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return sep&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeRandomList(args)&lt;br /&gt;
	local list = removeBlanks(args)&lt;br /&gt;
	list = randomizeArray(list, tonumber(args.limit))&lt;br /&gt;
	return list&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.item(args)&lt;br /&gt;
	-- Returns a random item from a numbered list.&lt;br /&gt;
	local list = removeBlanks(args)&lt;br /&gt;
	local len = #list&lt;br /&gt;
	if len &amp;gt;= 1 then&lt;br /&gt;
		return list[math.random(len)]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.list(args)&lt;br /&gt;
	-- Randomizes a list and concatenates the result with a separator.&lt;br /&gt;
	local list = makeRandomList(args)&lt;br /&gt;
	local sep = makeSeparator(args.sep or args.separator)&lt;br /&gt;
	return table.concat(list, sep)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.text_list(args)&lt;br /&gt;
	-- Randomizes a list and concatenates the result, text-style. Accepts separator and conjunction arguments.&lt;br /&gt;
	local list = makeRandomList(args)&lt;br /&gt;
	local sep = makeSeparator(args.sep or args.separator)&lt;br /&gt;
	local conj = makeSeparator(args.conj or args.conjunction)&lt;br /&gt;
	return mw.text.listToText(list, sep, conj)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.array(args)&lt;br /&gt;
	-- Returns a Lua array, randomized. For use from other Lua modules.&lt;br /&gt;
	return randomizeArray(args.t, args.limit)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- HTML list function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function l.html_list(args, listType)&lt;br /&gt;
	-- Randomizes a list and turns it into an HTML list. Uses [[Module:List]].&lt;br /&gt;
	listType = listType or &#039;bulleted&#039;&lt;br /&gt;
	local listArgs = makeRandomList(args) -- Arguments for [[Module:List]].&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &#039;string&#039; then&lt;br /&gt;
			listArgs[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return makeList(listType, listArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- The main function. Called from other Lua modules.&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.main(funcName, args, listType)&lt;br /&gt;
	-- Sets the seed for the random number generator and passes control over to the other functions.&lt;br /&gt;
	local same = yesno(args.same)&lt;br /&gt;
	if not same then&lt;br /&gt;
		-- Generates a different number every time the module is called, even from the same page.&lt;br /&gt;
		-- This is because of the variability of os.clock (the time in seconds that the Lua script has been running for).&lt;br /&gt;
		math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000))&lt;br /&gt;
	else&lt;br /&gt;
		if not cfg.lowTraffic then&lt;br /&gt;
			-- Make the seed as random as possible without using anything time-based. This means that the same random number&lt;br /&gt;
			-- will be generated for the same input from the same page - necessary behaviour for some wikicode templates that&lt;br /&gt;
			-- assume bad pseudo-random-number generation.&lt;br /&gt;
			local stats = mw.site.stats&lt;br /&gt;
			local views = stats.views or 0 -- This is not always available, so we need a backup.&lt;br /&gt;
			local seed = views + stats.pages + stats.articles + stats.files + stats.edits + stats.users + stats.activeUsers + stats.admins -- Make this as random as possible without using os.time() or os.clock()&lt;br /&gt;
			math.randomseed(seed)&lt;br /&gt;
		else&lt;br /&gt;
			-- Make the random seed change every n seconds, where n is set by cfg.seedRefreshRate.&lt;br /&gt;
			-- This is useful for low-traffic wikis where new edits may not happen very often.&lt;br /&gt;
			math.randomseed(math.floor(os.time() / cfg.seedRefreshRate))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if type(args) ~= &#039;table&#039; then&lt;br /&gt;
		error(&#039;the second argument to p.main must be a table&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return l[funcName](args, listType)&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Process arguments from #invoke&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function makeWrapper(funcName, listType)&lt;br /&gt;
	-- This function provides a wrapper for argument-processing from #invoke.&lt;br /&gt;
	-- listType is only used with p.html_list, and is nil the rest of the time.&lt;br /&gt;
	return function (frame)&lt;br /&gt;
		-- If called via #invoke, use the args passed into the invoking template, or the args passed to #invoke if any exist.&lt;br /&gt;
		-- Otherwise assume args are being passed directly in from the debug console or from another Lua module.&lt;br /&gt;
		local origArgs&lt;br /&gt;
		if frame == mw.getCurrentFrame() then&lt;br /&gt;
			origArgs = frame:getParent().args&lt;br /&gt;
			for k, v in pairs(frame.args) do&lt;br /&gt;
				origArgs = frame.args&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			origArgs = frame&lt;br /&gt;
		end&lt;br /&gt;
		-- Trim whitespace and remove blank arguments.&lt;br /&gt;
		local args = {}&lt;br /&gt;
		for k, v in pairs(origArgs) do&lt;br /&gt;
			if type(v) == &#039;string&#039; then&lt;br /&gt;
				v = mw.text.trim(v)&lt;br /&gt;
			end&lt;br /&gt;
			if v ~= &#039;&#039; then&lt;br /&gt;
				args[k] = v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return p.main(funcName, args, listType)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Process arguments for HTML list functions.&lt;br /&gt;
local htmlListFuncs = {&lt;br /&gt;
	bulleted_list           = &#039;bulleted&#039;,&lt;br /&gt;
	unbulleted_list         = &#039;unbulleted&#039;,&lt;br /&gt;
	horizontal_list         = &#039;horizontal&#039;,&lt;br /&gt;
	ordered_list            = &#039;ordered&#039;,&lt;br /&gt;
	horizontal_ordered_list = &#039;horizontal_ordered&#039;&lt;br /&gt;
}&lt;br /&gt;
for funcName, listType in pairs(htmlListFuncs) do&lt;br /&gt;
	p[funcName] = makeWrapper(&#039;html_list&#039;, listType)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Process arguments for other functions.&lt;br /&gt;
local otherFuncs = {&#039;number&#039;, &#039;date&#039;, &#039;item&#039;, &#039;list&#039;, &#039;text_list&#039;}&lt;br /&gt;
for _, funcName in ipairs(otherFuncs) do&lt;br /&gt;
	p[funcName] = makeWrapper(funcName)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=User:Limeee/Sandbox&amp;diff=1528</id>
		<title>User:Limeee/Sandbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=User:Limeee/Sandbox&amp;diff=1528"/>
		<updated>2026-10-26T22:00:39Z</updated>

		<summary type="html">&lt;p&gt;Limeee: Created page with &amp;quot;paw, claw, or meow: {{#invoke:random|item|paw|claw|meow}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;paw, claw, or meow: {{#invoke:random|item|paw|claw|meow}}&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Exponential_search&amp;diff=1527</id>
		<title>Module:Exponential search</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Exponential_search&amp;diff=1527"/>
		<updated>2026-10-26T21:59:22Z</updated>

		<summary type="html">&lt;p&gt;Limeee: ciooyp fpfrom ikenglish wikipdiade&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module provides a generic exponential search algorithm.&lt;br /&gt;
require[[strict]]&lt;br /&gt;
&lt;br /&gt;
local checkType = require(&#039;libraryUtil&#039;).checkType&lt;br /&gt;
local floor = math.floor&lt;br /&gt;
&lt;br /&gt;
local function midPoint(lower, upper)&lt;br /&gt;
	return floor(lower + (upper - lower) / 2)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function search(testFunc, i, lower, upper)&lt;br /&gt;
	if testFunc(i) then&lt;br /&gt;
		if i + 1 == upper then&lt;br /&gt;
			return i&lt;br /&gt;
		end&lt;br /&gt;
		lower = i&lt;br /&gt;
		if upper then&lt;br /&gt;
			i = midPoint(lower, upper)&lt;br /&gt;
		else&lt;br /&gt;
			i = i * 2&lt;br /&gt;
		end&lt;br /&gt;
		return search(testFunc, i, lower, upper)&lt;br /&gt;
	else&lt;br /&gt;
		upper = i&lt;br /&gt;
		i = midPoint(lower, upper)&lt;br /&gt;
		return search(testFunc, i, lower, upper)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return function (testFunc, init)&lt;br /&gt;
	checkType(&#039;Exponential search&#039;, 1, testFunc, &#039;function&#039;)&lt;br /&gt;
	checkType(&#039;Exponential search&#039;, 2, init, &#039;number&#039;, true)&lt;br /&gt;
	if init and (init &amp;lt; 1 or init ~= floor(init) or init == math.huge) then&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;invalid init value &#039;%s&#039; detected in argument #2 to &amp;quot; ..&lt;br /&gt;
			&amp;quot;&#039;Exponential search&#039; (init value must be a positive integer)&amp;quot;,&lt;br /&gt;
			tostring(init)&lt;br /&gt;
		), 2)&lt;br /&gt;
	end&lt;br /&gt;
	init = init or 2&lt;br /&gt;
	if not testFunc(1) then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	return search(testFunc, init, 1, nil)&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Arguments&amp;diff=1526</id>
		<title>Module:Arguments</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Arguments&amp;diff=1526"/>
		<updated>2026-10-26T21:59:00Z</updated>

		<summary type="html">&lt;p&gt;Limeee: copy from English Wikipediuuuuuuughhhh&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module provides easy processing of arguments passed to Scribunto from&lt;br /&gt;
-- #invoke. It is intended for use by other Lua modules, and should not be&lt;br /&gt;
-- called from #invoke directly.&lt;br /&gt;
&lt;br /&gt;
local libraryUtil = require(&#039;libraryUtil&#039;)&lt;br /&gt;
local checkType = libraryUtil.checkType&lt;br /&gt;
&lt;br /&gt;
local arguments = {}&lt;br /&gt;
&lt;br /&gt;
-- Generate four different tidyVal functions, so that we don&#039;t have to check the&lt;br /&gt;
-- options every time we call it.&lt;br /&gt;
&lt;br /&gt;
local function tidyValDefault(key, val)&lt;br /&gt;
	if type(val) == &#039;string&#039; then&lt;br /&gt;
		val = val:match(&#039;^%s*(.-)%s*$&#039;)&lt;br /&gt;
		if val == &#039;&#039; then&lt;br /&gt;
			return nil&lt;br /&gt;
		else&lt;br /&gt;
			return val&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return val&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function tidyValTrimOnly(key, val)&lt;br /&gt;
	if type(val) == &#039;string&#039; then&lt;br /&gt;
		return val:match(&#039;^%s*(.-)%s*$&#039;)&lt;br /&gt;
	else&lt;br /&gt;
		return val&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function tidyValRemoveBlanksOnly(key, val)&lt;br /&gt;
	if type(val) == &#039;string&#039; then&lt;br /&gt;
		if val:find(&#039;%S&#039;) then&lt;br /&gt;
			return val&lt;br /&gt;
		else&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return val&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function tidyValNoChange(key, val)&lt;br /&gt;
	return val&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function matchesTitle(given, title)&lt;br /&gt;
	local tp = type( given )&lt;br /&gt;
	return (tp == &#039;string&#039; or tp == &#039;number&#039;) and mw.title.new( given ).prefixedText == title&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local translate_mt = { __index = function(t, k) return k end }&lt;br /&gt;
&lt;br /&gt;
function arguments.getArgs(frame, options)&lt;br /&gt;
	checkType(&#039;getArgs&#039;, 1, frame, &#039;table&#039;, true)&lt;br /&gt;
	checkType(&#039;getArgs&#039;, 2, options, &#039;table&#039;, true)&lt;br /&gt;
	frame = frame or {}&lt;br /&gt;
	options = options or {}&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Set up argument translation.&lt;br /&gt;
	--]]&lt;br /&gt;
	options.translate = options.translate or {}&lt;br /&gt;
	if getmetatable(options.translate) == nil then&lt;br /&gt;
		setmetatable(options.translate, translate_mt)&lt;br /&gt;
	end&lt;br /&gt;
	if options.backtranslate == nil then&lt;br /&gt;
		options.backtranslate = {}&lt;br /&gt;
		for k,v in pairs(options.translate) do&lt;br /&gt;
			options.backtranslate[v] = k&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if options.backtranslate and getmetatable(options.backtranslate) == nil then&lt;br /&gt;
		setmetatable(options.backtranslate, {&lt;br /&gt;
			__index = function(t, k)&lt;br /&gt;
				if options.translate[k] ~= k then&lt;br /&gt;
					return nil&lt;br /&gt;
				else&lt;br /&gt;
					return k&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Get the argument tables. If we were passed a valid frame object, get the&lt;br /&gt;
	-- frame arguments (fargs) and the parent frame arguments (pargs), depending&lt;br /&gt;
	-- on the options set and on the parent frame&#039;s availability. If we weren&#039;t&lt;br /&gt;
	-- passed a valid frame object, we are being called from another Lua module&lt;br /&gt;
	-- or from the debug console, so assume that we were passed a table of args&lt;br /&gt;
	-- directly, and assign it to a new variable (luaArgs).&lt;br /&gt;
	--]]&lt;br /&gt;
	local fargs, pargs, luaArgs&lt;br /&gt;
	if type(frame.args) == &#039;table&#039; and type(frame.getParent) == &#039;function&#039; then&lt;br /&gt;
		if options.wrappers then&lt;br /&gt;
			--[[&lt;br /&gt;
			-- The wrappers option makes Module:Arguments look up arguments in&lt;br /&gt;
			-- either the frame argument table or the parent argument table, but&lt;br /&gt;
			-- not both. This means that users can use either the #invoke syntax&lt;br /&gt;
			-- or a wrapper template without the loss of performance associated&lt;br /&gt;
			-- with looking arguments up in both the frame and the parent frame.&lt;br /&gt;
			-- Module:Arguments will look up arguments in the parent frame&lt;br /&gt;
			-- if it finds the parent frame&#039;s title in options.wrapper;&lt;br /&gt;
			-- otherwise it will look up arguments in the frame object passed&lt;br /&gt;
			-- to getArgs.&lt;br /&gt;
			--]]&lt;br /&gt;
			local parent = frame:getParent()&lt;br /&gt;
			if not parent then&lt;br /&gt;
				fargs = frame.args&lt;br /&gt;
			else&lt;br /&gt;
				local title = parent:getTitle():gsub(&#039;/sandbox$&#039;, &#039;&#039;)&lt;br /&gt;
				local found = false&lt;br /&gt;
				if matchesTitle(options.wrappers, title) then&lt;br /&gt;
					found = true&lt;br /&gt;
				elseif type(options.wrappers) == &#039;table&#039; then&lt;br /&gt;
					for _,v in pairs(options.wrappers) do&lt;br /&gt;
						if matchesTitle(v, title) then&lt;br /&gt;
							found = true&lt;br /&gt;
							break&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				-- We test for false specifically here so that nil (the default) acts like true.&lt;br /&gt;
				if found or options.frameOnly == false then&lt;br /&gt;
					pargs = parent.args&lt;br /&gt;
				end&lt;br /&gt;
				if not found or options.parentOnly == false then&lt;br /&gt;
					fargs = frame.args&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			-- options.wrapper isn&#039;t set, so check the other options.&lt;br /&gt;
			if not options.parentOnly then&lt;br /&gt;
				fargs = frame.args&lt;br /&gt;
			end&lt;br /&gt;
			if not options.frameOnly then&lt;br /&gt;
				local parent = frame:getParent()&lt;br /&gt;
				pargs = parent and parent.args or nil&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if options.parentFirst then&lt;br /&gt;
			fargs, pargs = pargs, fargs&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		luaArgs = frame&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set the order of precedence of the argument tables. If the variables are&lt;br /&gt;
	-- nil, nothing will be added to the table, which is how we avoid clashes&lt;br /&gt;
	-- between the frame/parent args and the Lua args.&lt;br /&gt;
	local argTables = {fargs}&lt;br /&gt;
	argTables[#argTables + 1] = pargs&lt;br /&gt;
	argTables[#argTables + 1] = luaArgs&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Generate the tidyVal function. If it has been specified by the user, we&lt;br /&gt;
	-- use that; if not, we choose one of four functions depending on the&lt;br /&gt;
	-- options chosen. This is so that we don&#039;t have to call the options table&lt;br /&gt;
	-- every time the function is called.&lt;br /&gt;
	--]]&lt;br /&gt;
	local tidyVal = options.valueFunc&lt;br /&gt;
	if tidyVal then&lt;br /&gt;
		if type(tidyVal) ~= &#039;function&#039; then&lt;br /&gt;
			error(&lt;br /&gt;
				&amp;quot;bad value assigned to option &#039;valueFunc&#039;&amp;quot;&lt;br /&gt;
					.. &#039;(function expected, got &#039;&lt;br /&gt;
					.. type(tidyVal)&lt;br /&gt;
					.. &#039;)&#039;,&lt;br /&gt;
				2&lt;br /&gt;
			)&lt;br /&gt;
		end&lt;br /&gt;
	elseif options.trim ~= false then&lt;br /&gt;
		if options.removeBlanks ~= false then&lt;br /&gt;
			tidyVal = tidyValDefault&lt;br /&gt;
		else&lt;br /&gt;
			tidyVal = tidyValTrimOnly&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if options.removeBlanks ~= false then&lt;br /&gt;
			tidyVal = tidyValRemoveBlanksOnly&lt;br /&gt;
		else&lt;br /&gt;
			tidyVal = tidyValNoChange&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Set up the args, metaArgs and nilArgs tables. args will be the one&lt;br /&gt;
	-- accessed from functions, and metaArgs will hold the actual arguments. Nil&lt;br /&gt;
	-- arguments are memoized in nilArgs, and the metatable connects all of them&lt;br /&gt;
	-- together.&lt;br /&gt;
	--]]&lt;br /&gt;
	local args, metaArgs, nilArgs, metatable = {}, {}, {}, {}&lt;br /&gt;
	setmetatable(args, metatable)&lt;br /&gt;
&lt;br /&gt;
	local function mergeArgs(tables)&lt;br /&gt;
		--[[&lt;br /&gt;
		-- Accepts multiple tables as input and merges their keys and values&lt;br /&gt;
		-- into one table. If a value is already present it is not overwritten;&lt;br /&gt;
		-- tables listed earlier have precedence. We are also memoizing nil&lt;br /&gt;
		-- values, which can be overwritten if they are &#039;s&#039; (soft).&lt;br /&gt;
		--]]&lt;br /&gt;
		for _, t in ipairs(tables) do&lt;br /&gt;
			for key, val in pairs(t) do&lt;br /&gt;
				if metaArgs[key] == nil and nilArgs[key] ~= &#039;h&#039; then&lt;br /&gt;
					local tidiedVal = tidyVal(key, val)&lt;br /&gt;
					if tidiedVal == nil then&lt;br /&gt;
						nilArgs[key] = &#039;s&#039;&lt;br /&gt;
					else&lt;br /&gt;
						metaArgs[key] = tidiedVal&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--[[&lt;br /&gt;
	-- Define metatable behaviour. Arguments are memoized in the metaArgs table,&lt;br /&gt;
	-- and are only fetched from the argument tables once. Fetching arguments&lt;br /&gt;
	-- from the argument tables is the most resource-intensive step in this&lt;br /&gt;
	-- module, so we try and avoid it where possible. For this reason, nil&lt;br /&gt;
	-- arguments are also memoized, in the nilArgs table. Also, we keep a record&lt;br /&gt;
	-- in the metatable of when pairs and ipairs have been called, so we do not&lt;br /&gt;
	-- run pairs and ipairs on the argument tables more than once. We also do&lt;br /&gt;
	-- not run ipairs on fargs and pargs if pairs has already been run, as all&lt;br /&gt;
	-- the arguments will already have been copied over.&lt;br /&gt;
	--]]&lt;br /&gt;
&lt;br /&gt;
	metatable.__index = function (t, key)&lt;br /&gt;
		--[[&lt;br /&gt;
		-- Fetches an argument when the args table is indexed. First we check&lt;br /&gt;
		-- to see if the value is memoized, and if not we try and fetch it from&lt;br /&gt;
		-- the argument tables. When we check memoization, we need to check&lt;br /&gt;
		-- metaArgs before nilArgs, as both can be non-nil at the same time.&lt;br /&gt;
		-- If the argument is not present in metaArgs, we also check whether&lt;br /&gt;
		-- pairs has been run yet. If pairs has already been run, we return nil.&lt;br /&gt;
		-- This is because all the arguments will have already been copied into&lt;br /&gt;
		-- metaArgs by the mergeArgs function, meaning that any other arguments&lt;br /&gt;
		-- must be nil.&lt;br /&gt;
		--]]&lt;br /&gt;
		if type(key) == &#039;string&#039; then&lt;br /&gt;
			key = options.translate[key]&lt;br /&gt;
		end&lt;br /&gt;
		local val = metaArgs[key]&lt;br /&gt;
		if val ~= nil then&lt;br /&gt;
			return val&lt;br /&gt;
		elseif metatable.donePairs or nilArgs[key] then&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		for _, argTable in ipairs(argTables) do&lt;br /&gt;
			local argTableVal = tidyVal(key, argTable[key])&lt;br /&gt;
			if argTableVal ~= nil then&lt;br /&gt;
				metaArgs[key] = argTableVal&lt;br /&gt;
				return argTableVal&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		nilArgs[key] = &#039;h&#039;&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	metatable.__newindex = function (t, key, val)&lt;br /&gt;
		-- This function is called when a module tries to add a new value to the&lt;br /&gt;
		-- args table, or tries to change an existing value.&lt;br /&gt;
		if type(key) == &#039;string&#039; then&lt;br /&gt;
			key = options.translate[key]&lt;br /&gt;
		end&lt;br /&gt;
		if options.readOnly then&lt;br /&gt;
			error(&lt;br /&gt;
				&#039;could not write to argument table key &amp;quot;&#039;&lt;br /&gt;
					.. tostring(key)&lt;br /&gt;
					.. &#039;&amp;quot;; the table is read-only&#039;,&lt;br /&gt;
				2&lt;br /&gt;
			)&lt;br /&gt;
		elseif options.noOverwrite and args[key] ~= nil then&lt;br /&gt;
			error(&lt;br /&gt;
				&#039;could not write to argument table key &amp;quot;&#039;&lt;br /&gt;
					.. tostring(key)&lt;br /&gt;
					.. &#039;&amp;quot;; overwriting existing arguments is not permitted&#039;,&lt;br /&gt;
				2&lt;br /&gt;
			)&lt;br /&gt;
		elseif val == nil then&lt;br /&gt;
			--[[&lt;br /&gt;
			-- If the argument is to be overwritten with nil, we need to erase&lt;br /&gt;
			-- the value in metaArgs, so that __index, __pairs and __ipairs do&lt;br /&gt;
			-- not use a previous existing value, if present; and we also need&lt;br /&gt;
			-- to memoize the nil in nilArgs, so that the value isn&#039;t looked&lt;br /&gt;
			-- up in the argument tables if it is accessed again.&lt;br /&gt;
			--]]&lt;br /&gt;
			metaArgs[key] = nil&lt;br /&gt;
			nilArgs[key] = &#039;h&#039;&lt;br /&gt;
		else&lt;br /&gt;
			metaArgs[key] = val&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function translatenext(invariant)&lt;br /&gt;
		local k, v = next(invariant.t, invariant.k)&lt;br /&gt;
		invariant.k = k&lt;br /&gt;
		if k == nil then&lt;br /&gt;
			return nil&lt;br /&gt;
		elseif type(k) ~= &#039;string&#039; or not options.backtranslate then&lt;br /&gt;
			return k, v&lt;br /&gt;
		else&lt;br /&gt;
			local backtranslate = options.backtranslate[k]&lt;br /&gt;
			if backtranslate == nil then&lt;br /&gt;
				-- Skip this one. This is a tail call, so this won&#039;t cause stack overflow&lt;br /&gt;
				return translatenext(invariant)&lt;br /&gt;
			else&lt;br /&gt;
				return backtranslate, v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	metatable.__pairs = function ()&lt;br /&gt;
		-- Called when pairs is run on the args table.&lt;br /&gt;
		if not metatable.donePairs then&lt;br /&gt;
			mergeArgs(argTables)&lt;br /&gt;
			metatable.donePairs = true&lt;br /&gt;
		end&lt;br /&gt;
		return translatenext, { t = metaArgs }&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function inext(t, i)&lt;br /&gt;
		-- This uses our __index metamethod&lt;br /&gt;
		local v = t[i + 1]&lt;br /&gt;
		if v ~= nil then&lt;br /&gt;
			return i + 1, v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	metatable.__ipairs = function (t)&lt;br /&gt;
		-- Called when ipairs is run on the args table.&lt;br /&gt;
		return inext, t, 0&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return args&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return arguments&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:TableTools&amp;diff=1525</id>
		<title>Module:TableTools</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:TableTools&amp;diff=1525"/>
		<updated>2026-10-26T21:58:11Z</updated>

		<summary type="html">&lt;p&gt;Limeee: copy from English Wikipedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;------------------------------------------------------------------------------------&lt;br /&gt;
--                                   TableTools                                   --&lt;br /&gt;
--                                                                                --&lt;br /&gt;
-- This module includes a number of functions for dealing with Lua tables.        --&lt;br /&gt;
-- It is a meta-module, meant to be called from other Lua modules, and should not --&lt;br /&gt;
-- be called directly from #invoke.                                               --&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local libraryUtil = require(&#039;libraryUtil&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Define often-used variables and functions.&lt;br /&gt;
local floor = math.floor&lt;br /&gt;
local infinity = math.huge&lt;br /&gt;
local checkType = libraryUtil.checkType&lt;br /&gt;
local checkTypeMulti = libraryUtil.checkTypeMulti&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- isPositiveInteger&lt;br /&gt;
--&lt;br /&gt;
-- This function returns true if the given value is a positive integer, and false&lt;br /&gt;
-- if not. Although it doesn&#039;t operate on tables, it is included here as it is&lt;br /&gt;
-- useful for determining whether a given table key is in the array part or the&lt;br /&gt;
-- hash part of a table.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.isPositiveInteger(v)&lt;br /&gt;
	return type(v) == &#039;number&#039; and v &amp;gt;= 1 and floor(v) == v and v &amp;lt; infinity&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- isNan&lt;br /&gt;
--&lt;br /&gt;
-- This function returns true if the given number is a NaN value, and false if&lt;br /&gt;
-- not. Although it doesn&#039;t operate on tables, it is included here as it is useful&lt;br /&gt;
-- for determining whether a value can be a valid table key. Lua will generate an&lt;br /&gt;
-- error if a NaN is used as a table key.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.isNan(v)&lt;br /&gt;
	return type(v) == &#039;number&#039; and v ~= v&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- shallowClone&lt;br /&gt;
--&lt;br /&gt;
-- This returns a clone of a table. The value returned is a new table, but all&lt;br /&gt;
-- subtables and functions are shared. Metamethods are respected, but the returned&lt;br /&gt;
-- table will have no metatable of its own.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.shallowClone(t)&lt;br /&gt;
	checkType(&#039;shallowClone&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for k, v in pairs(t) do&lt;br /&gt;
		ret[k] = v&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- removeDuplicates&lt;br /&gt;
--&lt;br /&gt;
-- This removes duplicate values from an array. Non-positive-integer keys are&lt;br /&gt;
-- ignored. The earliest value is kept, and all subsequent duplicate values are&lt;br /&gt;
-- removed, but otherwise the array order is unchanged.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.removeDuplicates(arr)&lt;br /&gt;
	checkType(&#039;removeDuplicates&#039;, 1, arr, &#039;table&#039;)&lt;br /&gt;
	local isNan = p.isNan&lt;br /&gt;
	local ret, exists = {}, {}&lt;br /&gt;
	for _, v in ipairs(arr) do&lt;br /&gt;
		if isNan(v) then&lt;br /&gt;
			-- NaNs can&#039;t be table keys, and they are also unique, so we don&#039;t need to check existence.&lt;br /&gt;
			ret[#ret + 1] = v&lt;br /&gt;
		elseif not exists[v] then&lt;br /&gt;
			ret[#ret + 1] = v&lt;br /&gt;
			exists[v] = true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- numKeys&lt;br /&gt;
--&lt;br /&gt;
-- This takes a table and returns an array containing the numbers of any numerical&lt;br /&gt;
-- keys that have non-nil values, sorted in numerical order.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.numKeys(t)&lt;br /&gt;
	checkType(&#039;numKeys&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	local isPositiveInteger = p.isPositiveInteger&lt;br /&gt;
	local nums = {}&lt;br /&gt;
	for k in pairs(t) do&lt;br /&gt;
		if isPositiveInteger(k) then&lt;br /&gt;
			nums[#nums + 1] = k&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(nums)&lt;br /&gt;
	return nums&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- affixNums&lt;br /&gt;
--&lt;br /&gt;
-- This takes a table and returns an array containing the numbers of keys with the&lt;br /&gt;
-- specified prefix and suffix. For example, for the table&lt;br /&gt;
-- {a1 = &#039;foo&#039;, a3 = &#039;bar&#039;, a6 = &#039;baz&#039;} and the prefix &amp;quot;a&amp;quot;, affixNums will return&lt;br /&gt;
-- {1, 3, 6}.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.affixNums(t, prefix, suffix)&lt;br /&gt;
	checkType(&#039;affixNums&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	checkType(&#039;affixNums&#039;, 2, prefix, &#039;string&#039;, true)&lt;br /&gt;
	checkType(&#039;affixNums&#039;, 3, suffix, &#039;string&#039;, true)&lt;br /&gt;
&lt;br /&gt;
	local function cleanPattern(s)&lt;br /&gt;
		-- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally.&lt;br /&gt;
		return s:gsub(&#039;([%(%)%%%.%[%]%*%+%-%?%^%$])&#039;, &#039;%%%1&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	prefix = prefix or &#039;&#039;&lt;br /&gt;
	suffix = suffix or &#039;&#039;&lt;br /&gt;
	prefix = cleanPattern(prefix)&lt;br /&gt;
	suffix = cleanPattern(suffix)&lt;br /&gt;
	local pattern = &#039;^&#039; .. prefix .. &#039;([1-9]%d*)&#039; .. suffix .. &#039;$&#039;&lt;br /&gt;
&lt;br /&gt;
	local nums = {}&lt;br /&gt;
	for k in pairs(t) do&lt;br /&gt;
		if type(k) == &#039;string&#039; then&lt;br /&gt;
			local num = mw.ustring.match(k, pattern)&lt;br /&gt;
			if num then&lt;br /&gt;
				nums[#nums + 1] = tonumber(num)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(nums)&lt;br /&gt;
	return nums&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- numData&lt;br /&gt;
--&lt;br /&gt;
-- Given a table with keys like {&amp;quot;foo1&amp;quot;, &amp;quot;bar1&amp;quot;, &amp;quot;foo2&amp;quot;, &amp;quot;baz2&amp;quot;}, returns a table&lt;br /&gt;
-- of subtables in the format&lt;br /&gt;
-- {[1] = {foo = &#039;text&#039;, bar = &#039;text&#039;}, [2] = {foo = &#039;text&#039;, baz = &#039;text&#039;}}.&lt;br /&gt;
-- Keys that don&#039;t end with an integer are stored in a subtable named &amp;quot;other&amp;quot;. The&lt;br /&gt;
-- compress option compresses the table so that it can be iterated over with&lt;br /&gt;
-- ipairs.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.numData(t, compress)&lt;br /&gt;
	checkType(&#039;numData&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	checkType(&#039;numData&#039;, 2, compress, &#039;boolean&#039;, true)&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for k, v in pairs(t) do&lt;br /&gt;
		local prefix, num = mw.ustring.match(tostring(k), &#039;^([^0-9]*)([1-9][0-9]*)$&#039;)&lt;br /&gt;
		if num then&lt;br /&gt;
			num = tonumber(num)&lt;br /&gt;
			local subtable = ret[num] or {}&lt;br /&gt;
			if prefix == &#039;&#039; then&lt;br /&gt;
				-- Positional parameters match the blank string; put them at the start of the subtable instead.&lt;br /&gt;
				prefix = 1&lt;br /&gt;
			end&lt;br /&gt;
			subtable[prefix] = v&lt;br /&gt;
			ret[num] = subtable&lt;br /&gt;
		else&lt;br /&gt;
			local subtable = ret.other or {}&lt;br /&gt;
			subtable[k] = v&lt;br /&gt;
			ret.other = subtable&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if compress then&lt;br /&gt;
		local other = ret.other&lt;br /&gt;
		ret = p.compressSparseArray(ret)&lt;br /&gt;
		ret.other = other&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- compressSparseArray&lt;br /&gt;
--&lt;br /&gt;
-- This takes an array with one or more nil values, and removes the nil values&lt;br /&gt;
-- while preserving the order, so that the array can be safely traversed with&lt;br /&gt;
-- ipairs.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.compressSparseArray(t)&lt;br /&gt;
	checkType(&#039;compressSparseArray&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	local nums = p.numKeys(t)&lt;br /&gt;
	for _, num in ipairs(nums) do&lt;br /&gt;
		ret[#ret + 1] = t[num]&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- sparseIpairs&lt;br /&gt;
--&lt;br /&gt;
-- This is an iterator for sparse arrays. It can be used like ipairs, but can&lt;br /&gt;
-- handle nil values.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.sparseIpairs(t)&lt;br /&gt;
	checkType(&#039;sparseIpairs&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	local nums = p.numKeys(t)&lt;br /&gt;
	local i = 0&lt;br /&gt;
	local lim = #nums&lt;br /&gt;
	return function ()&lt;br /&gt;
		i = i + 1&lt;br /&gt;
		if i &amp;lt;= lim then&lt;br /&gt;
			local key = nums[i]&lt;br /&gt;
			return key, t[key]&lt;br /&gt;
		else&lt;br /&gt;
			return nil, nil&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- size&lt;br /&gt;
--&lt;br /&gt;
-- This returns the size of a key/value pair table. It will also work on arrays,&lt;br /&gt;
-- but for arrays it is more efficient to use the # operator.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.size(t)&lt;br /&gt;
	checkType(&#039;size&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	local i = 0&lt;br /&gt;
	for _ in pairs(t) do&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
	return i&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function defaultKeySort(item1, item2)&lt;br /&gt;
	-- &amp;quot;number&amp;quot; &amp;lt; &amp;quot;string&amp;quot;, so numbers will be sorted before strings.&lt;br /&gt;
	local type1, type2 = type(item1), type(item2)&lt;br /&gt;
	if type1 ~= type2 then&lt;br /&gt;
		return type1 &amp;lt; type2&lt;br /&gt;
	elseif type1 == &#039;table&#039; or type1 == &#039;boolean&#039; or type1 == &#039;function&#039; then&lt;br /&gt;
		return tostring(item1) &amp;lt; tostring(item2)&lt;br /&gt;
	else&lt;br /&gt;
		return item1 &amp;lt; item2&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- keysToList&lt;br /&gt;
--&lt;br /&gt;
-- Returns an array of the keys in a table, sorted using either a default&lt;br /&gt;
-- comparison function or a custom keySort function.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.keysToList(t, keySort, checked)&lt;br /&gt;
	if not checked then&lt;br /&gt;
		checkType(&#039;keysToList&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
		checkTypeMulti(&#039;keysToList&#039;, 2, keySort, {&#039;function&#039;, &#039;boolean&#039;, &#039;nil&#039;})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local arr = {}&lt;br /&gt;
	local index = 1&lt;br /&gt;
	for k in pairs(t) do&lt;br /&gt;
		arr[index] = k&lt;br /&gt;
		index = index + 1&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if keySort ~= false then&lt;br /&gt;
		keySort = type(keySort) == &#039;function&#039; and keySort or defaultKeySort&lt;br /&gt;
		table.sort(arr, keySort)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return arr&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- sortedPairs&lt;br /&gt;
--&lt;br /&gt;
-- Iterates through a table, with the keys sorted using the keysToList function.&lt;br /&gt;
-- If there are only numerical keys, sparseIpairs is probably more efficient.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.sortedPairs(t, keySort)&lt;br /&gt;
	checkType(&#039;sortedPairs&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	checkType(&#039;sortedPairs&#039;, 2, keySort, &#039;function&#039;, true)&lt;br /&gt;
&lt;br /&gt;
	local arr = p.keysToList(t, keySort, true)&lt;br /&gt;
&lt;br /&gt;
	local i = 0&lt;br /&gt;
	return function ()&lt;br /&gt;
		i = i + 1&lt;br /&gt;
		local key = arr[i]&lt;br /&gt;
		if key ~= nil then&lt;br /&gt;
			return key, t[key]&lt;br /&gt;
		else&lt;br /&gt;
			return nil, nil&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- isArray&lt;br /&gt;
--&lt;br /&gt;
-- Returns true if the given value is a table and all keys are consecutive&lt;br /&gt;
-- integers starting at 1.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.isArray(v)&lt;br /&gt;
	if type(v) ~= &#039;table&#039; then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	local i = 0&lt;br /&gt;
	for _ in pairs(v) do&lt;br /&gt;
		i = i + 1&lt;br /&gt;
		if v[i] == nil then&lt;br /&gt;
			return false&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return true&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- isArrayLike&lt;br /&gt;
--&lt;br /&gt;
-- Returns true if the given value is iterable and all keys are consecutive&lt;br /&gt;
-- integers starting at 1.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.isArrayLike(v)&lt;br /&gt;
	if not pcall(pairs, v) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	local i = 0&lt;br /&gt;
	for _ in pairs(v) do&lt;br /&gt;
		i = i + 1&lt;br /&gt;
		if v[i] == nil then&lt;br /&gt;
			return false&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return true&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- invert&lt;br /&gt;
--&lt;br /&gt;
-- Transposes the keys and values in an array. For example, {&amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;} -&amp;gt;&lt;br /&gt;
-- {a = 1, b = 2, c = 3}. Duplicates are not supported (result values refer to&lt;br /&gt;
-- the index of the last duplicate) and NaN values are ignored.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.invert(arr)&lt;br /&gt;
	checkType(&amp;quot;invert&amp;quot;, 1, arr, &amp;quot;table&amp;quot;)&lt;br /&gt;
	local isNan = p.isNan&lt;br /&gt;
	local map = {}&lt;br /&gt;
	for i, v in ipairs(arr) do&lt;br /&gt;
		if not isNan(v) then&lt;br /&gt;
			map[v] = i&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return map&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- listToSet&lt;br /&gt;
--&lt;br /&gt;
-- Creates a set from the array part of the table. Indexing the set by any of the&lt;br /&gt;
-- values of the array returns true. For example, {&amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;} -&amp;gt;&lt;br /&gt;
-- {a = true, b = true, c = true}. NaN values are ignored as Lua considers them&lt;br /&gt;
-- never equal to any value (including other NaNs or even themselves).&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.listToSet(arr)&lt;br /&gt;
	checkType(&amp;quot;listToSet&amp;quot;, 1, arr, &amp;quot;table&amp;quot;)&lt;br /&gt;
	local isNan = p.isNan&lt;br /&gt;
	local set = {}&lt;br /&gt;
	for _, v in ipairs(arr) do&lt;br /&gt;
		if not isNan(v) then&lt;br /&gt;
			set[v] = true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return set&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- deepCopy&lt;br /&gt;
--&lt;br /&gt;
-- Recursive deep copy function. Preserves identities of subtables.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
local function _deepCopy(orig, includeMetatable, already_seen)&lt;br /&gt;
	if type(orig) ~= &amp;quot;table&amp;quot; then&lt;br /&gt;
		return orig&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- already_seen stores copies of tables indexed by the original table.&lt;br /&gt;
	local copy = already_seen[orig]&lt;br /&gt;
	if copy ~= nil then&lt;br /&gt;
		return copy&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	copy = {}&lt;br /&gt;
	already_seen[orig] = copy -- memoize before any recursion, to avoid infinite loops&lt;br /&gt;
	&lt;br /&gt;
	for orig_key, orig_value in pairs(orig) do&lt;br /&gt;
		copy[_deepCopy(orig_key, includeMetatable, already_seen)] = _deepCopy(orig_value, includeMetatable, already_seen)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if includeMetatable then&lt;br /&gt;
		local mt = getmetatable(orig)&lt;br /&gt;
		if mt ~= nil then&lt;br /&gt;
			setmetatable(copy, _deepCopy(mt, true, already_seen))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return copy&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.deepCopy(orig, noMetatable, already_seen)&lt;br /&gt;
	checkType(&amp;quot;deepCopy&amp;quot;, 3, already_seen, &amp;quot;table&amp;quot;, true)&lt;br /&gt;
	return _deepCopy(orig, not noMetatable, already_seen or {})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- sparseConcat&lt;br /&gt;
--&lt;br /&gt;
-- Concatenates all values in the table that are indexed by a number, in order.&lt;br /&gt;
-- sparseConcat{a, nil, c, d}  =&amp;gt;  &amp;quot;acd&amp;quot;&lt;br /&gt;
-- sparseConcat{nil, b, c, d}  =&amp;gt;  &amp;quot;bcd&amp;quot;&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.sparseConcat(t, sep, i, j)&lt;br /&gt;
	local arr = {}&lt;br /&gt;
&lt;br /&gt;
	local arr_i = 0&lt;br /&gt;
	for _, v in p.sparseIpairs(t) do&lt;br /&gt;
		arr_i = arr_i + 1&lt;br /&gt;
		arr[arr_i] = v&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat(arr, sep, i, j)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- length&lt;br /&gt;
--&lt;br /&gt;
-- Finds the length of an array, or of a quasi-array with keys such as &amp;quot;data1&amp;quot;,&lt;br /&gt;
-- &amp;quot;data2&amp;quot;, etc., using an exponential search algorithm. It is similar to the&lt;br /&gt;
-- operator #, but may return a different value when there are gaps in the array&lt;br /&gt;
-- portion of the table. Intended to be used on data loaded with mw.loadData. For&lt;br /&gt;
-- other tables, use #.&lt;br /&gt;
-- Note: #frame.args in frame object always be set to 0, regardless of  the number&lt;br /&gt;
-- of unnamed template parameters, so use this function for frame.args.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.length(t, prefix)&lt;br /&gt;
	-- requiring module inline so that [[Module:Exponential search]] which is&lt;br /&gt;
	-- only needed by this one function doesn&#039;t get millions of transclusions&lt;br /&gt;
	local expSearch = require(&amp;quot;Module:Exponential search&amp;quot;)&lt;br /&gt;
	checkType(&#039;length&#039;, 1, t, &#039;table&#039;)&lt;br /&gt;
	checkType(&#039;length&#039;, 2, prefix, &#039;string&#039;, true)&lt;br /&gt;
	return expSearch(function (i)&lt;br /&gt;
		local key&lt;br /&gt;
		if prefix then&lt;br /&gt;
			key = prefix .. tostring(i)&lt;br /&gt;
		else&lt;br /&gt;
			key = i&lt;br /&gt;
		end&lt;br /&gt;
		return t[key] ~= nil&lt;br /&gt;
	end) or 0&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- inArray&lt;br /&gt;
--&lt;br /&gt;
-- Returns true if searchElement is a member of the array, and false otherwise.&lt;br /&gt;
-- Equivalent to JavaScript array.includes(searchElement) or&lt;br /&gt;
-- array.includes(searchElement, fromIndex), except fromIndex is 1 indexed&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.inArray(array, searchElement, fromIndex)&lt;br /&gt;
	checkType(&amp;quot;inArray&amp;quot;, 1, array, &amp;quot;table&amp;quot;)&lt;br /&gt;
	-- if searchElement is nil, error?&lt;br /&gt;
&lt;br /&gt;
	fromIndex = tonumber(fromIndex)&lt;br /&gt;
	if fromIndex then&lt;br /&gt;
		if (fromIndex &amp;lt; 0) then&lt;br /&gt;
			fromIndex = #array + fromIndex + 1&lt;br /&gt;
		end&lt;br /&gt;
		if fromIndex &amp;lt; 1 then fromIndex = 1 end&lt;br /&gt;
		for _, v in ipairs({unpack(array, fromIndex)}) do&lt;br /&gt;
			if v == searchElement then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		for _, v in pairs(array) do&lt;br /&gt;
			if v == searchElement then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- merge&lt;br /&gt;
--&lt;br /&gt;
-- Given the arrays, returns an array containing the elements of each input array&lt;br /&gt;
-- in sequence.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.merge(...)&lt;br /&gt;
	local arrays = {...}&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for i, arr in ipairs(arrays) do&lt;br /&gt;
		checkType(&#039;merge&#039;, i, arr, &#039;table&#039;)&lt;br /&gt;
		for _, v in ipairs(arr) do&lt;br /&gt;
			ret[#ret + 1] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
-- extend&lt;br /&gt;
--&lt;br /&gt;
-- Extends the first array in place by appending all elements from the second&lt;br /&gt;
-- array.&lt;br /&gt;
------------------------------------------------------------------------------------&lt;br /&gt;
function p.extend(arr1, arr2)&lt;br /&gt;
	checkType(&#039;extend&#039;, 1, arr1, &#039;table&#039;)&lt;br /&gt;
	checkType(&#039;extend&#039;, 2, arr2, &#039;table&#039;)&lt;br /&gt;
&lt;br /&gt;
	for _, v in ipairs(arr2) do&lt;br /&gt;
		arr1[#arr1 + 1] = v&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:List&amp;diff=1524</id>
		<title>Module:List</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:List&amp;diff=1524"/>
		<updated>2026-10-26T21:55:34Z</updated>

		<summary type="html">&lt;p&gt;Limeee: copy from English Wikipedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;local libUtil = require(&#039;libraryUtil&#039;)&lt;br /&gt;
local checkType = libUtil.checkType&lt;br /&gt;
local mTableTools = require(&#039;Module:TableTools&#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local listTypes = {&lt;br /&gt;
	[&#039;bulleted&#039;] = true,&lt;br /&gt;
	[&#039;unbulleted&#039;] = true,&lt;br /&gt;
	[&#039;horizontal&#039;] = true,&lt;br /&gt;
	[&#039;ordered&#039;] = true,&lt;br /&gt;
	[&#039;horizontal_ordered&#039;] = true&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function p.makeListData(listType, args)&lt;br /&gt;
	-- Constructs a data table to be passed to p.renderList.&lt;br /&gt;
	local data = {}&lt;br /&gt;
&lt;br /&gt;
	-- Classes and TemplateStyles&lt;br /&gt;
	data.classes = {}&lt;br /&gt;
	data.templatestyles = &#039;&#039;&lt;br /&gt;
	if listType == &#039;horizontal&#039; or listType == &#039;horizontal_ordered&#039; then&lt;br /&gt;
		table.insert(data.classes, &#039;hlist&#039;)&lt;br /&gt;
		data.templatestyles = mw.getCurrentFrame():extensionTag{&lt;br /&gt;
			name = &#039;templatestyles&#039;, args = { src = &#039;Hlist/styles.css&#039; }&lt;br /&gt;
		}&lt;br /&gt;
	elseif listType == &#039;unbulleted&#039; then&lt;br /&gt;
		table.insert(data.classes, &#039;plainlist&#039;)&lt;br /&gt;
		data.templatestyles = mw.getCurrentFrame():extensionTag{&lt;br /&gt;
			name = &#039;templatestyles&#039;, args = { src = &#039;Plainlist/styles.css&#039; }&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(data.classes, args.class)&lt;br /&gt;
&lt;br /&gt;
	-- Main div style&lt;br /&gt;
	data.style = args.style&lt;br /&gt;
&lt;br /&gt;
	-- Indent for horizontal lists&lt;br /&gt;
	if listType == &#039;horizontal&#039; or listType == &#039;horizontal_ordered&#039; then&lt;br /&gt;
		local indent = tonumber(args.indent)&lt;br /&gt;
		indent = indent and indent * 1.6 or 0&lt;br /&gt;
		if indent &amp;gt; 0 then&lt;br /&gt;
			data.marginLeft = indent .. &#039;em&#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- List style types for ordered lists&lt;br /&gt;
	-- This could be &amp;quot;1, 2, 3&amp;quot;, &amp;quot;a, b, c&amp;quot;, or a number of others. The list style&lt;br /&gt;
	-- type is either set by the &amp;quot;type&amp;quot; attribute or the &amp;quot;list-style-type&amp;quot; CSS&lt;br /&gt;
	-- property.&lt;br /&gt;
	if listType == &#039;ordered&#039; or listType == &#039;horizontal_ordered&#039; then &lt;br /&gt;
		data.listStyleType = args.list_style_type or args[&#039;list-style-type&#039;]&lt;br /&gt;
		data.type = args[&#039;type&#039;]&lt;br /&gt;
&lt;br /&gt;
		-- Detect invalid type attributes and attempt to convert them to&lt;br /&gt;
		-- list-style-type CSS properties.&lt;br /&gt;
		if data.type &lt;br /&gt;
			and not data.listStyleType&lt;br /&gt;
			and not tostring(data.type):find(&#039;^%s*[1AaIi]%s*$&#039;)&lt;br /&gt;
		then&lt;br /&gt;
			data.listStyleType = data.type&lt;br /&gt;
			data.type = nil&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- List tag type&lt;br /&gt;
	if listType == &#039;ordered&#039; or listType == &#039;horizontal_ordered&#039; then&lt;br /&gt;
		data.listTag = &#039;ol&#039;&lt;br /&gt;
	else&lt;br /&gt;
		data.listTag = &#039;ul&#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Start number for ordered lists&lt;br /&gt;
	data.start = args.start&lt;br /&gt;
	if listType == &#039;horizontal_ordered&#039; then&lt;br /&gt;
		-- Apply fix to get start numbers working with horizontal ordered lists.&lt;br /&gt;
		local startNum = tonumber(data.start)&lt;br /&gt;
		if startNum then&lt;br /&gt;
			data.counterReset = &#039;listitem &#039; .. tostring(startNum - 1)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- List style&lt;br /&gt;
	 -- ul_style and ol_style are included for backwards compatibility. No&lt;br /&gt;
	 -- distinction is made for ordered or unordered lists.&lt;br /&gt;
	data.listStyle = args.list_style&lt;br /&gt;
&lt;br /&gt;
	-- List items&lt;br /&gt;
	-- li_style is included for backwards compatibility. item_style was included&lt;br /&gt;
	-- to be easier to understand for non-coders.&lt;br /&gt;
	data.itemStyle = args.item_style or args.li_style&lt;br /&gt;
	data.items = {}&lt;br /&gt;
	for _, num in ipairs(mTableTools.numKeys(args)) do&lt;br /&gt;
		local item = {}&lt;br /&gt;
		item.content = args[num]&lt;br /&gt;
		item.style = args[&#039;item&#039; .. tostring(num) .. &#039;_style&#039;]&lt;br /&gt;
			or args[&#039;item_style&#039; .. tostring(num)]&lt;br /&gt;
		item.value = args[&#039;item&#039; .. tostring(num) .. &#039;_value&#039;]&lt;br /&gt;
			or args[&#039;item_value&#039; .. tostring(num)]&lt;br /&gt;
		table.insert(data.items, item)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return data&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.renderList(data)&lt;br /&gt;
	-- Renders the list HTML.&lt;br /&gt;
	&lt;br /&gt;
	-- Return the blank string if there are no list items.&lt;br /&gt;
	if type(data.items) ~= &#039;table&#039; or #data.items &amp;lt; 1 then&lt;br /&gt;
		return &#039;&#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Render the main div tag.&lt;br /&gt;
	local root = mw.html.create(&#039;div&#039;)&lt;br /&gt;
	for _, class in ipairs(data.classes or {}) do&lt;br /&gt;
		root:addClass(class)&lt;br /&gt;
	end&lt;br /&gt;
	root:css{[&#039;margin-left&#039;] = data.marginLeft}&lt;br /&gt;
	if data.style then&lt;br /&gt;
		root:cssText(data.style)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Render the list tag.&lt;br /&gt;
	local list = root:tag(data.listTag or &#039;ul&#039;)&lt;br /&gt;
	list&lt;br /&gt;
		:attr{start = data.start, type = data.type}&lt;br /&gt;
		:css{&lt;br /&gt;
			[&#039;counter-reset&#039;] = data.counterReset,&lt;br /&gt;
			[&#039;list-style-type&#039;] = data.listStyleType&lt;br /&gt;
		}&lt;br /&gt;
	if data.listStyle then&lt;br /&gt;
		list:cssText(data.listStyle)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Render the list items&lt;br /&gt;
	for _, t in ipairs(data.items or {}) do&lt;br /&gt;
		local item = list:tag(&#039;li&#039;)&lt;br /&gt;
		if data.itemStyle then&lt;br /&gt;
			item:cssText(data.itemStyle)&lt;br /&gt;
		end&lt;br /&gt;
		if t.style then&lt;br /&gt;
			item:cssText(t.style)&lt;br /&gt;
		end&lt;br /&gt;
		item&lt;br /&gt;
			:attr{value = t.value}&lt;br /&gt;
			:wikitext(t.content)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return data.templatestyles .. tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeList(listType, args)&lt;br /&gt;
	if not listType or not listTypes[listType] then&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;bad argument #1 to &#039;makeList&#039; (&#039;%s&#039; is not a valid list type)&amp;quot;,&lt;br /&gt;
			tostring(listType)&lt;br /&gt;
		), 2)&lt;br /&gt;
	end&lt;br /&gt;
	checkType(&#039;makeList&#039;, 2, args, &#039;table&#039;)&lt;br /&gt;
	local data = p.makeListData(listType, args)&lt;br /&gt;
	local list = p.renderList(data)&lt;br /&gt;
	return list&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
for listType in pairs(listTypes) do&lt;br /&gt;
	p[listType] = function (frame)&lt;br /&gt;
		local mArguments = require(&#039;Module:Arguments&#039;)&lt;br /&gt;
		local origArgs = mArguments.getArgs(frame, {&lt;br /&gt;
			frameOnly = ((frame and frame.args and frame.args.frameonly or &#039;&#039;) ~= &#039;&#039;),&lt;br /&gt;
			valueFunc = function (key, value)&lt;br /&gt;
			if not value or not mw.ustring.find(value, &#039;%S&#039;) then return nil end&lt;br /&gt;
			if mw.ustring.find(value, &#039;^%s*[%*#;:]&#039;) then&lt;br /&gt;
				return value&lt;br /&gt;
			else&lt;br /&gt;
				return value:match(&#039;^%s*(.-)%s*$&#039;)&lt;br /&gt;
			end&lt;br /&gt;
			return nil&lt;br /&gt;
		end&lt;br /&gt;
		})&lt;br /&gt;
		-- Copy all the arguments to a new table, for faster indexing.&lt;br /&gt;
		local args = {}&lt;br /&gt;
		for k, v in pairs(origArgs) do&lt;br /&gt;
			args[k] = v&lt;br /&gt;
		end&lt;br /&gt;
		return p.makeList(listType, args)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Yesno&amp;diff=1523</id>
		<title>Module:Yesno</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Yesno&amp;diff=1523"/>
		<updated>2026-10-26T21:53:16Z</updated>

		<summary type="html">&lt;p&gt;Limeee: copy from English Wikipedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- Function allowing for consistent treatment of boolean-like wikitext input.&lt;br /&gt;
-- It works similarly to the template {{yesno}}.&lt;br /&gt;
&lt;br /&gt;
return function (val, default)&lt;br /&gt;
	-- If your wiki uses non-ascii characters for any of &amp;quot;yes&amp;quot;, &amp;quot;no&amp;quot;, etc., you&lt;br /&gt;
	-- should replace &amp;quot;val:lower()&amp;quot; with &amp;quot;mw.ustring.lower(val)&amp;quot; in the&lt;br /&gt;
	-- following line.&lt;br /&gt;
	val = type(val) == &#039;string&#039; and val:lower() or val&lt;br /&gt;
	if val == nil then&lt;br /&gt;
		return nil&lt;br /&gt;
	elseif val == true &lt;br /&gt;
		or val == &#039;yes&#039;&lt;br /&gt;
		or val == &#039;y&#039;&lt;br /&gt;
		or val == &#039;true&#039;&lt;br /&gt;
		or val == &#039;t&#039;&lt;br /&gt;
		or val == &#039;on&#039;&lt;br /&gt;
		or tonumber(val) == 1&lt;br /&gt;
	then&lt;br /&gt;
		return true&lt;br /&gt;
	elseif val == false&lt;br /&gt;
		or val == &#039;no&#039;&lt;br /&gt;
		or val == &#039;n&#039;&lt;br /&gt;
		or val == &#039;false&#039;&lt;br /&gt;
		or val == &#039;f&#039;&lt;br /&gt;
		or val == &#039;off&#039;&lt;br /&gt;
		or tonumber(val) == 0&lt;br /&gt;
	then&lt;br /&gt;
		return false&lt;br /&gt;
	else&lt;br /&gt;
		return default&lt;br /&gt;
	end&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Random/doc&amp;diff=1521</id>
		<title>Module:Random/doc</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Random/doc&amp;diff=1521"/>
		<updated>2026-10-26T21:52:22Z</updated>

		<summary type="html">&lt;p&gt;Limeee: copy from English Wikipedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{high-use}}&lt;br /&gt;
{{module rating|protected}}&lt;br /&gt;
{{Lua|Module:List|Module:Yesno}}&lt;br /&gt;
This module contains a number of functions that use random numbers. It can output random numbers, select a random item from a list, and reorder lists randomly. The randomly reordered lists can be output inline, or as various types of ordered and unordered lists. The available functions are outlined in more detail below.&lt;br /&gt;
&lt;br /&gt;
== Number ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; function outputs a random number.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{#invoke:random|number|&#039;&#039;m&#039;&#039;|&#039;&#039;n&#039;&#039;|same=&#039;&#039;yes&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
The arguments &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; may be omitted, but if specified must be convertible to integers.&lt;br /&gt;
* With no arguments, returns a real number in the range &amp;lt;math&amp;gt;[0,1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
* With one argument, returns an integer in the range &amp;lt;math&amp;gt;[1,m]&amp;lt;/math&amp;gt;, or, if &amp;lt;code&amp;gt;&#039;&#039;m&#039;&#039;&amp;lt;/code&amp;gt; is negative, &amp;lt;math&amp;gt;(-m,0]&amp;lt;/math&amp;gt;. If &amp;lt;code&amp;gt;&#039;&#039;m&#039;&#039;&amp;lt;/code&amp;gt; is equal to 0 or 1, returns 1 (or 0 if &amp;lt;math&amp;gt;m=-1&amp;lt;/math&amp;gt;).&lt;br /&gt;
* With two arguments, returns an integer in the range &amp;lt;math&amp;gt;[m,n]&amp;lt;/math&amp;gt;. &amp;lt;code&amp;gt;&#039;&#039;m&#039;&#039;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/code&amp;gt; can be either positive or negative. If &amp;lt;code&amp;gt;&#039;&#039;m&#039;&#039;&amp;lt;/code&amp;gt; is greater than &amp;lt;code&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/code&amp;gt;, returns an integer in the range &amp;lt;math&amp;gt;[n,m]&amp;lt;/math&amp;gt; instead.&lt;br /&gt;
* If the {{para|same}} parameter is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot;, or &amp;quot;1&amp;quot;, the same random number is returned for each module call on a given page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples&#039;&#039;&#039; &amp;lt;small&amp;gt;({{purge|refresh|anchor=Number}})&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|number}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|number}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|number|100}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|number|100}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|number|-100|-50}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|number|-100|-50}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|number|100|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|number|100|same=yes}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|number|100|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|number|100|same=yes}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;The documentation for this function is partly taken from the [[mw:Extension:Scribunto/Lua reference manual#math.random|Scribunto Lua reference manual]], which is in turn based on the [http://www.lua.org/manual/5.1/index.html Lua 5.1 Reference Manual], available under the [[MIT License]].&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Date ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;date&amp;lt;/code&amp;gt; function outputs a random date.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{#invoke:random|date|&#039;&#039;timestamp1&#039;&#039;|&#039;&#039;timestamp2&#039;&#039;|format=&#039;&#039;date format&#039;&#039;|same=&#039;&#039;yes&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
* If no timestamp arguments are specified, the module outputs a random date in the current year.&lt;br /&gt;
* If &amp;lt;code&amp;gt;&#039;&#039;timestamp1&#039;&#039;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&#039;&#039;timestamp2&#039;&#039;&amp;lt;/code&amp;gt; are specified, the module outputs a random date between the two timestamps. &amp;lt;code&amp;gt;&#039;&#039;timestamp1&#039;&#039;&amp;lt;/code&amp;gt; must be earlier than &amp;lt;code&amp;gt;&#039;&#039;timestamp2&#039;&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If only &amp;lt;code&amp;gt;&#039;&#039;timestamp1&#039;&#039;&amp;lt;/code&amp;gt;is specified, the module outputs a random date between the [[Unix epoch]] (1 Jan 1970) and the timestamp. &amp;lt;code&amp;gt;&#039;&#039;timestamp1&#039;&#039;&amp;lt;/code&amp;gt; must not be earlier than 1 Jan 1970.&lt;br /&gt;
* Formatting can be specified with the {{para|format}} parameter. The default formatting is &amp;quot;hh:mm, DD Month YYYY (UTC)&amp;quot; (the same as the default Wikipedia timestamp). &lt;br /&gt;
* The timestamps and the {{para|format}} parameter accept values compatible with the [[mw:Help:Extension:ParserFunctions##time|#time parser function]]. Please see the #time documentation for the full range of possible input values and formatting options.&lt;br /&gt;
* If the {{para|same}} parameter is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot;, or &amp;quot;1&amp;quot;, the same date is returned for each module call on a given page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples&#039;&#039;&#039; &amp;lt;small&amp;gt;({{purge|refresh|anchor=Date}})&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|date}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|date}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|date|format=F j}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|date|format=F j}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|date|1 Jan 1980|31 Dec 1999}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|date|1 Jan 1980|31 Dec 1999}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|date|1st January 1500|1st January 3000|format=g:i a, l d M Y}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|date|1st January 1500|1st January 3000|format=g:i a, l d M Y}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|date|1970/06/01}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|date|1970/06/01}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|date|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|date|same=yes}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|date|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|date|same=yes}}&lt;br /&gt;
&lt;br /&gt;
== Item ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;item&amp;lt;/code&amp;gt; function outputs a random item from a list.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{#invoke:random|item|&#039;&#039;list item 1&#039;&#039;|&#039;&#039;list item 2&#039;&#039;|&#039;&#039;list item 3&#039;&#039;|...|same=&#039;&#039;yes&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
If the {{para|same}} parameter is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot;, or &amp;quot;1&amp;quot;, the same item is returned for each module call on a given page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example&#039;&#039;&#039; &amp;lt;small&amp;gt;({{purge|refresh|anchor=Item}})&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|item|egg|beans|sausage|bacon|spam}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|item|egg|beans|sausage|bacon|spam}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|item|egg|beans|sausage|bacon|spam|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|item|egg|beans|sausage|bacon|spam|same=yes}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|item|egg|beans|sausage|bacon|spam|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|item|egg|beans|sausage|bacon|spam|same=yes}}&lt;br /&gt;
&lt;br /&gt;
Setting &amp;quot;same&amp;quot; will make the template select the same number item from each list, even if the things in them are different.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;My&lt;br /&gt;
{{#invoke:random|item|egg    |bean  |sausage  |bacon    |spam  |same=yes}}&lt;br /&gt;
is&lt;br /&gt;
{{#invoke:random|item|quail  |pinto |kielbasa |canadian |spammy|same=yes}}&lt;br /&gt;
and my&lt;br /&gt;
{{#invoke:random|item|blegg  |blean |blausage |blacon   |blam  |same=yes}}&lt;br /&gt;
is&lt;br /&gt;
{{#invoke:random|item|blail  |blinto|blielbasa|blanadian|blammy|same=yes}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;rarr; My {{#invoke:random|item|egg    |bean  |sausage  |bacon    |spam  |same=yes}}&lt;br /&gt;
is {{#invoke:random|item|quail  |pinto |kielbasa |canadian |spammy|same=yes}} and my&lt;br /&gt;
{{#invoke:random|item|blegg  |blean |blausage |blacon   |blam  |same=yes}} is {{#invoke:random|item|blail  |blinto|blielbasa|blanadian|blammy|same=yes}}.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;list&amp;lt;/code&amp;gt; function outputs a list in a random order.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{#invoke:random|list|&#039;&#039;list item 1&#039;&#039;|&#039;&#039;list item 2&#039;&#039;|&#039;&#039;list item 3&#039;&#039;|...|sep=&#039;&#039;separator&#039;&#039;|limit=&#039;&#039;number of items to display&#039;&#039;|same=&#039;&#039;yes&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Named parameters&#039;&#039;&#039;&lt;br /&gt;
* {{para|sep}} or {{para|separator}} - an optional separator for the list items. Some values are special; see the table below. &lt;br /&gt;
* {{para|limit}} - the maximum number of list items to display. The lowest possible is 0 and the highest possible is the length of the list.&lt;br /&gt;
* {{para|same}} - if this is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot;, or &amp;quot;1&amp;quot;, the list order is the same for each module call on a given page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Possible separator values&lt;br /&gt;
|-&lt;br /&gt;
! Code !! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;dot&amp;lt;/code&amp;gt; || {{int:dot-separator}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pipe&amp;lt;/code&amp;gt; &lt;br /&gt;
|| {{int:pipe-separator}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;comma&amp;lt;/code&amp;gt; || {{int:comma-separator}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tpt-languages&amp;lt;/code&amp;gt; || {{int:tpt-languages-separator}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;space&amp;lt;/code&amp;gt; || &#039;&#039;a space&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;newline&amp;lt;/code&amp;gt; || &#039;&#039;a newline character&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;any other value&#039;&#039; || &#039;&#039;other values are used without modification&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You cannot input spaces directly to the {{para|sep}} parameter due to limitations in MediaWiki&#039;s template syntax. However, it is possible to work around this by using [[HTML entities]]. You can use &amp;lt;code&amp;gt;&amp;amp;amp;#32;&amp;lt;/code&amp;gt; to represent a normal space, and &amp;lt;code&amp;gt;&amp;amp;amp;nbsp;&amp;lt;/code&amp;gt; to represent a [[non-breaking space]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples&#039;&#039;&#039; &amp;lt;small&amp;gt;({{purge|refresh|anchor=List}})&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=dot}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=dot}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=space}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=space}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=;&amp;amp;amp;#32;}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=;&amp;amp;#32;}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=foo}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam|sep=foo}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam|limit=3}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam|limit=3}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam|same=yes}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|list|egg|beans|sausage|bacon|spam|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|list|egg|beans|sausage|bacon|spam|same=yes}}&lt;br /&gt;
&lt;br /&gt;
== Text list ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;text_list&amp;lt;/code&amp;gt; function outputs a list in a random order, text-style. In other words, it is like the &amp;lt;code&amp;gt;list&amp;lt;/code&amp;gt; function, but with a different separator before the last item.&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{#invoke:random|text_list|&#039;&#039;list item 1&#039;&#039;|&#039;&#039;list item 2&#039;&#039;|&#039;&#039;list item 3&#039;&#039;|...|sep=&#039;&#039;separator&#039;&#039;|conj=&#039;&#039;conjunction&#039;&#039;|limit=&#039;&#039;number of items to display&#039;&#039;|same=&#039;&#039;yes&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
The separator can be specified with either the {{para|sep}} or {{para|separator}} parameters; its default value is &amp;quot;{{int:comma-separator}}&amp;quot;. The conjunction can be specified with either the {{para|conj}} or {{para|conjunction}} parameters; its default value is &amp;quot; and &amp;quot;. The separator and the conjunction can be specified with the same values as the separator in the [[#List|list function]].&lt;br /&gt;
&lt;br /&gt;
The maximum number of list items to display can be set with the {{para|limit}} parameter. The lowest possible is 0 and the highest possible is the length of the list.&lt;br /&gt;
&lt;br /&gt;
If the {{para|same}} parameter is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot;, or &amp;quot;1&amp;quot;, the list order is the same for each module call on a given page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples&#039;&#039;&#039; &amp;lt;small&amp;gt;({{purge|refresh|anchor=Text list}})&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|text_list|egg|beans|sausage|bacon|spam}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|text_list|egg|beans|sausage|bacon|spam}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|text_list|egg|beans|sausage|bacon|spam|sep=;&amp;amp;amp;#32;}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|text_list|egg|beans|sausage|bacon|spam|sep=;&amp;amp;#32;}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|text_list|egg|beans|sausage|bacon|spam|sep=;&amp;amp;amp;#32;|conj=&amp;amp;amp;#32;or&amp;amp;amp;#32;}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|text_list|egg|beans|sausage|bacon|spam|sep=;&amp;amp;#32;|conj=&amp;amp;#32;or&amp;amp;#32;}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|text_list|egg|beans|sausage|bacon|spam|limit=3}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|text_list|egg|beans|sausage|bacon|spam|limit=3}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|text_list|egg|beans|sausage|bacon|spam|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|text_list|egg|beans|sausage|bacon|spam|same=yes}}&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|text_list|egg|beans|sausage|bacon|spam|same=yes}}&amp;lt;/syntaxhighlight&amp;gt; &amp;amp;rarr; {{#invoke:random|text_list|egg|beans|sausage|bacon|spam|same=yes}}&lt;br /&gt;
&lt;br /&gt;
== HTML lists ==&lt;br /&gt;
&lt;br /&gt;
If you wish to output an HTML list in a random order, you can choose between five different functions: &amp;lt;code&amp;gt;bulleted_list&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;unbulleted_list&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;horizontal_list&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ordered_list&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;horizontal_ordered_list&amp;lt;/code&amp;gt;. These functions all use [[Module:List]].&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Function name&lt;br /&gt;
! Produces&lt;br /&gt;
! Example code&lt;br /&gt;
! Example output &amp;lt;small&amp;gt;({{purge|refresh|anchor=HTML lists}})&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;bulleted_list&amp;lt;/code&amp;gt;&lt;br /&gt;
| Bulleted lists&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|bulleted_list|egg|sausage|spam}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{#invoke:random|bulleted_list|egg|sausage|spam}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;unbulleted_list&amp;lt;/code&amp;gt;&lt;br /&gt;
| Unbulleted lists&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|unbulleted_list|egg|sausage|spam}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{#invoke:random|unbulleted_list|egg|sausage|spam}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;horizontal_list&amp;lt;/code&amp;gt;&lt;br /&gt;
| Horizontal bulleted lists&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|horizontal_list|egg|sausage|spam}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{#invoke:random|horizontal_list|egg|sausage|spam}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ordered_list&amp;lt;/code&amp;gt;&lt;br /&gt;
| Ordered lists (numbered lists and alphabetical lists)&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|ordered_list|egg|sausage|spam}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{#invoke:random|ordered_list|egg|sausage|spam}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;horizontal_ordered_list&amp;lt;/code&amp;gt;&lt;br /&gt;
| Horizontal ordered lists&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{#invoke:random|horizontal_ordered_list|egg|sausage|spam}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{#invoke:random|horizontal_ordered_list|egg|sausage|spam}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; Basic usage&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{#invoke:random|&#039;&#039;function&#039;&#039;|&#039;&#039;list item 1&#039;&#039;|&#039;&#039;list item 2&#039;&#039;|&#039;&#039;list item 3&#039;&#039;|...|limit=&#039;&#039;number of items to display&#039;&#039;|same=&#039;&#039;yes&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
; All parameters&lt;br /&gt;
&lt;br /&gt;
{{pre|&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:random&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;function&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;first item&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;second item&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;third item&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;...&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|start           = &amp;lt;/nowiki&amp;gt;&#039;&#039;start number for ordered lists&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|type            = &amp;lt;/nowiki&amp;gt;&#039;&#039;type of marker for ordered lists&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|list_style_type = &amp;lt;/nowiki&amp;gt;&#039;&#039;type of marker for ordered lists (uses CSS)&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|class           = &amp;lt;/nowiki&amp;gt;&#039;&#039;class&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|style           = &amp;lt;/nowiki&amp;gt;&#039;&#039;style&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|list_style      = &amp;lt;/nowiki&amp;gt;&#039;&#039;style for the list&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|item_style      = &amp;lt;/nowiki&amp;gt;&#039;&#039;style for all list items&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|item_style1     = &amp;lt;/nowiki&amp;gt;&#039;&#039;style for the first list item&#039;&#039;&amp;lt;nowiki&amp;gt; |item_style2 = &amp;lt;/nowiki&amp;gt;&#039;&#039;style for the second list item&#039;&#039;&amp;lt;nowiki&amp;gt; |&amp;lt;/nowiki&amp;gt;...&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|indent          = &amp;lt;/nowiki&amp;gt;&#039;&#039;indent for horizontal lists&#039;&#039;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The maximum number of list items to display can be set with the {{para|limit}} parameter. The lowest possible is 0 and the highest possible is the length of the list.&lt;br /&gt;
&lt;br /&gt;
If the {{para|same}} parameter is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot;, or &amp;quot;1&amp;quot;, the list order is the same for each module call on a given page.&lt;br /&gt;
&lt;br /&gt;
Please see [[Module:List]] for a full explanation of the other parameters.&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
	<entry>
		<id>https://wiki.schjessu.fyi/w/index.php?title=Module:Random&amp;diff=1519</id>
		<title>Module:Random</title>
		<link rel="alternate" type="text/html" href="https://wiki.schjessu.fyi/w/index.php?title=Module:Random&amp;diff=1519"/>
		<updated>2026-10-26T21:51:50Z</updated>

		<summary type="html">&lt;p&gt;Limeee: copy from English Wikipedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;-- This module contains a number of functions that make use of random numbers.&lt;br /&gt;
&lt;br /&gt;
local cfg = {}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Configuration&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
-- Set this to true if your wiki has a traffic rate of less than one edit every two minutes or so.&lt;br /&gt;
-- This will prevent the same &amp;quot;random&amp;quot; number being generated many times in a row until a new edit is made&lt;br /&gt;
-- to the wiki. This setting is only relevant if the |same= parameter is set.&lt;br /&gt;
cfg.lowTraffic = false&lt;br /&gt;
&lt;br /&gt;
-- If cfg.lowTraffic is set to true, and the |same= parameter is set, this value is used for the refresh rate of the random seed.&lt;br /&gt;
-- This is the number of seconds until the seed is changed. Getting this right is tricky. If you set it too high, the same number&lt;br /&gt;
-- will be returned many times in a row. If you set it too low, you may get different random numbers appearing on the same page,&lt;br /&gt;
-- particularly for pages that take many seconds to process.&lt;br /&gt;
cfg.seedRefreshRate = 60&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- End configuration&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local p = {} -- For functions available from other Lua modules.&lt;br /&gt;
local l = {} -- For functions not available from other Lua modules, but that need to be accessed using table keys.&lt;br /&gt;
&lt;br /&gt;
local yesno = require(&#039;Module:Yesno&#039;)&lt;br /&gt;
local makeList = require(&#039;Module:List&#039;).makeList&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Helper functions&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function raiseError(msg)&lt;br /&gt;
	-- This helps to generate a wikitext error. It is the calling function&#039;s responsibility as to how to include it in the output.&lt;br /&gt;
	return mw.ustring.format(&#039;&amp;lt;b class=&amp;quot;error&amp;quot;&amp;gt;[[Module:Random]] error: %s.&amp;lt;/b&amp;gt;&#039;, msg)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- random number function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function getBigRandom(l, u)&lt;br /&gt;
	-- Gets a random integer between l and u, and is not limited to RAND_MAX.&lt;br /&gt;
	local r = 0&lt;br /&gt;
	local n = 2^math.random(30) -- Any power of 2.&lt;br /&gt;
	local limit = math.ceil(53 / (math.log(n) / math.log(2)))&lt;br /&gt;
	for i = 1, limit do&lt;br /&gt;
		r = r + math.random(0, n - 1) / (n^i)&lt;br /&gt;
	end&lt;br /&gt;
	return math.floor(r * (u - l + 1)) + l&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.number(args)&lt;br /&gt;
	-- Gets a random number.&lt;br /&gt;
	first = tonumber(args[1])&lt;br /&gt;
	second = tonumber(args[2])&lt;br /&gt;
	-- This needs to use if statements as math.random won&#039;t accept explicit nil values as arguments.&lt;br /&gt;
	if first then&lt;br /&gt;
		if second then&lt;br /&gt;
			if first &amp;gt; second then -- Second number cannot be less than the first, or it causes an error.&lt;br /&gt;
				first, second = second, first&lt;br /&gt;
			end&lt;br /&gt;
			return getBigRandom(first, second)&lt;br /&gt;
		else&lt;br /&gt;
			return getBigRandom(1, first)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return math.random()&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Date function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function l.date(args)&lt;br /&gt;
	-- This function gets random dates, and takes timestamps as positional arguments.&lt;br /&gt;
	-- With no arguments specified, it outputs a random date in the current year.&lt;br /&gt;
	-- With two arguments specified, it outputs a random date between the timestamps.&lt;br /&gt;
	-- With one argument specified, the date is a random date between the unix epoch (1 Jan 1970) and the timestamp.&lt;br /&gt;
	-- The output can be formatted using the &amp;quot;format&amp;quot; argument, which works in the same way as the #time parser function.&lt;br /&gt;
	-- The default format is the standard Wikipedia timestamp.&lt;br /&gt;
	local lang = mw.language.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
	local function getDate(format, ts)&lt;br /&gt;
		local success, date = pcall(lang.formatDate, lang, format, ts)&lt;br /&gt;
		if success then&lt;br /&gt;
			return date&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local function getUnixTimestamp(ts)&lt;br /&gt;
		local unixts = getDate(&#039;U&#039;, ts)&lt;br /&gt;
		if unixts then&lt;br /&gt;
			return tonumber(unixts)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local t1 = args[1]&lt;br /&gt;
	local t2 = args[2]&lt;br /&gt;
	&lt;br /&gt;
	-- Find the start timestamp and the end timestamp.&lt;br /&gt;
	local startTimestamp, endTimestamp&lt;br /&gt;
	if not t1 then&lt;br /&gt;
		-- Find the first and last second in the current year.&lt;br /&gt;
		local currentYear = tonumber(getDate(&#039;Y&#039;))&lt;br /&gt;
		local currentYearStartUnix = tonumber(getUnixTimestamp(&#039;1 Jan &#039; .. tostring(currentYear)))&lt;br /&gt;
		local currentYearEndUnix = tonumber(getUnixTimestamp(&#039;1 Jan &#039; .. tostring(currentYear + 1))) - 1&lt;br /&gt;
		startTimestamp = &#039;@&#039; .. tostring(currentYearStartUnix) -- @ is used to denote Unix timestamps with lang:formatDate.&lt;br /&gt;
		endTimestamp = &#039;@&#039; .. tostring(currentYearEndUnix)&lt;br /&gt;
	elseif t1 and not t2 then&lt;br /&gt;
		startTimestamp = &#039;@0&#039; -- the Unix epoch, 1 January 1970&lt;br /&gt;
		endTimestamp = t1&lt;br /&gt;
	elseif t1 and t2 then&lt;br /&gt;
		startTimestamp = t1&lt;br /&gt;
		endTimestamp = t2&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get Unix timestamps and return errors for bad input (or for bugs in the underlying PHP library, of which there are unfortunately a few)&lt;br /&gt;
	local startTimestampUnix = getUnixTimestamp(startTimestamp)&lt;br /&gt;
	local endTimestampUnix = getUnixTimestamp(endTimestamp)&lt;br /&gt;
	if not startTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. tostring(startTimestamp) .. &#039;&amp;quot; was not recognised as a valid timestamp&#039;)&lt;br /&gt;
	elseif not endTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. tostring(endTimestamp) .. &#039;&amp;quot; was not recognised as a valid timestamp&#039;)&lt;br /&gt;
	elseif startTimestampUnix &amp;gt; endTimestampUnix then&lt;br /&gt;
		return raiseError(&#039;the start date must not be later than the end date (start date: &amp;quot;&#039; .. startTimestamp .. &#039;&amp;quot;, end date: &amp;quot;&#039; .. endTimestamp .. &#039;&amp;quot;)&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Get a random number between the two Unix timestamps and return it using the specified format.&lt;br /&gt;
	local randomTimestamp = getBigRandom(startTimestampUnix, endTimestampUnix)&lt;br /&gt;
	local dateFormat = args.format or &#039;H:i, d F Y (T)&#039;&lt;br /&gt;
	local result = getDate(dateFormat, &#039;@&#039; .. tostring(randomTimestamp))&lt;br /&gt;
	if result then&lt;br /&gt;
		return result&lt;br /&gt;
	else&lt;br /&gt;
		return raiseError(&#039;&amp;quot;&#039; .. dateFormat .. &#039;&amp;quot; is not a valid date format&#039;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- List functions&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function randomizeArray(t, limit)&lt;br /&gt;
	-- Randomizes an array. It works by iterating through the list backwards, each time swapping the entry&lt;br /&gt;
	-- &amp;quot;i&amp;quot; with a random entry. Courtesy of Xinhuan at http://forums.wowace.com/showthread.php?p=279756&lt;br /&gt;
	-- If the limit parameter is set, the array is shortened to that many elements after being randomized.&lt;br /&gt;
	-- The lowest possible value is 0, and the highest possible is the length of the array.&lt;br /&gt;
	local len = #t&lt;br /&gt;
	for i = len, 2, -1 do&lt;br /&gt;
		local r = math.random(i)&lt;br /&gt;
		t[i], t[r] = t[r], t[i]&lt;br /&gt;
	end&lt;br /&gt;
	if limit and limit &amp;lt; len then&lt;br /&gt;
		local ret = {}&lt;br /&gt;
		for i, v in ipairs(t) do&lt;br /&gt;
			if i &amp;gt; limit then&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
			ret[i] = v&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	else&lt;br /&gt;
		return t&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function removeBlanks(t)&lt;br /&gt;
	-- Removes blank entries from an array so that it can be used with ipairs.&lt;br /&gt;
	local ret = {}&lt;br /&gt;
	for k, v in pairs(t) do&lt;br /&gt;
		if type(k) == &#039;number&#039; then&lt;br /&gt;
			table.insert(ret, k)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(ret)&lt;br /&gt;
	for i, v in ipairs(ret) do&lt;br /&gt;
		ret[i] = t[v]&lt;br /&gt;
	end&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeSeparator(sep)&lt;br /&gt;
	if sep == &#039;space&#039; then&lt;br /&gt;
		-- Include an easy way to use spaces as separators.&lt;br /&gt;
		return &#039; &#039;&lt;br /&gt;
	elseif sep == &#039;newline&#039; then&lt;br /&gt;
		-- Ditto for newlines&lt;br /&gt;
		return &#039;\n&#039;&lt;br /&gt;
	elseif type(sep) == &#039;string&#039; then&lt;br /&gt;
		-- If the separator is a recognised MediaWiki separator, use that. Otherwise use the value of sep if it is a string.&lt;br /&gt;
		local mwseparators = {&#039;dot&#039;, &#039;pipe&#039;, &#039;comma&#039;, &#039;tpt-languages&#039;}&lt;br /&gt;
		for _, mwsep in ipairs(mwseparators) do&lt;br /&gt;
			if sep == mwsep then&lt;br /&gt;
				return mw.message.new( sep .. &#039;-separator&#039; ):plain()&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return sep&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeRandomList(args)&lt;br /&gt;
	local list = removeBlanks(args)&lt;br /&gt;
	list = randomizeArray(list, tonumber(args.limit))&lt;br /&gt;
	return list&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.item(args)&lt;br /&gt;
	-- Returns a random item from a numbered list.&lt;br /&gt;
	local list = removeBlanks(args)&lt;br /&gt;
	local len = #list&lt;br /&gt;
	if len &amp;gt;= 1 then&lt;br /&gt;
		return list[math.random(len)]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.list(args)&lt;br /&gt;
	-- Randomizes a list and concatenates the result with a separator.&lt;br /&gt;
	local list = makeRandomList(args)&lt;br /&gt;
	local sep = makeSeparator(args.sep or args.separator)&lt;br /&gt;
	return table.concat(list, sep)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.text_list(args)&lt;br /&gt;
	-- Randomizes a list and concatenates the result, text-style. Accepts separator and conjunction arguments.&lt;br /&gt;
	local list = makeRandomList(args)&lt;br /&gt;
	local sep = makeSeparator(args.sep or args.separator)&lt;br /&gt;
	local conj = makeSeparator(args.conj or args.conjunction)&lt;br /&gt;
	return mw.text.listToText(list, sep, conj)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function l.array(args)&lt;br /&gt;
	-- Returns a Lua array, randomized. For use from other Lua modules.&lt;br /&gt;
	return randomizeArray(args.t, args.limit)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- HTML list function&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function l.html_list(args, listType)&lt;br /&gt;
	-- Randomizes a list and turns it into an HTML list. Uses [[Module:List]].&lt;br /&gt;
	listType = listType or &#039;bulleted&#039;&lt;br /&gt;
	local listArgs = makeRandomList(args) -- Arguments for [[Module:List]].&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &#039;string&#039; then&lt;br /&gt;
			listArgs[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return makeList(listType, listArgs)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- The main function. Called from other Lua modules.&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
function p.main(funcName, args, listType)&lt;br /&gt;
	-- Sets the seed for the random number generator and passes control over to the other functions.&lt;br /&gt;
	local same = yesno(args.same)&lt;br /&gt;
	if not same then&lt;br /&gt;
		-- Generates a different number every time the module is called, even from the same page.&lt;br /&gt;
		-- This is because of the variability of os.clock (the time in seconds that the Lua script has been running for).&lt;br /&gt;
		math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000))&lt;br /&gt;
	else&lt;br /&gt;
		if not cfg.lowTraffic then&lt;br /&gt;
			-- Make the seed as random as possible without using anything time-based. This means that the same random number&lt;br /&gt;
			-- will be generated for the same input from the same page - necessary behaviour for some wikicode templates that&lt;br /&gt;
			-- assume bad pseudo-random-number generation.&lt;br /&gt;
			local stats = mw.site.stats&lt;br /&gt;
			local views = stats.views or 0 -- This is not always available, so we need a backup.&lt;br /&gt;
			local seed = views + stats.pages + stats.articles + stats.files + stats.edits + stats.users + stats.activeUsers + stats.admins -- Make this as random as possible without using os.time() or os.clock()&lt;br /&gt;
			math.randomseed(seed)&lt;br /&gt;
		else&lt;br /&gt;
			-- Make the random seed change every n seconds, where n is set by cfg.seedRefreshRate.&lt;br /&gt;
			-- This is useful for low-traffic wikis where new edits may not happen very often.&lt;br /&gt;
			math.randomseed(math.floor(os.time() / cfg.seedRefreshRate))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if type(args) ~= &#039;table&#039; then&lt;br /&gt;
		error(&#039;the second argument to p.main must be a table&#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return l[funcName](args, listType)&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
-- Process arguments from #invoke&lt;br /&gt;
--------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
local function makeWrapper(funcName, listType)&lt;br /&gt;
	-- This function provides a wrapper for argument-processing from #invoke.&lt;br /&gt;
	-- listType is only used with p.html_list, and is nil the rest of the time.&lt;br /&gt;
	return function (frame)&lt;br /&gt;
		-- If called via #invoke, use the args passed into the invoking template, or the args passed to #invoke if any exist.&lt;br /&gt;
		-- Otherwise assume args are being passed directly in from the debug console or from another Lua module.&lt;br /&gt;
		local origArgs&lt;br /&gt;
		if frame == mw.getCurrentFrame() then&lt;br /&gt;
			origArgs = frame:getParent().args&lt;br /&gt;
			for k, v in pairs(frame.args) do&lt;br /&gt;
				origArgs = frame.args&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			origArgs = frame&lt;br /&gt;
		end&lt;br /&gt;
		-- Trim whitespace and remove blank arguments.&lt;br /&gt;
		local args = {}&lt;br /&gt;
		for k, v in pairs(origArgs) do&lt;br /&gt;
			if type(v) == &#039;string&#039; then&lt;br /&gt;
				v = mw.text.trim(v)&lt;br /&gt;
			end&lt;br /&gt;
			if v ~= &#039;&#039; then&lt;br /&gt;
				args[k] = v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return p.main(funcName, args, listType)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Process arguments for HTML list functions.&lt;br /&gt;
local htmlListFuncs = {&lt;br /&gt;
	bulleted_list           = &#039;bulleted&#039;,&lt;br /&gt;
	unbulleted_list         = &#039;unbulleted&#039;,&lt;br /&gt;
	horizontal_list         = &#039;horizontal&#039;,&lt;br /&gt;
	ordered_list            = &#039;ordered&#039;,&lt;br /&gt;
	horizontal_ordered_list = &#039;horizontal_ordered&#039;&lt;br /&gt;
}&lt;br /&gt;
for funcName, listType in pairs(htmlListFuncs) do&lt;br /&gt;
	p[funcName] = makeWrapper(&#039;html_list&#039;, listType)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Process arguments for other functions.&lt;br /&gt;
local otherFuncs = {&#039;number&#039;, &#039;date&#039;, &#039;item&#039;, &#039;list&#039;, &#039;text_list&#039;}&lt;br /&gt;
for _, funcName in ipairs(otherFuncs) do&lt;br /&gt;
	p[funcName] = makeWrapper(funcName)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Limeee</name></author>
	</entry>
</feed>