<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hna.wiki/Module:Replace?action=history&amp;feed=atom</id>
	<title>Module:Replace - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hna.wiki/Module:Replace?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://hna.wiki/Module:Replace?action=history"/>
	<updated>2026-07-14T18:07:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://hna.wiki/Module:Replace?diff=982&amp;oldid=prev</id>
		<title>919dd: Protected &quot;Module:Replace&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://hna.wiki/Module:Replace?diff=982&amp;oldid=prev"/>
		<updated>2025-08-29T22:07:24Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/Module:Replace&quot; title=&quot;Module:Replace&quot;&gt;Module:Replace&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:07, 29 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-186:rev-982 --&gt;
&lt;/table&gt;</summary>
		<author><name>919dd</name></author>
	</entry>
	<entry>
		<id>https://hna.wiki/Module:Replace?diff=186&amp;oldid=prev</id>
		<title>Sangodono: Created page with &quot;-- Module copied from the Genshin Impact wiki -- Revision as of 1-11-2024 local p = {} local ie = require(&#039;Module:Feature&#039;).isEmpty  function p.main(frame) 	local args = require(&#039;Module:Arguments&#039;).getArgs(frame, { 		parentFirst = true, 		wrapper = { &#039;Template:Replace&#039; } 	}) 	return p._main(args) end  function p._main(args) 	local inputString = args[1] or nil 	local search = args[2] or args.s1 or nil 	local replace = args[3] or args.r1 or &#039;&#039;  	-- argument validation 	if...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hna.wiki/Module:Replace?diff=186&amp;oldid=prev"/>
		<updated>2025-08-29T11:30:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module copied from the Genshin Impact wiki -- Revision as of 1-11-2024 local p = {} local ie = require(&amp;#039;Module:Feature&amp;#039;).isEmpty  function p.main(frame) 	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame, { 		parentFirst = true, 		wrapper = { &amp;#039;Template:Replace&amp;#039; } 	}) 	return p._main(args) end  function p._main(args) 	local inputString = args[1] or nil 	local search = args[2] or args.s1 or nil 	local replace = args[3] or args.r1 or &amp;#039;&amp;#039;  	-- argument validation 	if...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module copied from the Genshin Impact wiki&lt;br /&gt;
-- Revision as of 1-11-2024&lt;br /&gt;
local p = {}&lt;br /&gt;
local ie = require(&amp;#039;Module:Feature&amp;#039;).isEmpty&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame, {&lt;br /&gt;
		parentFirst = true,&lt;br /&gt;
		wrapper = { &amp;#039;Template:Replace&amp;#039; }&lt;br /&gt;
	})&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local inputString = args[1] or nil&lt;br /&gt;
	local search = args[2] or args.s1 or nil&lt;br /&gt;
	local replace = args[3] or args.r1 or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	-- argument validation&lt;br /&gt;
	if ie(inputString) then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if ie(search) then&lt;br /&gt;
		return inputstring&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if args.unstrip then&lt;br /&gt;
		inputString = mw.text.unstrip(inputString)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if args[4] or args.s2 then&lt;br /&gt;
		local y = 2&lt;br /&gt;
		while args[y] or args[&amp;#039;s&amp;#039; .. y/2] do&lt;br /&gt;
			inputString = p.Replace(inputString, (args[y] or args[&amp;#039;s&amp;#039;..y/2]), (args[y+1] or args[&amp;#039;r&amp;#039;..y/2] or &amp;#039;&amp;#039;))&lt;br /&gt;
			y = y + 2&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		inputString = p.Replace(inputString, search, replace)&lt;br /&gt;
	end&lt;br /&gt;
	return inputString&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.Replace(str, search, replace)&lt;br /&gt;
	-- replace key terms&lt;br /&gt;
	search = search:gsub(&amp;#039;{space}&amp;#039;, &amp;#039; &amp;#039;)&lt;br /&gt;
	replace = replace:gsub(&amp;#039;{space}&amp;#039;, &amp;#039; &amp;#039;):gsub(&amp;#039;{newline}&amp;#039;, &amp;#039;&amp;lt;br /&amp;gt;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- result&lt;br /&gt;
	return str:gsub(search, replace)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sangodono</name></author>
	</entry>
</feed>