<?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%3ANumbered_subpages%2Fsandbox</id>
	<title>Module:Numbered subpages/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ANumbered_subpages%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Numbered_subpages/sandbox&amp;action=history"/>
	<updated>2026-04-20T00:55:10Z</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:Numbered_subpages/sandbox&amp;diff=144155&amp;oldid=prev</id>
		<title>imported&gt;Dreamy Jazz: test</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Numbered_subpages/sandbox&amp;diff=144155&amp;oldid=prev"/>
		<updated>2018-07-18T21:34:43Z</updated>

		<summary type="html">&lt;p&gt;test&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{numbered subpages}}.&lt;br /&gt;
&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
p = {}&lt;br /&gt;
&lt;br /&gt;
local function ifexist(page)&lt;br /&gt;
    if not page then return false end&lt;br /&gt;
    if mw.title.new(page).exists then return true end&lt;br /&gt;
    return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local maxk = tonumber(args.max or &amp;#039;50&amp;#039;) or 50&lt;br /&gt;
	local mink = tonumber(args.min or &amp;#039;1&amp;#039;) or 1&lt;br /&gt;
	local root = &amp;#039;&amp;#039;&lt;br /&gt;
	local missing = args.missing or (args.max and &amp;#039;transclude&amp;#039; or &amp;#039;skip&amp;#039;)&lt;br /&gt;
	local res = &amp;#039;&amp;#039;&lt;br /&gt;
	local headertemplate = args.headertemplate or &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	if missing ~= &amp;#039;transclude&amp;#039; then&lt;br /&gt;
		root = frame:preprocess(&amp;#039;{{FULLPAGENAME}}&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	maxk = (maxk &amp;gt; (mink + 250)) and (mink + 250) or maxk&lt;br /&gt;
	for i=mink,maxk do&lt;br /&gt;
		if missing == &amp;#039;transclude&amp;#039; then&lt;br /&gt;
			if headertemplateno == &amp;#039;&amp;#039; then&lt;br /&gt;
				res = res .. frame:expandTemplate{title = &amp;#039;subpage&amp;#039;, args = { i } }&lt;br /&gt;
			else &lt;br /&gt;
				res = res .. frame:expandTemplate{title = &amp;#039;subpage&amp;#039;, args = { i, headertemplate=headertemplate } }&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			if ifexist(root .. &amp;#039;/&amp;#039; .. i) then&lt;br /&gt;
				if headertemplateno == &amp;#039;&amp;#039; then&lt;br /&gt;
					res = res .. frame:expandTemplate{title = &amp;#039;subpage&amp;#039;, args = { i } }&lt;br /&gt;
				else &lt;br /&gt;
					res = res .. frame:expandTemplate{title = &amp;#039;subpage&amp;#039;, args = { i, headertemplate=headertemplate } }&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
				if missing == &amp;#039;link&amp;#039; then&lt;br /&gt;
					res = res .. &amp;#039;[[&amp;#039; .. root .. &amp;#039;/&amp;#039; .. i .. &amp;#039;]] &amp;#039;&lt;br /&gt;
				elseif missing == &amp;#039;stop&amp;#039; then&lt;br /&gt;
					i = maxk + 1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Dreamy Jazz</name></author>
	</entry>
</feed>