<?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%3AWSNavMenu</id>
	<title>Module:WSNavMenu - 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%3AWSNavMenu"/>
	<link rel="alternate" type="text/html" href="https://open-csp.org/index.php?title=Module:WSNavMenu&amp;action=history"/>
	<updated>2026-04-29T20:41:46Z</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:WSNavMenu&amp;diff=3810&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:WSNavMenu&amp;diff=3810&amp;oldid=prev"/>
		<updated>2025-09-18T07:01:13Z</updated>

		<summary type="html">&lt;p&gt;Imported by PageSync&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 09:01, 18 September 2025&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-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&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 result = &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;   local result = &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;   for MenuItem in mw.text.gsplit(theInput, &amp;quot;\n\n+&amp;quot;) do&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;   for MenuItem in mw.text.gsplit(theInput, &amp;quot;\n\n+&amp;quot;) do&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;  	mw.log(&quot;item = &quot; .. MenuItem)&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;     local MenuParts = mw.text.split(MenuItem, &amp;quot;\n&amp;quot;)&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 MenuParts = mw.text.split(MenuItem, &amp;quot;\n&amp;quot;)&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;     if #MenuParts == 1 then -- A simple link&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 #MenuParts == 1 then -- A simple link&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;mw-diff-slot-header&quot; lang=&quot;en&quot;&gt;&lt;th colspan=&quot;4&quot;&gt;ws-base-props&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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;|Class=Application page&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;|Class=Application page&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;|Title=Module:WSNavMenu&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;|Title=Module:WSNavMenu&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;|Version history={{Version history item &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;|Version number=1.0&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;|Version description=match more than 2 newlines between menu items, to prevent errors when using for example ifingroup to only show submenus for specific users&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;|Version date=2024-8-13 11:11:39&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;}}&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;}}&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;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>https://open-csp.org/index.php?title=Module:WSNavMenu&amp;diff=3528&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:WSNavMenu&amp;diff=3528&amp;oldid=prev"/>
		<updated>2025-07-15T08:37:15Z</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 p = {}&lt;br /&gt;
&lt;br /&gt;
local curTitle = mw.title.getCurrentTitle()&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
function p.innerMenu(frame)&lt;br /&gt;
&lt;br /&gt;
debug console tests:&lt;br /&gt;
=p.innerMenu(mw.getCurrentFrame():newChild{[&amp;quot;args&amp;quot;]={[&amp;quot;input&amp;quot;]=&amp;quot;Main Page*Home\n\nPages\n\n\n\nSearch*Search&amp;quot;}})&lt;br /&gt;
--]]&lt;br /&gt;
function p.innerMenu(frame)&lt;br /&gt;
  local theInput = frame:preprocess(frame.args[&amp;#039;input&amp;#039;])&lt;br /&gt;
  -- Check if empty or nil&lt;br /&gt;
  if not theInput or theInput:match(&amp;quot;^%s*$&amp;quot;) then&lt;br /&gt;
    return &amp;#039;&amp;#039;&lt;br /&gt;
  end&lt;br /&gt;
  &lt;br /&gt;
  local result = &amp;#039;&amp;#039;&lt;br /&gt;
  for MenuItem in mw.text.gsplit(theInput, &amp;quot;\n\n+&amp;quot;) do&lt;br /&gt;
  	mw.log(&amp;quot;item = &amp;quot; .. MenuItem)&lt;br /&gt;
    local MenuParts = mw.text.split(MenuItem, &amp;quot;\n&amp;quot;)&lt;br /&gt;
    if #MenuParts == 1 then -- A simple link&lt;br /&gt;
      result = result .. p.makeNavLink(MenuParts[1], &amp;#039;nav-link&amp;#039;, &amp;#039;color:#fff&amp;#039;, &amp;#039;nav-item&amp;#039;, frame)&lt;br /&gt;
    else -- A dropdown menu&lt;br /&gt;
      local dropdownHeader = frame:callParserFunction(&lt;br /&gt;
        &amp;#039;#widget&amp;#039;,&lt;br /&gt;
        {&lt;br /&gt;
          &amp;#039;Link&amp;#039;,&lt;br /&gt;
          type=&amp;#039;a&amp;#039;,&lt;br /&gt;
          href=&amp;#039;#&amp;#039;,&lt;br /&gt;
          class=&amp;#039;nav-link dropdown-toggle&amp;#039;,&lt;br /&gt;
          datatoggle=&amp;#039;dropdown&amp;#039;,&lt;br /&gt;
          style=&amp;#039;color:#fff&amp;#039;,&lt;br /&gt;
          text=MenuParts[1] .. &amp;#039;&amp;lt;b class=&amp;quot;caret&amp;quot;&amp;gt;&amp;lt;/b&amp;gt;&amp;#039;&lt;br /&gt;
        }&lt;br /&gt;
      )&lt;br /&gt;
      local dropdownContent = &amp;#039;&amp;#039;&lt;br /&gt;
      for i=2,#MenuParts do&lt;br /&gt;
        if MenuParts[i] == &amp;#039;-&amp;#039; then&lt;br /&gt;
          dropdownContent = dropdownContent .. &amp;#039;&amp;lt;li class=&amp;quot;divider&amp;quot;&amp;gt;&amp;lt;/li&amp;gt;&amp;#039;&lt;br /&gt;
        else&lt;br /&gt;
          dropdownContent = dropdownContent .. p.makeNavLink(&lt;br /&gt;
            MenuParts[i],&lt;br /&gt;
            &amp;#039;dropdown-item&amp;#039;,&lt;br /&gt;
            &amp;#039;&amp;#039;,&lt;br /&gt;
            &amp;#039;&amp;#039;,&lt;br /&gt;
            frame&lt;br /&gt;
          )&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      result = result .. &amp;#039;&amp;lt;li class=&amp;quot;nav-item dropdown&amp;quot;&amp;gt;&amp;#039; .. dropdownHeader .. &amp;#039;&amp;lt;ul class=&amp;quot;dropdown-menu&amp;quot; role=&amp;quot;menu&amp;quot;&amp;gt;&amp;#039; .. dropdownContent .. &amp;#039;&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
  return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeNavLink(inputString, class, style, liClass, frame)&lt;br /&gt;
  local MenuParts = mw.text.split(inputString, &amp;quot;*&amp;quot;)&lt;br /&gt;
  local linkPart = MenuParts[1]&lt;br /&gt;
  local textPart = MenuParts[2]&lt;br /&gt;
  local linkType = MenuParts[3]&lt;br /&gt;
  if not textPart then&lt;br /&gt;
    textPart = linkPart&lt;br /&gt;
  end&lt;br /&gt;
  if not linkType or linkType == Page then&lt;br /&gt;
    if not mw.title.new( linkPart ) then&lt;br /&gt;
      do return &amp;quot;Unknown link: &amp;quot; .. mw.text.jsonEncode(inputString) end&lt;br /&gt;
    end&lt;br /&gt;
    linkPart = mw.title.new( linkPart )&lt;br /&gt;
    if mw.title.compare( curTitle, linkPart) == 0 then&lt;br /&gt;
      liClass = liClass .. &amp;#039; navbar-presentpage&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
    linkPart = linkPart:fullUrl({}, &amp;#039;https&amp;#039;)&lt;br /&gt;
  end&lt;br /&gt;
  local navLink = frame:callParserFunction(&lt;br /&gt;
    &amp;#039;#widget&amp;#039;,&lt;br /&gt;
    {&lt;br /&gt;
      &amp;#039;Link&amp;#039;,&lt;br /&gt;
      type = &amp;#039;a&amp;#039;,&lt;br /&gt;
      href = linkPart,&lt;br /&gt;
      class= class,&lt;br /&gt;
      text = textPart,&lt;br /&gt;
      style= style&lt;br /&gt;
    }&lt;br /&gt;
  )&lt;br /&gt;
  return &amp;#039;&amp;lt;li class=&amp;quot;&amp;#039;..liClass..&amp;#039;&amp;quot;&amp;gt;&amp;#039; .. navLink .. &amp;#039;&amp;lt;/li&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>