Jump to content

Module:Set to list/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by HouseBlaster (talk | contribs) at 00:19, 29 May 2025 (create doc). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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

[edit]
require('Module:Set to list').setToList( { a = true , b = true , c = true } )

returns

{ a , b , c }