Jump to content

Module:ListToText/doc

From wikiNonStop
Revision as of 15:22, 24 November 2025 by en>HyperNervie (Cut a trailing newline)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Module Quality

Usage

This module is invoked by Template:ListToText. To invoke this module from another module, use the call function of this module:

local listToText = require( "Module:ListToText" ).call
-- The following line assigns "1, 2, 3 and 4" to txt:
local txt = listToText { "1", "2", "3", "4" }

Parameters to Template:ListToText are also applicable to this call function. See the template documentation to learn more.