Anonymous user
Module:List: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
optional item_valueX for Brigadoon (The Ancestors album)
(Undid revision 581617993 by Mr. Stradivarius (talk) actually, this is no longer necessary due to changes in Module:Random) |
(optional item_valueX for Brigadoon (The Ancestors album)) |
||
Line 6:
local htmlBuilder = require('Module:HtmlBuilder')
local function getListItem(data, style, itemStyle, itemValue)
if not data then
return nil
Line 15:
.cssText(itemStyle)
.wikitext(data)
if(itemValue) then
item.attr(value,itemValue)
end
return tostring(item)
end
Line 43 ⟶ 46:
args[num],
args.item_style or args.li_style, -- li_style is included for backwards compatibility. item_style was included to be easier to understand for non-coders.
args['item_style' .. tostring(num)] or args['li_style' .. tostring(num)],
args['item_value' .. tostring(num)]
)
table.insert(listItems, item)
|