<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bharatpedia.org/w/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://en.bharatpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ATranscludable_section"/>
	<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Module:Transcludable_section&amp;action=history"/>
	<updated>2026-08-02T07:01:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://en.bharatpedia.org/w/index.php?title=Module:Transcludable_section&amp;diff=434414&amp;oldid=prev</id>
		<title>WikiDwarf: Add</title>
		<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Module:Transcludable_section&amp;diff=434414&amp;oldid=prev"/>
		<updated>2023-10-12T06:02:15Z</updated>

		<summary type="html">&lt;p&gt;Add&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 frame:getParent().args[&amp;#039;section&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;
	-- Rewrite anchor links&lt;br /&gt;
	local baselink = frame:getParent():getTitle()&lt;br /&gt;
	text = mw.ustring.gsub(text, &amp;#039;(%[%[)(#[^%[%]]*%|)&amp;#039;, &amp;#039;%1&amp;#039; .. baselink .. &amp;#039;%2&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, &amp;#039;:&amp;#039; .. baselink} }&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>WikiDwarf</name></author>
	</entry>
</feed>