<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ACollapsible_list</id>
	<title>Module:Collapsible list - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ACollapsible_list"/>
	<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;action=history"/>
	<updated>2026-04-27T15:52:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=38993&amp;oldid=prev</id>
		<title>Indicwiki: 1 revision imported from :alpha:Module:Collapsible_list</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=38993&amp;oldid=prev"/>
		<updated>2022-12-12T10:05:26Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://alpha.indicwiki.in/index.php?title=Module:Collapsible_list&quot; class=&quot;extiw&quot; title=&quot;alpha:Module:Collapsible list&quot;&gt;alpha:Module:Collapsible_list&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:35, 12 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Indicwiki</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=16338&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=16338&amp;oldid=prev"/>
		<updated>2022-10-11T10:53:07Z</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;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:23, 11 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=16337&amp;oldid=prev</id>
		<title>wikipedia&gt;Izno: remove none none; not necessary for currently supported browsers</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=16337&amp;oldid=prev"/>
		<updated>2022-07-21T00:55:37Z</updated>

		<summary type="html">&lt;p&gt;remove none none; not necessary for currently supported browsers&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-GB&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 06:25, 21 July 2022&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-l106&quot;&gt;Line 106:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 106:&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;         'style',&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;         'style',&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;         'font-size: 105%; margin-top: 0; margin-bottom: 0; line-height: inherit; text-align: left;',&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;         'font-size: 105%; margin-top: 0; margin-bottom: 0; line-height: inherit; text-align: left;',&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;         not args.bullets and 'list-style: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;none &lt;/del&gt;none; margin-left: 0;',&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;         not args.bullets and 'list-style: none; margin-left: 0;',&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;         args.list_style,&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;         args.list_style,&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;         args.liststyle&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;         args.liststyle&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>wikipedia&gt;Izno</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=38992&amp;oldid=prev</id>
		<title>alpha&gt;Sarika: Created page with &quot;-- This module implements {{collapsible list}}.  local p = {}  local function gettitlestyletracking( ts ) 	if not ts then return '' end 	ts = mw.ustring.gsub(mw.ustring.lower(...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Collapsible_list&amp;diff=38992&amp;oldid=prev"/>
		<updated>2022-05-20T09:32:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- This module implements {{collapsible list}}.  local p = {}  local function gettitlestyletracking( ts ) 	if not ts then return &amp;#039;&amp;#039; end 	ts = mw.ustring.gsub(mw.ustring.lower(...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{collapsible list}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function gettitlestyletracking( ts )&lt;br /&gt;
	if not ts then return '' end&lt;br /&gt;
	ts = mw.ustring.gsub(mw.ustring.lower(ts), '%s', '')&lt;br /&gt;
	local tsvals = mw.text.split(ts, ';')&lt;br /&gt;
	table.sort(tsvals)&lt;br /&gt;
	local skey = table.concat(tsvals,';')&lt;br /&gt;
	skey = mw.ustring.gsub(skey, '^;', '')&lt;br /&gt;
	skey = mw.text.encode(mw.text.encode(skey),'%c%[%]=')&lt;br /&gt;
	if (mw.ustring.match(';' .. ts, ';background:') or mw.ustring.match(';' .. ts, ';background%-color:')) &lt;br /&gt;
		and mw.ustring.match(';' .. ts, ';text%-align:') then &lt;br /&gt;
		return '[[Category:Pages using collapsible list with both background and text-align in titlestyle|' .. skey .. ' ]]'&lt;br /&gt;
	end&lt;br /&gt;
	return '[[Category:Pages using collapsible list without both background and text-align in titlestyle|' .. skey .. ' ]]'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getListItem( data )&lt;br /&gt;
    if not type( data ) == 'string' then&lt;br /&gt;
        return ''&lt;br /&gt;
    end&lt;br /&gt;
    return mw.ustring.format( '&amp;lt;li style=&amp;quot;line-height: inherit; margin: 0&amp;quot;&amp;gt;%s&amp;lt;/li&amp;gt;', data )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Returns an array containing the keys of all positional arguments&lt;br /&gt;
-- that contain data (i.e. non-whitespace values).&lt;br /&gt;
local function getArgNums( args )&lt;br /&gt;
    local nums = {}&lt;br /&gt;
    for k, v in pairs( args ) do&lt;br /&gt;
        if type( k ) == 'number' and&lt;br /&gt;
            k &amp;gt;= 1 and&lt;br /&gt;
            math.floor( k ) == k and&lt;br /&gt;
            type( v ) == 'string' and&lt;br /&gt;
            mw.ustring.match( v, '%S' ) then&lt;br /&gt;
                table.insert( nums, k )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    table.sort( nums )&lt;br /&gt;
    return nums&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Formats a list of classes, styles or other attributes.&lt;br /&gt;
local function formatAttributes( attrType, ... )&lt;br /&gt;
    local attributes = { ... }&lt;br /&gt;
    local nums = getArgNums( attributes )&lt;br /&gt;
    local t = {}&lt;br /&gt;
    for i, num in ipairs( nums ) do&lt;br /&gt;
        table.insert( t, attributes[ num ] )&lt;br /&gt;
    end&lt;br /&gt;
    if #t == 0 then&lt;br /&gt;
        return '' -- Return the blank string so concatenation will work.&lt;br /&gt;
    end&lt;br /&gt;
    return mw.ustring.format( ' %s=&amp;quot;%s&amp;quot;', attrType, table.concat( t, ' ' ) )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function buildList( args )&lt;br /&gt;
    -- Get the list items.&lt;br /&gt;
    local listItems = {}&lt;br /&gt;
    local argNums = getArgNums( args )&lt;br /&gt;
    for i, num in ipairs( argNums ) do&lt;br /&gt;
        table.insert( listItems, getListItem( args[ num ] ) )&lt;br /&gt;
    end&lt;br /&gt;
    if #listItems == 0 then&lt;br /&gt;
        return ''&lt;br /&gt;
    end&lt;br /&gt;
    listItems = table.concat( listItems )&lt;br /&gt;
&lt;br /&gt;
	-- hack around mw-collapsible show/hide jumpiness by looking for text-alignment&lt;br /&gt;
	-- by setting a margin if centered&lt;br /&gt;
	local textAlignmentCentered = 'text%-align%s*:%s*center'&lt;br /&gt;
	local centeredTitle = (args.title_style and args.title_style:lower():match(textAlignmentCentered)&lt;br /&gt;
		or args.titlestyle and args.titlestyle:lower():match(textAlignmentCentered))&lt;br /&gt;
	local centeredTitleSpacing&lt;br /&gt;
	if centeredTitle then&lt;br /&gt;
		centeredTitleSpacing = 'margin: 0 4em'&lt;br /&gt;
	else&lt;br /&gt;
		centeredTitleSpacing = ''&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
    -- Get class, style and title data.&lt;br /&gt;
    local collapsibleContainerClass = formatAttributes(&lt;br /&gt;
    	'class',&lt;br /&gt;
    	'mw-collapsible', not args.expand and 'mw-collapsed'&lt;br /&gt;
    )&lt;br /&gt;
    local collapsibleContainerStyle = formatAttributes(&lt;br /&gt;
        'style',&lt;br /&gt;
        'text-align: center; font-size: 95%;',&lt;br /&gt;
        args.frame_style,&lt;br /&gt;
        args.framestyle&lt;br /&gt;
    )&lt;br /&gt;
    local collapsibleTitleStyle = formatAttributes(&lt;br /&gt;
        'style',&lt;br /&gt;
        'line-height: 1.6em; font-weight: bold; font-size: 100%; text-align: left;',&lt;br /&gt;
        args.title_style,&lt;br /&gt;
        args.titlestyle&lt;br /&gt;
    )&lt;br /&gt;
    local jumpyTitleStyle = formatAttributes(&lt;br /&gt;
        'style',&lt;br /&gt;
        centeredTitleSpacing&lt;br /&gt;
    )&lt;br /&gt;
    local title = args.title or 'List'&lt;br /&gt;
    local ulclass = formatAttributes( 'class', 'mw-collapsible-content', args.hlist and 'hlist' )&lt;br /&gt;
    local ulstyle = formatAttributes( &lt;br /&gt;
        'style',&lt;br /&gt;
        'font-size: 105%; margin-top: 0; margin-bottom: 0; line-height: inherit; text-align: left;',&lt;br /&gt;
        not args.bullets and 'list-style: none none; margin-left: 0;',&lt;br /&gt;
        args.list_style,&lt;br /&gt;
        args.liststyle&lt;br /&gt;
    )&lt;br /&gt;
    &lt;br /&gt;
    -- Build the list.&lt;br /&gt;
    return mw.ustring.format( &lt;br /&gt;
        '&amp;lt;div%s%s&amp;gt;\n&amp;lt;div%s&amp;gt;&amp;lt;div%s&amp;gt;%s&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;\n&amp;lt;ul%s%s&amp;gt;%s&amp;lt;/ul&amp;gt;\n&amp;lt;/div&amp;gt;',&lt;br /&gt;
        collapsibleContainerClass, collapsibleContainerStyle,&lt;br /&gt;
        collapsibleTitleStyle, jumpyTitleStyle, title, ulclass, ulstyle, listItems&lt;br /&gt;
    ) .. gettitlestyletracking(args.title_style or args.titlestyle)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main( frame )&lt;br /&gt;
    local origArgs&lt;br /&gt;
    if frame == mw.getCurrentFrame() then&lt;br /&gt;
        origArgs = frame:getParent().args&lt;br /&gt;
        for k, v in pairs( frame.args ) do&lt;br /&gt;
            origArgs = frame.args&lt;br /&gt;
            break&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        origArgs = frame&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    local args = {}&lt;br /&gt;
    for k, v in pairs( origArgs ) do&lt;br /&gt;
        if type( k ) == 'number' or v ~= '' then&lt;br /&gt;
            args[ k ] = v&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return buildList( args )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>alpha&gt;Sarika</name></author>
	</entry>
</feed>