Module:ScriptItem: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 109: Line 109:
local lines = {}
local lines = {}
table.insert(lines, frame:preprocess("{{DISPLAYTITLE:"..p.getDisplayedName(frame).."}}"))
table.insert(lines, frame:preprocess("{{DISPLAYTITLE:"..p.getDisplayedName(frame).."}}"))
    -- Added for discord embed styling
table.insert(lines, frame:preprocess("<meta content='"..p.getDisplayedName(frame).."' property='og:title' />"))
table.insert(lines, frame:preprocess("<meta content='"..p.description(frame).."' property='og:description' />"))
table.insert(lines, frame:preprocess("<meta content='#04C765' data-react-helmet='true' name='theme-color' />"))
table.insert(lines, "__NOTOC__"..p.getPageTopBoxes(frame).."\n")
table.insert(lines, "__NOTOC__"..p.getPageTopBoxes(frame).."\n")
table.insert(lines, "<div style='margin-top: 20px;'>Available since "..p.since(frame).."</div>\n")
table.insert(lines, "<div style='margin-top: 20px;'>Available since "..p.since(frame).."</div>\n")
2,603

edits