Module:Set to list: Difference between revisions
Appearance
HouseBlaster (talk | contribs) better |
MusikBot II (talk | contribs) m Protected "Module:Set to list": High-risk template or module: 13030 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
||
(No difference)
|
Latest revision as of 18:00, 1 June 2025
![]() | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
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.
Syntax
require('Module:Set to list').setToList( { a = true , b = true , c = true } )
returns
{ a , b , c }