Module:Copied/sandbox: Difference between revisions

Content deleted Content added
collapse language
declare collapsedText
Line 138:
local historyList = list(args)
if (args["collapse"] == 'yes') then
local collapsedText
if (args["mergedFrom"] == 'yes') then
local collapsedText = '<table style="width:100%%; background: transparent;" class="mw-collapsible mw-collapsed">\n<tr><th>Merged pages:</th></tr>\n<tr><td> %s </td></tr></table>'
else
local collapsedText = '<table style="width:100%%; background: transparent;" class="mw-collapsible mw-collapsed">\n<tr><th>Copied pages:</th></tr>\n<tr><td> %s </td></tr></table>'
end
historyList = string.format(collapsedText, historyList)