https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ASet_to_list%2Fdoc Module:Set to list/doc - Revision history 2025-06-08T00:14:58Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.4 https://en.wikipedia.org/w/index.php?title=Module:Set_to_list/doc&diff=1292816774&oldid=prev HouseBlaster: create doc 2025-05-29T00:19:50Z <p>create doc</p> <p><b>New page</b></p><div>{{Module rating|beta}}<br /> &lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&gt;<br /> This is a meta-module, designed to convert a &quot;set&quot; 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 /> &lt;syntaxhighlight lang=&quot;Lua&quot;&gt;<br /> require(&#039;Module:Set to list&#039;).setToList( { a = true , b = true , c = true } )<br /> &lt;/syntaxhighlight&gt;<br /> <br /> returns<br /> <br /> &lt;syntaxhighlight lang=&quot;Lua&quot;&gt;<br /> { a , b , c }<br /> &lt;/syntaxhighlight&gt;<br /> <br /> <br /> &lt;includeonly&gt;{{Sandbox other||<br /> &lt;!-- Categories below this line; interwikis at Wikidata --&gt;<br /> [[Category:Lua metamodules]]<br /> }}&lt;/includeonly&gt;<br /> <br /> &lt;noinclude&gt;<br /> [[Category:Module documentation pages]]<br /> &lt;/noinclude&gt;</div> HouseBlaster