Module:PageAd
From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
| This module is rated as pre-alpha. It is incomplete and may or may not be in active development. Do not use it on article pages. It remains in pre-alpha until its developer, or another editor who adopts it, considers the basic structure complete. |
-- !!!Not implemented fully, dont use!!!
local module = {}
local api = {}
local templ = {
npb_root = [[{| style="border: 3px solid black; border-radius: 4px; background-color: %s;"
|rowspan="2" valign="middle" | \[\[File:%s|120px\]\]
|rowspan="2" |
|style="font-size: x-large; padding: 0; vertical-align: middle; height: 1.1em;" |%s
|-
|style="vertical-align: middle; border-top: 1px solid gray;" |%s
|}]]
}
-- Notable page box
function api.NPB(frame,opt)
local class = {}
opt.color = opt.color or "#eef2ff"
opt.desc = opt.desc or ""
function class.render()
return frame:preprocess(string.format(templ.npb_root,
opt.color,
opt.image,
opt.title,
opt.desc))
end
return class
end
return module