Module:UpdateExcerpt: Difference between revisions

No edit summary
m Reverted edits by Kai (talk) to last revision by Cronos
Tag: Rollback
Line 33: Line 33:


     local html = string.format(
     local html = string.format(
         '<div style="flex:1; min-height:0; overflow-y:auto; padding:14px 18px; font-family: sans-serif; font-size:0.92em; line-height:1.7;">\n__NOEDITSECTION__\n%s\n</div>',
         '<div style="flex:1; min-height:0; overflow-y:auto; max-height:%.1fem; padding:14px 18px; font-family: sans-serif; font-size:0.92em; line-height:1.7;">\n__NOEDITSECTION__\n%s\n</div>',
        maxHeight,
         frame:preprocess(notesRaw)
         frame:preprocess(notesRaw)
     )
     )
Line 101: Line 102:
     footer:tag("span")
     footer:tag("span")
         :addClass("update-excerpt__readmore")
         :addClass("update-excerpt__readmore")
         :wikitext("[[Update:" .. month .. " " .. day .. ", " .. year .. "|Read more]]")
         :wikitext("Read more")
       
    footer:wikitext("[[Update:" .. month .. " " .. day .. ", " .. year .. "|<span class=\"update-excerpt__footer-overlay\"></span>]]")


     return tostring(html)
     return tostring(html)