Module:Documentation: Difference between revisions

No edit summary
No edit summary
Line 150: Line 150:
local out = {
local out = {
'<div style="background-color:#' .. colour .. ';border:1px solid #AAA;padding:0.8em 1em 0.8em">\n',
'<div style="background-color:#' .. colour .. ';border:1px solid #AAA;padding:0.8em 1em 0.8em;clear:both">\n',
'<div style="margin:-0.8em -1em 0.8em;padding: 0.8em 1em 0.7em;background-color:#EAF4F9;border-bottom:1px solid #AAA">\n',
'<div style="margin:-0.8em -1em 0.8em;padding: 0.8em 1em 0.7em;background-color:#EAF4F9;border-bottom:1px solid #AAA">\n',
'<div style="float:right">' .. mw.text.nowiki( '[' ) .. table.concat( links, ' | ' ) .. ']</div>\n',
'<div style="float:right">' .. mw.text.nowiki( '[' ) .. table.concat( links, ' | ' ) .. ']</div>\n',
Line 161: Line 161:
category
category
}
}
if args[1] == 'clear' then
table.insert( out, 1, '<div style="height:1em;clear:both"></div>' )
end
return mw.text.trim( table.concat( out ) )
return mw.text.trim( table.concat( out ) )
end
end
return p
return p