<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://open-csp.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocSidebar</id>
	<title>Module:DocSidebar - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://open-csp.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocSidebar"/>
	<link rel="alternate" type="text/html" href="https://open-csp.org/index.php?title=Module:DocSidebar&amp;action=history"/>
	<updated>2026-04-30T18:15:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://open-csp.org/index.php?title=Module:DocSidebar&amp;diff=3391&amp;oldid=prev</id>
		<title>Maintenance script: Imported by PageSync</title>
		<link rel="alternate" type="text/html" href="https://open-csp.org/index.php?title=Module:DocSidebar&amp;diff=3391&amp;oldid=prev"/>
		<updated>2025-07-15T08:33:12Z</updated>

		<summary type="html">&lt;p&gt;Imported by PageSync&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local CspFunctions = require(&amp;#039;Module:CspFunctions&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
function p.GetVariables(frame)&lt;br /&gt;
&lt;br /&gt;
frame args:&lt;br /&gt;
1 	(text)	content of the url parameter veaction&lt;br /&gt;
2 	(text)	content of the url parameter action&lt;br /&gt;
3	(text)  content of the url parameter version&lt;br /&gt;
&lt;br /&gt;
{{#invoke:DocSidebar|GetVariables|{{#urlget:veaction}}|{{#urlget:action}}|{{#urlget:selected-version}}}}&lt;br /&gt;
&lt;br /&gt;
=p.GetVariables(mw.getCurrentFrame():newChild{args={&amp;quot;1&amp;quot;, &amp;quot;2&amp;quot;, &amp;quot;3&amp;quot;, &amp;quot;DevOps:Doc/FlexForm/2.1/input/file/examples&amp;quot;}})&lt;br /&gt;
]]&lt;br /&gt;
function p.GetVariables(frame)&lt;br /&gt;
	local urlVEAction = frame.args[1]&lt;br /&gt;
	local urlAction = frame.args[2]&lt;br /&gt;
	local urlVersion = frame.args[3]&lt;br /&gt;
	local results = {}&lt;br /&gt;
	local title&lt;br /&gt;
	if frame.args[4] == nil or frame.args[4] == &amp;quot;&amp;quot; then&lt;br /&gt;
		title = mw.title.getCurrentTitle().fullText &lt;br /&gt;
	else &lt;br /&gt;
		title = frame.args[4] -- defined for debug purposes&lt;br /&gt;
	end&lt;br /&gt;
	local baseSlots = CspFunctions.getSlotData(title, &amp;quot;ws-base-props&amp;quot;)&lt;br /&gt;
	local classSlots = CspFunctions.getSlotData(title, &amp;quot;ws-class-props&amp;quot;)&lt;br /&gt;
	mw.logObject(baseSlots)&lt;br /&gt;
	&lt;br /&gt;
	results.allowSidebarEdit = AllowSidebarLogic(frame)&lt;br /&gt;
	results.logo = GetLogo(classSlots)&lt;br /&gt;
	&lt;br /&gt;
	return mw.af.export(results)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function AllowSidebarLogic(frame)&lt;br /&gt;
	local isUser = frame:preprocess(&amp;quot;{{#ifingroup:user|yes|no}}&amp;quot;)&lt;br /&gt;
	if isUser == &amp;quot;yes&amp;quot; and (frame.args[1] == nil or frame.args[1] == &amp;quot;&amp;quot;) and (frame.args[2] == nil or frame.args[2] == &amp;quot;&amp;quot;) then&lt;br /&gt;
		return &amp;quot;yes&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function GetLogo(classSlots)&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>