Module:Live song: Difference between revisions

No edit summary
No edit summary
Line 8: Line 8:


if cover and (tease or abandoned) then
if cover and (tease or abandoned) then
if title == '' then
title = name
end
out = out .. title
out = out .. title
else
else
out = out .. '[[' .. name
out = out .. '[[' .. name


if title then
if title ~= '' then
out = out .. '|' .. title
out = out .. '|' .. title
end
end
end
end


if not(cover and (tease or abandoned)) then
if not(cover ~= '' and (tease ~= '' or abandoned ~= '')) then
out = out .. ']]'
out = out .. ']]'
end
end
Line 23: Line 26:
out = out .. '" '
out = out .. '" '


if cover then
if cover ~= '' then
out = out .. '<nowiki>[</nowiki>' .. cover .. '<nowiki>]</nowiki>&nbsp;'
out = out .. '<nowiki>[</nowiki>' .. cover .. '<nowiki>]</nowiki>&nbsp;'
end
end


if tease and abandoned then
if tease ~= '' and abandoned ~= '' then
out = out .. '(tease / abandoned)&nbsp;'
out = out .. '(tease / abandoned)&nbsp;'
elseif tease then
elseif tease ~= '' then
out = out .. '(tease)&nbsp;'
out = out .. '(tease)&nbsp;'
elseif abandoned then
elseif abandoned ~= '' then
out = out .. '(abandoned)&nbsp;'
out = out .. '(abandoned)&nbsp;'
end
end


if note then
if note ~= '' then
out = out .. '(' .. note .. ')'
out = out .. '(' .. note .. ')'
end
end