Edit the documentation or categories for this module.
local p = {}
function p.makeFootnoteN(n)
if n and n ~= "" then
return string.format("<sup>%s</sup>", n)
end
return ""
end
function p.vsAlign(team1, team2)
local tbl = mw.html.create("div")
tbl:css({ width = "100%", display = "table", ["table-layout"] = "fixed" })
tbl:tag("div")
:css({ width = "calc(50% - 10px)", ["text-align"] = "right", display = "table-cell" })
:wikitext(team1)
:done()
:tag("div")
:css({ display = "table-cell", width = "20px", ["text-align"] = "center" })
:wikitext(" vs ")
:done()
:tag("div")
:css({ width = "calc(50% - 10px)", ["text-align"] = "left", display = "table-cell" })
:wikitext(team2)
:done()
return tbl
end
function p.makeNodeFromWikitext(text)
local tbl = mw.html.create()
:wikitext(text)
return tbl
end
return p