<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ATechnical_reasons</id>
	<title>Module:Technical reasons - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ATechnical_reasons"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Technical_reasons&amp;action=history"/>
	<updated>2026-04-26T14:36:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Module:Technical_reasons&amp;diff=177012&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Updating</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Technical_reasons&amp;diff=177012&amp;oldid=prev"/>
		<updated>2023-06-02T22:37:29Z</updated>

		<summary type="html">&lt;p&gt;Updating&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local mHatnote = require(&amp;#039;Module:Hatnote&amp;#039;)&lt;br /&gt;
local mHatlist = require(&amp;#039;Module:Hatnote list&amp;#039;)&lt;br /&gt;
local mYesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
local mArguments --initialize lazily&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.technicalReasons (frame)&lt;br /&gt;
	mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
	local args = mArguments.getArgs(frame)&lt;br /&gt;
	return p._technicalReasons(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._technicalReasons (args)&lt;br /&gt;
	--Return an error if no redirect&amp;#039;s provided&lt;br /&gt;
	if not args[1] then&lt;br /&gt;
		return mHatnote.makeWikitextError(&lt;br /&gt;
			&amp;#039;no redirect provided&amp;#039;,&lt;br /&gt;
			&amp;#039;Template:Technical reasons&amp;#039;,&lt;br /&gt;
			args.category&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	--get maxArg manually because getArgs() and table.maxn aren&amp;#039;t friends&lt;br /&gt;
	local maxArg = 0&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &amp;#039;number&amp;#039; and k &amp;gt; maxArg then maxArg = k end&lt;br /&gt;
	end&lt;br /&gt;
	--If there&amp;#039;s only 1–2 arguments, set from to 1 to default things nicely.&lt;br /&gt;
	--Note that if (not args[2]) this doesn&amp;#039;t matter either way.&lt;br /&gt;
	local from = maxArg &amp;gt; 2 and 2 or 1&lt;br /&gt;
	--Structure the forSee table&lt;br /&gt;
	local forSee = mHatlist.forSeeArgsToTable(args, from)&lt;br /&gt;
	--Suppresses defaulting; for-see table rows that would include defaulting&lt;br /&gt;
	--are set to nil.&lt;br /&gt;
	for k, v in pairs(forSee) do&lt;br /&gt;
		if not v.use or #v.pages == 0 then forSee[k] = nil end&lt;br /&gt;
	end&lt;br /&gt;
	--Stringify the forSee table or set it nil&lt;br /&gt;
	forSee = #forSee ~= 0 and mHatlist.forSeeTableToString(forSee) or nil&lt;br /&gt;
	local whatRedirects = mYesno(args.prefix) and &amp;#039;terms beginning with &amp;quot;&amp;#039; .. args[1] .. &amp;#039;&amp;quot; redirect&amp;#039; or &amp;#039;&amp;quot;&amp;#039; .. args[1] .. &amp;#039;&amp;quot; redirects&amp;#039;&lt;br /&gt;
	local lead = string.format(&lt;br /&gt;
		&amp;#039;For [[w:Wikipedia:Naming conventions (technical restrictions)#Forbidden characters|technical reasons]], %s here.&amp;#039;,&lt;br /&gt;
		whatRedirects&lt;br /&gt;
	)&lt;br /&gt;
	local text = table.concat({lead, forSee}, &amp;#039; &amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	local options = {extraclasses = &amp;#039;plainlinks selfreference noprint&amp;#039;, selfref = true}&lt;br /&gt;
	&lt;br /&gt;
	return mHatnote._hatnote(text, options)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>