<?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%3ASandbox%2FN8wilson%2FSection</id>
	<title>Module:Sandbox/N8wilson/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%3ASandbox%2FN8wilson%2FSection"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/N8wilson/Section&amp;action=history"/>
	<updated>2026-08-11T00:54:21Z</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:Sandbox/N8wilson/Section&amp;diff=145863&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:Sandbox/N8wilson/Section&amp;diff=145863&amp;oldid=prev"/>
		<updated>2022-10-23T20:58:39Z</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&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;
-- create a LST section by wrapping &amp;quot;body&amp;quot; with &amp;lt;section begin= /&amp;gt; and &amp;lt;section end= /&amp;gt; tags&lt;br /&gt;
function p.create_wrapped(frame)&lt;br /&gt;
	local sectionlabel   = frame.args[&amp;#039;label&amp;#039;] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local sectioncontent = frame.args[&amp;#039;body&amp;#039;]  or frame.args[&amp;#039;2&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    -- If no label return text without section wrapping&lt;br /&gt;
    if( sectionlabel == &amp;#039;&amp;#039; ) then&lt;br /&gt;
        return sectioncontent&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local base = mw.html.create()&lt;br /&gt;
    base = base:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
        &lt;br /&gt;
    base:tag(&amp;#039;section&amp;#039;, {selfClosing=true})&lt;br /&gt;
        :attr(&amp;#039;begin&amp;#039;, sectionlabel)&lt;br /&gt;
&lt;br /&gt;
    base:wikitext(sectioncontent)&lt;br /&gt;
&lt;br /&gt;
    base:tag(&amp;#039;br&amp;#039;, {selfClosing=true})&lt;br /&gt;
    &lt;br /&gt;
    base:tag(&amp;#039;section&amp;#039;, {selfClosing=true})&lt;br /&gt;
        :attr(&amp;#039;end&amp;#039;, sectionlabel)&lt;br /&gt;
&lt;br /&gt;
    base = base:done()&lt;br /&gt;
	return base&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Legoktm</name></author>
	</entry>
</feed>