Module:Individual tournament pages
Appearance
Documentation for this module may be created at Module:Individual tournament pages/doc
local p = {}
local getArgs = require('Module:Arguments').getArgs
function p.main(frame)
local args = getArgs(frame)
local res = '<div style="background-color: #f8f9fa; padding: 8px; border: 1px solid #CCCCCC; display: inline-block; line-height: 1; float: right; clear: right;">\n'
res = res .. '{|\n|[[File:History hourglass.svg|40px]]\n|style="font-size: 12px; padding-left: 5px;"|This tournament page has<br/>separate wiki pages for past years:\n|}'
res = res .. '<div style="padding-left: 55px; line-height: 1.2;">'
local template = '{{Bulleted list'
for k, v in pairs(args) do
template = template .. frame:preprocess("|[[" .. v .. " {{PAGENAME}}]]")
end
template = template .. "}}\n</div>\n</div>"
res = res .. frame:preprocess(template)
return res
end
return p