Module:Separated entries: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 9:
function p._main(args)
local span = args.span or false
local author = args.author or false
local separator = args.separator
-- Decode (convert to Unicode) HTML escape sequences, such as " " for space.
Line 24 ⟶ 25:
local values = compressSparseArray(args)
if span then
local spanAttrs = {}
return mw.text.tag( span, {}, mw.text.listToText(values, separator, conjunction) )▼
if author then
spanAttrs.class = 'templatequote-author'
end
else
return mw.text.listToText(values, separator, conjunction)
|