Module:ListGeneration: Difference between revisions

// via Wikitext Extension for VSCode
Tag: Reverted
// via Wikitext Extension for VSCode
Tags: Manual revert Reverted
Line 39: Line 39:
-- @return string The formatted list as an HTML string or comma-separated text.
-- @return string The formatted list as an HTML string or comma-separated text.
function p.createList(input, options)
function p.createList(input, options)
    ConfigRepository = ConfigRepository or require('Module:ConfigRepository')
     if not input or (type(input) == 'string' and input == '') or (type(input) == 'table' and #input == 0) then
     if not input or (type(input) == 'string' and input == '') or (type(input) == 'table' and #input == 0) then
         return ''
         return ''
Line 82: Line 81:
     -- Handle wikitext bullet list
     -- Handle wikitext bullet list
     if mode == 'bullet' then
     if mode == 'bullet' then
        ConfigRepository = ConfigRepository or require('Module:ConfigRepository')
         local bulletChar = ConfigRepository.p.default_bullet or '*'
         local bulletChar = ConfigRepository.p.default_bullet or '*'
         local listItems = {}
         local listItems = {}