Module:Live song: Difference between revisions
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) 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> ' | out = out .. '<nowiki>[</nowiki>' .. cover .. '<nowiki>]</nowiki> ' | ||
end | end | ||
if tease and abandoned then | if tease ~= '' and abandoned ~= '' then | ||
out = out .. '(tease / abandoned) ' | out = out .. '(tease / abandoned) ' | ||
elseif tease then | elseif tease ~= '' then | ||
out = out .. '(tease) ' | out = out .. '(tease) ' | ||
elseif abandoned then | elseif abandoned ~= '' then | ||
out = out .. '(abandoned) ' | out = out .. '(abandoned) ' | ||
end | end | ||
if note then | if note ~= '' then | ||
out = out .. '(' .. note .. ')' | out = out .. '(' .. note .. ')' | ||
end | end |