Module:Documentation: Difference between revisions

Undo revision 615657 by Jhonabf (talk)
Add margin-top; remove edit sections since they're broken in this version of scribunto
Line 116: Line 116:
noDoc = 1
noDoc = 1
else
else
docText = '\n' .. docText .. '\n'
docText = '__NOEDITSECTION__\n' .. docText .. '\n'
end
end
end
end
Line 165: Line 165:
local out = {
local out = {
'<div style="background-color:#' .. colour .. ';border:1px solid #AAA;padding:0.8em 1em 0.7em;clear:both">\n',
'<div style="background-color:#' .. colour .. ';border:1px solid #AAA;padding:0.8em 1em 0.7em;margin-top:1em;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',