<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mcbusinesscraft.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocumentation</id>
	<title>Module:Documentation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mcbusinesscraft.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocumentation"/>
	<link rel="alternate" type="text/html" href="https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;action=history"/>
	<updated>2026-04-12T16:18:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=2336&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=2336&amp;oldid=prev"/>
		<updated>2024-01-26T00:16:19Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:16, 25 January 2024&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key bc_wiki-wiki_:diff::1.12:old-2335:rev-2336 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=2335&amp;oldid=prev</id>
		<title>wikipedia&gt;DannyS712: remove unneeded return variables (if this breaks anything feel free to revert without discussing with me first)</title>
		<link rel="alternate" type="text/html" href="https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=2335&amp;oldid=prev"/>
		<updated>2024-01-07T08:09:04Z</updated>

		<summary type="html">&lt;p&gt;remove unneeded return variables (if this breaks anything feel free to revert without discussing with me first)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:09, 7 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l766&quot;&gt;Line 766:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 766:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		return nil&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		return nil&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	local ret&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if docTitle.exists then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if docTitle.exists then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		-- /doc exists; link to it.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		-- /doc exists; link to it.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l774&quot;&gt;Line 774:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 773:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local historyDisplay = message(&amp;#039;history-link-display&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local historyDisplay = message(&amp;#039;history-link-display&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local historyLink = makeWikilink(&amp;quot;Special:PageHistory/&amp;quot; .. docTitle.prefixedText, historyDisplay)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local historyLink = makeWikilink(&amp;quot;Special:PageHistory/&amp;quot; .. docTitle.prefixedText, historyDisplay)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ret = &lt;/del&gt;message(&#039;transcluded-from-blurb&#039;, {docLink})&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;return &lt;/ins&gt;message(&#039;transcluded-from-blurb&#039;, {docLink})&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. &amp;#039; &amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. &amp;#039; &amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. makeToolbar(editLink, historyLink)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. makeToolbar(editLink, historyLink)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l783&quot;&gt;Line 783:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 782:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local createDisplay = message(&amp;#039;create-link-display&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local createDisplay = message(&amp;#039;create-link-display&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local createLink = makeUrlLink(createUrl, createDisplay)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local createLink = makeUrlLink(createUrl, createDisplay)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ret = &lt;/del&gt;message(&#039;create-module-doc-blurb&#039;, {createLink})&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;return &lt;/ins&gt;message(&#039;create-module-doc-blurb&#039;, {createLink})&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. &amp;#039;&amp;lt;br /&amp;gt;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			.. &amp;#039;&amp;lt;br /&amp;gt;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	return ret&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l969&quot;&gt;Line 969:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 967:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local subpage = title.subpageText&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local subpage = title.subpageText&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	local ret = &#039;&#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if message(&amp;#039;display-strange-usage-category&amp;#039;, nil, &amp;#039;boolean&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if message(&amp;#039;display-strange-usage-category&amp;#039;, nil, &amp;#039;boolean&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		and (&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		and (&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l976&quot;&gt;Line 976:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 973:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ret = ret .. &lt;/del&gt;makeCategoryLink(message(&#039;strange-usage-category&#039;))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;return &lt;/ins&gt;makeCategoryLink(message(&#039;strange-usage-category&#039;))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ret&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bc_wiki-wiki_:diff::1.12:old-1160:rev-2335 --&gt;
&lt;/table&gt;</summary>
		<author><name>wikipedia&gt;DannyS712</name></author>
	</entry>
	<entry>
		<id>https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=1160&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=1160&amp;oldid=prev"/>
		<updated>2023-12-22T02:37:12Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:37, 21 December 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key bc_wiki-wiki_:diff::1.12:old-172:rev-1160 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=172&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=172&amp;oldid=prev"/>
		<updated>2023-12-17T18:54:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:54, 17 December 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key bc_wiki-wiki_:diff::1.12:old-171:rev-172 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=171&amp;oldid=prev</id>
		<title>wikipedia&gt;Pppery: Split Category:Template sandboxes per CfD</title>
		<link rel="alternate" type="text/html" href="https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=171&amp;oldid=prev"/>
		<updated>2023-10-28T01:26:52Z</updated>

		<summary type="html">&lt;p&gt;Split &lt;a href=&quot;/index.php?title=Category:Template_sandboxes&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Template sandboxes (page does not exist)&quot;&gt;Category:Template sandboxes&lt;/a&gt; per CfD&lt;/p&gt;
&lt;a href=&quot;https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;amp;diff=171&amp;amp;oldid=1159&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>wikipedia&gt;Pppery</name></author>
	</entry>
	<entry>
		<id>https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=1159&amp;oldid=prev</id>
		<title>minecraft&gt;Number 3434 at 10:45, 18 April 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.mcbusinesscraft.com/index.php?title=Module:Documentation&amp;diff=1159&amp;oldid=prev"/>
		<updated>2023-04-18T10:45:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local defaultDocPage = &amp;#039;doc&amp;#039;&lt;br /&gt;
&lt;br /&gt;
local getType = function( namespace, page )&lt;br /&gt;
	local pageType = &amp;#039;template&amp;#039;&lt;br /&gt;
	if namespace == &amp;#039;Module&amp;#039; then&lt;br /&gt;
		pageType = &amp;#039;module&amp;#039;&lt;br /&gt;
	elseif namespace == &amp;#039;Widget&amp;#039; then&lt;br /&gt;
		pageType = &amp;#039;widget&amp;#039;&lt;br /&gt;
	elseif page.fullText:gsub( &amp;#039;/&amp;#039; .. defaultDocPage .. &amp;#039;$&amp;#039;, &amp;#039;&amp;#039; ):find( &amp;#039;%.css$&amp;#039; ) then&lt;br /&gt;
		pageType = &amp;#039;stylesheet&amp;#039;&lt;br /&gt;
	elseif page.fullText:gsub( &amp;#039;/&amp;#039; .. defaultDocPage .. &amp;#039;$&amp;#039;, &amp;#039;&amp;#039; ):find( &amp;#039;%.js$&amp;#039; ) then&lt;br /&gt;
		pageType = &amp;#039;script&amp;#039;&lt;br /&gt;
	elseif namespace == &amp;#039;MediaWiki&amp;#039; then&lt;br /&gt;
		pageType = &amp;#039;message&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return pageType&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Creating a documentation page or transclusion through {{subst:docc}}&lt;br /&gt;
function p.create( f )&lt;br /&gt;
	local args = require( &amp;#039;Module:ProcessArgs&amp;#039; ).norm()&lt;br /&gt;
	local page = mw.title.getCurrentTitle()&lt;br /&gt;
	local docPage = args.page or page.nsText .. &amp;#039;:&amp;#039; .. page.baseText .. &amp;#039;/&amp;#039; .. defaultDocPage&lt;br /&gt;
	&lt;br /&gt;
	local out&lt;br /&gt;
	if not args.content and tostring( page ) == docPage then&lt;br /&gt;
		out = f:preprocess( &amp;#039;{{subst:Template:Documentation/preload}}&amp;#039; )&lt;br /&gt;
	else&lt;br /&gt;
		local templateArgs = {}&lt;br /&gt;
		for _, key in ipairs{ &amp;#039;type&amp;#039;, &amp;#039;page&amp;#039;, &amp;#039;content&amp;#039; } do&lt;br /&gt;
			local val = args[key]&lt;br /&gt;
			if val then&lt;br /&gt;
				if key == &amp;#039;content&amp;#039; then val = &amp;#039;\n&amp;#039; .. val .. &amp;#039;\n&amp;#039; end&lt;br /&gt;
				table.insert( templateArgs, key .. &amp;#039;=&amp;#039; .. val )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		out = &amp;#039;{{documentation|&amp;#039; .. table.concat( templateArgs, &amp;#039;|&amp;#039; ) .. &amp;#039;}}&amp;#039;&lt;br /&gt;
		out = out:gsub( &amp;#039;|}}&amp;#039;, &amp;#039;}}&amp;#039; )&lt;br /&gt;
		&lt;br /&gt;
		if not args.content then&lt;br /&gt;
			out = out .. &amp;#039;\n&amp;lt;!-- Put categories/interwikis on the documentation page --&amp;gt;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not mw.isSubsting() then&lt;br /&gt;
		out = f:preprocess( out )&lt;br /&gt;
		if not args.nocat then&lt;br /&gt;
			out = out .. &amp;#039;[[Category:Pages with templates requiring substitution]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Header on the documentation page&lt;br /&gt;
function p.docPage( f )&lt;br /&gt;
	local args = require( &amp;#039;Module:ProcessArgs&amp;#039; ).merge( true )&lt;br /&gt;
	local badDoc = args.baddoc&lt;br /&gt;
	if f:callParserFunction( &amp;#039;#dplvar&amp;#039;, &amp;#039;$doc noheader&amp;#039; ) == &amp;#039;1&amp;#039; then&lt;br /&gt;
		if badDoc then&lt;br /&gt;
			f:callParserFunction( &amp;#039;#dplvar:set&amp;#039;, &amp;#039;$doc bad&amp;#039;, &amp;#039;1&amp;#039; )&lt;br /&gt;
		end&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local page = mw.title.getCurrentTitle()&lt;br /&gt;
	local subpage = page.subpageText&lt;br /&gt;
	if subpage == &amp;#039;sandbox&amp;#039; or subpage == &amp;#039;testcases&amp;#039; then&lt;br /&gt;
		page = page.basePageTitle&lt;br /&gt;
	end&lt;br /&gt;
	local namespace = page.nsText&lt;br /&gt;
	local pageType = mw.ustring.lower( args.type or getType( namespace, page ) )&lt;br /&gt;
	&lt;br /&gt;
	local body = mw.html.create( &amp;#039;div&amp;#039; ):addClass( &amp;#039;documentation-header&amp;#039; )&lt;br /&gt;
	body&lt;br /&gt;
		:addClass( badDoc and &amp;#039;documentation-badDoc&amp;#039; or &amp;#039;&amp;#039; )&lt;br /&gt;
		:css{&lt;br /&gt;
			[&amp;#039;margin-bottom&amp;#039;] = &amp;#039;0.8em&amp;#039;,&lt;br /&gt;
			padding = &amp;#039;0.8em 1em 0.7em&amp;#039;,&lt;br /&gt;
			[&amp;#039;background-color&amp;#039;] = &amp;#039;#&amp;#039; .. ( badDoc and &amp;#039;888888&amp;#039; or &amp;#039;33333333&amp;#039; ),&lt;br /&gt;
			border = &amp;#039;1px solid #AAA&amp;#039;&lt;br /&gt;
		}&lt;br /&gt;
		:tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
			:attr( &amp;#039;id&amp;#039;, &amp;#039;documentation-header-tools&amp;#039; )&lt;br /&gt;
			:css( &amp;#039;float&amp;#039;, &amp;#039;right&amp;#039; )&lt;br /&gt;
			:wikitext( &amp;#039;[[&amp;#039;, page:fullUrl( &amp;#039;action=purge&amp;#039; ), &amp;#039; &amp;#039; .. f:preprocess(&amp;#039;{{lc:{{int:page-header-action-button-purge}}}}&amp;#039;) .. &amp;#039;]]&amp;#039; )&lt;br /&gt;
		:done()&lt;br /&gt;
		:wikitext(&lt;br /&gt;
			&amp;#039;This is the documentation page. It &amp;#039;,&lt;br /&gt;
			pageType == &amp;#039;module&amp;#039; and &amp;#039;will&amp;#039; or &amp;#039;should&amp;#039;,&lt;br /&gt;
			&amp;#039; be transcluded into the main &amp;#039;, pageType, &amp;#039; page. &amp;#039;,&lt;br /&gt;
			&amp;#039;See [[Template:Documentation]] for more information&amp;#039;&lt;br /&gt;
		)&lt;br /&gt;
	if badDoc then&lt;br /&gt;
		body:wikitext( &amp;quot;&amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;This &amp;quot;, pageType, &amp;quot;&amp;#039;s documentation needs improving or additional information.&amp;#039;&amp;#039;&amp;#039;&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
	if not ( args.nocat or namespace == &amp;#039;User&amp;#039; ) then&lt;br /&gt;
		body:wikitext( &amp;#039;[[Category:Documentation pages]]&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return body&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Wrapper around the documentation on the main page&lt;br /&gt;
function p.page( f )&lt;br /&gt;
	-- mw.text.trim uses mw.ustring.gsub, which silently fails on large strings&lt;br /&gt;
	local function trim( s )&lt;br /&gt;
		return (s:gsub( &amp;#039;^[\t\r\n\f ]+&amp;#039;, &amp;#039;&amp;#039; ):gsub( &amp;#039;[\t\r\n\f ]+$&amp;#039;, &amp;#039;&amp;#039; ))&lt;br /&gt;
		--return string.gsub( s, &amp;#039;^[\t\r\n\f ]*(.-)[\t\r\n\f ]*$&amp;#039;, &amp;#039;%1&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	local args = require( &amp;#039;Module:ProcessArgs&amp;#039; ).merge( true )&lt;br /&gt;
	local page = mw.title.getCurrentTitle()&lt;br /&gt;
	local subpage = page.subpageText&lt;br /&gt;
	if subpage == &amp;#039;sandbox&amp;#039; or subpage == &amp;#039;testcases&amp;#039; then&lt;br /&gt;
		page = page.basePageTitle&lt;br /&gt;
	end&lt;br /&gt;
	local namespace = page.nsText&lt;br /&gt;
	local docText = trim( args.content or &amp;#039;&amp;#039; )&lt;br /&gt;
	if docText == &amp;#039;&amp;#039; then docText = nil end&lt;br /&gt;
	&lt;br /&gt;
	local docPage&lt;br /&gt;
	local noDoc&lt;br /&gt;
	if docText then&lt;br /&gt;
		docPage = page&lt;br /&gt;
	else&lt;br /&gt;
		docPage = mw.title.new( args.page or namespace .. &amp;#039;:&amp;#039; .. page.text .. &amp;#039;/&amp;#039; .. defaultDocPage )&lt;br /&gt;
		noDoc = args.nodoc or not docPage.exists&lt;br /&gt;
	end&lt;br /&gt;
	local badDoc = args.baddoc&lt;br /&gt;
	local pageType = mw.ustring.lower( args.type or getType( namespace, page ) )&lt;br /&gt;
	&lt;br /&gt;
	if not docText and not noDoc then&lt;br /&gt;
		f:callParserFunction( &amp;#039;#dplvar:set&amp;#039;, &amp;#039;$doc noheader&amp;#039;, &amp;#039;1&amp;#039; )&lt;br /&gt;
		docText = trim( f:expandTemplate{ title = &amp;#039;:&amp;#039; .. docPage.fullText }  )&lt;br /&gt;
		if f:callParserFunction( &amp;#039;#dplvar&amp;#039;, &amp;#039;$doc bad&amp;#039; ) == &amp;#039;1&amp;#039; then&lt;br /&gt;
			badDoc = 1&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if docText == &amp;#039;&amp;#039; then&lt;br /&gt;
			docText = nil&lt;br /&gt;
			noDoc = 1&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if docText then&lt;br /&gt;
		docText = &amp;#039;\n&amp;#039; .. docText .. &amp;#039;\n&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local action = f:preprocess(&amp;#039;{{lc:{{int:edit}}}}&amp;#039;)&lt;br /&gt;
	local preload = &amp;#039;&amp;#039;&lt;br /&gt;
	local docClass = &amp;#039;&amp;#039;&lt;br /&gt;
	local colour = &amp;#039;00000000&amp;#039;&lt;br /&gt;
	local message&lt;br /&gt;
	local category&lt;br /&gt;
	if noDoc then&lt;br /&gt;
		action = f:preprocess(&amp;#039;{{lc:{{int:create}}}}&amp;#039;)&lt;br /&gt;
		preload = &amp;#039;&amp;amp;preload=Template:Documentation/preload&amp;#039;&lt;br /&gt;
		docClass = &amp;#039;documentation-noDoc&amp;#039;&lt;br /&gt;
		colour = &amp;#039;33333333&amp;#039;&lt;br /&gt;
		message = &amp;quot;&amp;#039;&amp;#039;&amp;#039;This &amp;quot; .. pageType .. &amp;quot; has no documentation. &amp;quot; ..&lt;br /&gt;
			&amp;quot;If you know how to use this &amp;quot; .. pageType .. &amp;quot;, please create it.&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
		if not ( args.nocat or namespace == &amp;#039;User&amp;#039; ) then&lt;br /&gt;
			category = pageType .. &amp;#039;s with no documentation&amp;#039;&lt;br /&gt;
			if not mw.title.new( &amp;#039;Category:&amp;#039; .. category ).exists then&lt;br /&gt;
				category = &amp;#039;Pages with no documentation&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	elseif badDoc then&lt;br /&gt;
		docClass = &amp;#039;documentation-badDoc&amp;#039;&lt;br /&gt;
		colour = &amp;#039;F9F2EA&amp;#039;&lt;br /&gt;
		message = &amp;quot;&amp;#039;&amp;#039;&amp;#039;This &amp;quot; .. pageType .. &amp;quot;&amp;#039;s documentation needs improving or additional information.&amp;#039;&amp;#039;&amp;#039;\n&amp;quot;&lt;br /&gt;
		if not ( args.nocat or namespace == &amp;#039;User&amp;#039; ) then&lt;br /&gt;
			category = pageType .. &amp;#039;s with bad documentation&amp;#039;&lt;br /&gt;
			if not mw.title.new( &amp;#039;Category:&amp;#039; .. category ).exists then&lt;br /&gt;
				category = &amp;#039;Pages with bad documentation&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local links = {&lt;br /&gt;
		&amp;#039;[&amp;#039; .. docPage:fullUrl( &amp;#039;action=edit&amp;#039; .. preload ) .. &amp;#039; &amp;#039; .. action .. &amp;#039;]&amp;#039;,&lt;br /&gt;
		&amp;#039;[&amp;#039; .. docPage:fullUrl( &amp;#039;action=history&amp;#039; ) .. &amp;#039; &amp;#039; .. f:preprocess(&amp;#039;{{lc:{{int:history short}}}}&amp;#039;) .. &amp;#039;]&amp;#039;,&lt;br /&gt;
		&amp;#039;[&amp;#039; .. page:fullUrl( &amp;#039;action=purge&amp;#039; ) .. &amp;#039; &amp;#039; .. f:preprocess(&amp;#039;{{lc:{{int:page-header-action-button-purge}}}}&amp;#039;) .. &amp;#039;]&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	if not noDoc and page ~= docPage then&lt;br /&gt;
		table.insert( links, 1, &amp;#039;[[&amp;#039; .. docPage.fullText .. &amp;#039;|&amp;#039; .. f:preprocess(&amp;#039;{{lc:{{int:view}}}}&amp;#039;) .. &amp;#039;]]&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	links = mw.html.create( &amp;#039;span&amp;#039; )&lt;br /&gt;
		:attr( &amp;#039;id&amp;#039;, &amp;#039;documentation-header-tools&amp;#039; )&lt;br /&gt;
		:css( &amp;#039;float&amp;#039;, &amp;#039;right&amp;#039; )&lt;br /&gt;
		:wikitext( mw.text.nowiki( &amp;#039;[&amp;#039; ), table.concat( links, &amp;#039; | &amp;#039; ), mw.text.nowiki( &amp;#039;]&amp;#039; ) )&lt;br /&gt;
	&lt;br /&gt;
	local body = mw.html.create( &amp;#039;div&amp;#039; ):addClass( &amp;#039;documentation&amp;#039; )&lt;br /&gt;
	body&lt;br /&gt;
		:addClass( docClass )&lt;br /&gt;
		:css{&lt;br /&gt;
		[&amp;#039;background-color&amp;#039;] = &amp;#039;#&amp;#039; .. colour,&lt;br /&gt;
		border = &amp;#039;1px solid #AAA&amp;#039;,&lt;br /&gt;
		padding = &amp;#039;0.8em 1em 0.7em&amp;#039;,&lt;br /&gt;
		[&amp;#039;margin-top&amp;#039;] = &amp;#039;1em&amp;#039;,&lt;br /&gt;
		clear = &amp;#039;both&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	local header = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
		:addClass( &amp;#039;documentation-header-top&amp;#039; )&lt;br /&gt;
		:css{&lt;br /&gt;
			margin = &amp;#039;-0.8em -1em 0.8em&amp;#039;,&lt;br /&gt;
			padding = &amp;#039;0.8em 1em 0.7em&amp;#039;,&lt;br /&gt;
			[&amp;#039;background-color&amp;#039;] = &amp;#039;#33333333&amp;#039;,&lt;br /&gt;
			[&amp;#039;border-bottom&amp;#039;] = &amp;#039;inherit&amp;#039;&lt;br /&gt;
		}&lt;br /&gt;
	&lt;br /&gt;
	header&lt;br /&gt;
		:node( links )&lt;br /&gt;
		:tag( &amp;#039;span&amp;#039; )&lt;br /&gt;
			:attr( &amp;#039;id&amp;#039;, &amp;#039;documentation-header-title&amp;#039; )&lt;br /&gt;
			:css{&lt;br /&gt;
				[&amp;#039;font-weight&amp;#039;] = &amp;#039;bold&amp;#039;,&lt;br /&gt;
				[&amp;#039;font-size&amp;#039;] = &amp;#039;130%&amp;#039;,&lt;br /&gt;
				[&amp;#039;margin-right&amp;#039;] = &amp;#039;1em&amp;#039;,&lt;br /&gt;
				[&amp;#039;line-height&amp;#039;] = &amp;#039;1&amp;#039;&lt;br /&gt;
			}&lt;br /&gt;
			:wikitext( &amp;#039;Documentation&amp;#039; )&lt;br /&gt;
	&lt;br /&gt;
	local codePages = {&lt;br /&gt;
		module = true,&lt;br /&gt;
		stylesheet = true,&lt;br /&gt;
		script = true,&lt;br /&gt;
	}&lt;br /&gt;
	if not noDoc and codePages[pageType] then&lt;br /&gt;
		header&lt;br /&gt;
			:tag( &amp;#039;span&amp;#039; )&lt;br /&gt;
				:attr( &amp;#039;id&amp;#039;, &amp;#039;documentation-jump-to-code&amp;#039; )&lt;br /&gt;
				:css( &amp;#039;white-space&amp;#039;, &amp;#039;nowrap&amp;#039; )&lt;br /&gt;
				:wikitext( &amp;#039;[[#the-code|Jump to code ↴]]&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	body&lt;br /&gt;
		:node( header ):done()&lt;br /&gt;
		:wikitext( message )&lt;br /&gt;
		:wikitext( docText )&lt;br /&gt;
	&lt;br /&gt;
	if not noDoc and page ~= docPage then&lt;br /&gt;
		body&lt;br /&gt;
			:tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
				:addClass( &amp;#039;documentation-header-bottom&amp;#039; )&lt;br /&gt;
				:css{&lt;br /&gt;
					margin = &amp;#039;0.7em -1em -0.7em&amp;#039;,&lt;br /&gt;
					[&amp;#039;background-color&amp;#039;] = &amp;#039;#33333333&amp;#039;,&lt;br /&gt;
					[&amp;#039;border-top&amp;#039;] = &amp;#039;inherit&amp;#039;,&lt;br /&gt;
					padding = &amp;#039;0.8em 1em 0.7em&amp;#039;,&lt;br /&gt;
					clear = &amp;#039;both&amp;#039;&lt;br /&gt;
				}&lt;br /&gt;
				:node( links )&lt;br /&gt;
				:wikitext( &amp;#039;The above documentation is transcluded from [[&amp;#039;, docPage.fullText, &amp;#039;]].&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local anchor = &amp;#039;&amp;#039;&lt;br /&gt;
	if not noDoc and pageType ~= &amp;#039;template&amp;#039; and pageType ~= &amp;#039;message&amp;#039; then&lt;br /&gt;
		anchor = mw.html.create( &amp;#039;div&amp;#039; ):attr( &amp;#039;id&amp;#039;, &amp;#039;the-code&amp;#039; )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return tostring( body ) .. tostring( anchor )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>minecraft&gt;Number 3434</name></author>
	</entry>
</feed>