<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATranscludable_section</id>
	<title>Module:Transcludable section - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATranscludable_section"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Transcludable_section&amp;action=history"/>
	<updated>2026-06-07T02:33:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Transcludable_section&amp;diff=147319&amp;oldid=prev</id>
		<title>imported&gt;Legoktm: Replace Module:No globals with require( &quot;strict&quot; )</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Transcludable_section&amp;diff=147319&amp;oldid=prev"/>
		<updated>2022-10-21T07:05:22Z</updated>

		<summary type="html">&lt;p&gt;Replace &lt;a href=&quot;/research/Module:No_globals&quot; title=&quot;Module:No globals&quot;&gt;Module:No globals&lt;/a&gt; with require( &amp;quot;strict&amp;quot; )&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module to create selectively transcluded sections using syntax which is&lt;br /&gt;
-- compatible with [[Module:Sports table]] and [[Module:Sports results]]&lt;br /&gt;
&lt;br /&gt;
require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Main function&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	-- Declare locals&lt;br /&gt;
	local tsection = frame:getParent().args[&amp;#039;transcludesection&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local bsection = frame.args[&amp;#039;section&amp;#039;] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local editlink = frame.args[&amp;#039;edit&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	-- Exit early if we are using section transclusion for a different section&lt;br /&gt;
	if( tsection ~= &amp;#039;&amp;#039; and bsection ~= &amp;#039;&amp;#039; ) then&lt;br /&gt;
		if( tsection ~= bsection ) then&lt;br /&gt;
			return &amp;#039;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local text = frame.args[&amp;#039;text&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	-- Get VTE button text (but only for non-empty text)&lt;br /&gt;
	local VTE_text = &amp;#039;&amp;#039;&lt;br /&gt;
	if (text ~= &amp;#039;&amp;#039; and editlink ~= &amp;#039;&amp;#039;) then&lt;br /&gt;
		VTE_text = frame:expandTemplate{ title = &amp;#039;navbar&amp;#039;, args = { mini=1, style=&amp;#039;float:right&amp;#039;, brackets=1, editlink} }&lt;br /&gt;
	end&lt;br /&gt;
	return VTE_text .. text&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Legoktm</name></author>
	</entry>
</feed>