https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ASet_to_list%2FdocModule:Set to list/doc - Revision history2025-06-08T00:14:58ZRevision history for this page on the wikiMediaWiki 1.45.0-wmf.4https://en.wikipedia.org/w/index.php?title=Module:Set_to_list/doc&diff=1292816774&oldid=prevHouseBlaster: create doc2025-05-29T00:19:50Z<p>create doc</p>
<p><b>New page</b></p><div>{{Module rating|beta}}<br />
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --><br />
This is a meta-module, designed to convert a "set" table (keys where the values are set to true) into a list. It does not work if called from a regular template.<br />
<br />
==Syntax==<br />
<syntaxhighlight lang="Lua"><br />
require('Module:Set to list').setToList( { a = true , b = true , c = true } )<br />
</syntaxhighlight><br />
<br />
returns<br />
<br />
<syntaxhighlight lang="Lua"><br />
{ a , b , c }<br />
</syntaxhighlight><br />
<br />
<br />
<includeonly>{{Sandbox other||<br />
<!-- Categories below this line; interwikis at Wikidata --><br />
[[Category:Lua metamodules]]<br />
}}</includeonly><br />
<br />
<noinclude><br />
[[Category:Module documentation pages]]<br />
</noinclude></div>HouseBlaster