<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIs_infobox_in_lead</id>
	<title>Module:Is infobox in lead - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIs_infobox_in_lead"/>
	<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Module:Is_infobox_in_lead&amp;action=history"/>
	<updated>2026-04-04T18:04:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the-democratika.com/wiki/index.php?title=Module:Is_infobox_in_lead&amp;diff=6654&amp;oldid=prev</id>
		<title>&gt;Galobtter: exclude certain infoboxes per talk</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Module:Is_infobox_in_lead&amp;diff=6654&amp;oldid=prev"/>
		<updated>2019-10-07T04:35:39Z</updated>

		<summary type="html">&lt;p&gt;exclude certain infoboxes per talk&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main (frame)&lt;br /&gt;
	return p._main (frame.args[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main (searchString)&lt;br /&gt;
	local content = mw.title.getCurrentTitle():getContent()&lt;br /&gt;
	local offset = string.find(content, &amp;quot;==&amp;quot;, 1 , true)&lt;br /&gt;
	if offset then&lt;br /&gt;
		local lead = string.sub(content, 1, offset-1)&lt;br /&gt;
		if (string.find(lead, searchString)) then&lt;br /&gt;
			lead = lead&lt;br /&gt;
				:gsub( &amp;quot;{{%s-[Ii]nfobox%s-mapframe&amp;quot;, &amp;quot;&amp;quot;) --don&amp;#039;t check for infobox mapframe&lt;br /&gt;
				:gsub( &amp;quot;{{%s-[Ii]nfobo[^}]-%|%s-embed%s-=%s-yes&amp;quot;, &amp;quot;&amp;quot;) --don&amp;#039;t check for embeded infoboxes&lt;br /&gt;
				:gsub( &amp;quot;{{%s-[Ii]nfobo[^}]-%|%s-child%s-=%s-yes&amp;quot;, &amp;quot;&amp;quot;) --don&amp;#039;t check for child infoboxes&lt;br /&gt;
			local iter = string.gmatch(lead, &amp;quot;{{%s-[Ii]nfobox&amp;quot;)&lt;br /&gt;
			iter()&lt;br /&gt;
			if not iter() then --if able to find two infoboxes in the lead, then don&amp;#039;t return true&lt;br /&gt;
				local iter2 = string.gmatch(content, searchString)&lt;br /&gt;
				iter2()&lt;br /&gt;
				if not iter2() then --if able to find two of the specific infobox in the article, then don&amp;#039;t return true&lt;br /&gt;
					return true&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;
return p&lt;/div&gt;</summary>
		<author><name>&gt;Galobtter</name></author>
	</entry>
</feed>