<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocumentation%2Fsandbox</id>
	<title>Module:Documentation/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocumentation%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Documentation/sandbox&amp;action=history"/>
	<updated>2026-04-26T19:19:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:Documentation/sandbox&amp;diff=34461&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;-- &lt;nowiki&gt; local dependencyList = require( &#039;Module:DependencyList&#039; ) local yn = require( &#039;Module:Yesno&#039; ) local p = {}  function p.doc( frame )     local title = mw.title.getCurrentTitle()     local args = frame:getParent().args     local page = args[1] or mw.ustring.gsub( title.fullText, &#039;/doc$&#039;, &#039;&#039; )     -- local addDependencyList = yn( args.DependencyList or true )     local addDependencyList = true     local ret, cats, ret1, ret2, ret3     local onModule = title.nam...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:Documentation/sandbox&amp;diff=34461&amp;oldid=prev"/>
		<updated>2024-10-16T23:00:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- &amp;lt;nowiki&amp;gt; local dependencyList = require( &amp;#039;Module:DependencyList&amp;#039; ) local yn = require( &amp;#039;Module:Yesno&amp;#039; ) local p = {}  function p.doc( frame )     local title = mw.title.getCurrentTitle()     local args = frame:getParent().args     local page = args[1] or mw.ustring.gsub( title.fullText, &amp;#039;/doc$&amp;#039;, &amp;#039;&amp;#039; )     -- local addDependencyList = yn( args.DependencyList or true )     local addDependencyList = true     local ret, cats, ret1, ret2, ret3     local onModule = title.nam...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;nowiki&amp;gt;&lt;br /&gt;
local dependencyList = require( &amp;#039;Module:DependencyList&amp;#039; )&lt;br /&gt;
local yn = require( &amp;#039;Module:Yesno&amp;#039; )&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.doc( frame )&lt;br /&gt;
    local title = mw.title.getCurrentTitle()&lt;br /&gt;
    local args = frame:getParent().args&lt;br /&gt;
    local page = args[1] or mw.ustring.gsub( title.fullText, &amp;#039;/doc$&amp;#039;, &amp;#039;&amp;#039; )&lt;br /&gt;
    -- local addDependencyList = yn( args.DependencyList or true )&lt;br /&gt;
    local addDependencyList = true&lt;br /&gt;
    local ret, cats, ret1, ret2, ret3&lt;br /&gt;
    local onModule = title.namespace == 828&lt;br /&gt;
    &lt;br /&gt;
    -- subpage header&lt;br /&gt;
    if title.subpageText == &amp;#039;doc&amp;#039; then&lt;br /&gt;
        ret = mw.html.create( &amp;#039;table&amp;#039; )&lt;br /&gt;
            :addClass( &amp;#039;messagebox&amp;#039; )&lt;br /&gt;
            :addClass( &amp;#039;info&amp;#039; )&lt;br /&gt;
            :tag( &amp;#039;tr&amp;#039; )&lt;br /&gt;
                :tag( &amp;#039;td&amp;#039; )&lt;br /&gt;
                    :css( &amp;#039;width&amp;#039;, &amp;#039;40px&amp;#039; )&lt;br /&gt;
                    :wikitext( &amp;#039;[[File:Information icon-grey.svg|35px|center|link=]]&amp;#039; )&lt;br /&gt;
                    :done()&lt;br /&gt;
                :tag( &amp;#039;td&amp;#039; )&lt;br /&gt;
                    :tag( &amp;#039;b&amp;#039; )&lt;br /&gt;
                        :wikitext( &amp;#039;This is a documentation subpage for [[&amp;#039; .. page .. &amp;#039;]].&amp;#039; )&lt;br /&gt;
                        :done()&lt;br /&gt;
                    :tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
                        :css({ [&amp;#039;font-size&amp;#039;] = &amp;#039;0.85em&amp;#039;, [&amp;#039;line-height&amp;#039;] = &amp;#039;1.4em&amp;#039; })&lt;br /&gt;
                        :wikitext(&lt;br /&gt;
                        	string.format(&lt;br /&gt;
                        		&amp;#039;It contains usage information, categories, and other content that is not part of the original %s page.&amp;#039;,&lt;br /&gt;
                        	    onModule and &amp;#039;module&amp;#039; or &amp;#039;template&amp;#039;&lt;br /&gt;
                        	)&lt;br /&gt;
                    	)&lt;br /&gt;
                        :done()&lt;br /&gt;
                    :done()&lt;br /&gt;
                :done()&lt;br /&gt;
            :done()&lt;br /&gt;
&lt;br /&gt;
        if title.namespace == 10 then -- Template namespace&lt;br /&gt;
            cats = &amp;#039;[[Category:Template documentation|&amp;#039; .. title.baseText .. &amp;#039;]]&amp;#039;&lt;br /&gt;
            ret2 = addDependencyList and dependencyList._main() or &amp;#039;&amp;#039;&lt;br /&gt;
        elseif title.namespace == 116 then -- Calculator namespace&lt;br /&gt;
        	cats = &amp;#039;&amp;#039;&lt;br /&gt;
        	ret2 = addDependencyList and dependencyList._main() or &amp;#039;&amp;#039;&lt;br /&gt;
        elseif title.namespace == 828 then -- Module namespace&lt;br /&gt;
        	cats = &amp;#039;[[Category:Module documentation|&amp;#039; .. title.baseText .. &amp;#039;]]&amp;#039;&lt;br /&gt;
        	ret2 = addDependencyList and dependencyList._main() or &amp;#039;&amp;#039;&lt;br /&gt;
        else&lt;br /&gt;
        	cats = &amp;#039;&amp;#039;&lt;br /&gt;
        	ret2 = &amp;#039;&amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
        &lt;br /&gt;
        return tostring( ret ) .. ret2 .. cats&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- template header&lt;br /&gt;
    -- don&amp;#039;t use mw.html as we aren&amp;#039;t closing the main div tag&lt;br /&gt;
    ret1 = &amp;#039;&amp;lt;div class=&amp;quot;documentation&amp;quot;&amp;gt;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    ret2 = mw.html.create( nil )&lt;br /&gt;
        :tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
            :addClass( &amp;#039;doc-header&amp;#039; )&lt;br /&gt;
            :tag( &amp;#039;span&amp;#039; )&lt;br /&gt;
            	:addClass( &amp;#039;doc-title&amp;#039; )&lt;br /&gt;
            	:wikitext( string.format(&amp;#039;%s documentation&amp;#039;, onModule and &amp;#039;Module&amp;#039; or &amp;#039;Template&amp;#039;) )&lt;br /&gt;
            	:done()&lt;br /&gt;
            :done()&lt;br /&gt;
        :tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
            :addClass( &amp;#039;doc-transclusion&amp;#039; )&lt;br /&gt;
            :tag( &amp;#039;span&amp;#039; )&lt;br /&gt;
            	:addClass( &amp;#039;documentation-documentation&amp;#039; )&lt;br /&gt;
            	:wikitext( &amp;#039;This documentation is transcluded from [[&amp;#039; .. page .. &amp;#039;/doc]]. &amp;#039; )&lt;br /&gt;
            	:done()&lt;br /&gt;
            :tag( &amp;#039;span&amp;#039; )&lt;br /&gt;
            	:addClass( &amp;#039;doc-editlinks plainlinks&amp;#039; )&lt;br /&gt;
            	:wikitext(&lt;br /&gt;
	            	&amp;#039;[[&amp;#039; .. tostring( mw.uri.fullUrl( page .. &amp;#039;/doc&amp;#039;, {action=&amp;#039;edit&amp;#039;} ) ) .. &amp;#039; edit]] &amp;#039; ..&lt;br /&gt;
	                &amp;#039;[&amp;lt;span class=&amp;quot;jsPurgeLink&amp;quot;&amp;gt;[&amp;#039; .. tostring( mw.uri.fullUrl( title.fullText, {action=&amp;#039;purge&amp;#039;} ) ) .. &amp;#039; purge]&amp;lt;/span&amp;gt;]&amp;#039;&lt;br /&gt;
	            )&lt;br /&gt;
	            :done()&lt;br /&gt;
            :done()&lt;br /&gt;
    &lt;br /&gt;
    ret3 = addDependencyList and dependencyList._main() or &amp;#039;&amp;#039;&lt;br /&gt;
        &lt;br /&gt;
    return ret1 .. tostring( ret2 ) .. &amp;#039;&amp;lt;div class=&amp;quot;documentation-content&amp;quot;&amp;gt;&amp;#039; .. ret3&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;br /&gt;
&lt;br /&gt;
-- &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>