Module:UpdateExcerpt: Difference between revisionsGive feedback
Jump to navigation
Jump to search
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
| Line 9: | Line 6: | ||
local day = args[2] | local day = args[2] | ||
local year = args[3] | local year = args[3] | ||
local maxLines = tonumber(args[4]) or | local maxLines = tonumber(args[4]) or 10 | ||
if not month or not day or not year then | if not month or not day or not year then | ||
| Line 47: | Line 44: | ||
end | end | ||
local | local maxHeight = maxLines * 1.7 | ||
local html = '<div style="flex:1; min-height:0; overflow-y:auto; max-height:' | |||
.. maxHeight | |||
.. 'em; padding:14px 18px; font-family:\'Retail Demo\',\'Open Sans\',sans-serif; font-size:0.92em; line-height:1.7;">\n' | |||
local html = '<div style="flex:1; min-height:0; overflow-y:auto; padding:14px 18px; font-family:\'Retail Demo\',\'Open Sans\',sans-serif; font-size:0.92em; line-height:1.7;">\n' | .. frame:preprocess(notesRaw) | ||
.. frame:preprocess( | |||
.. '\n</div>' | .. '\n</div>' | ||
return html | return html | ||