Jump to content

Module:Sandbox/Toohool: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with 'return { test = function() return '<table class="vertical-navbox nowraplinks" cellspacing="5" cellpadding="0" style="float:right;clear:right;width:22....'
 
No edit summary
Line 1: Line 1:
local Redirect = require('Module:Redirect')
return {

test = function()
local p = {}
return '<table class="vertical-navbox nowraplinks" cellspacing="5" cellpadding="0" style="float:right;clear:right;width:22.0em;margin:0 0 1.0em 1.0em;background:#f9f9f9;border:1px solid #aaa;padding:0.2em;border-spacing:0.4em 0;text-align:center;line-height:1.4em;font-size:88%;"><tr><td style="padding:0 0.1em 0.4em;">\n\n*foo\n</td></tr><tr><td style="padding:0 0.1em 0.4em;">\n\n*<div class="bar"><ul><li>baz</li></ul></div>\n</td></tr></table>'

setmetatable(p, {
__index = function(t, key)
return function(frame)
local childFrame = {args = {key}, getParent = function() return nil; end}
return Redirect.main(childFrame)
end
end
end
})



return p
}

Revision as of 22:25, 20 March 2013

local Redirect = require('Module:Redirect')

local p = {}

setmetatable(p, {
    __index = function(t, key)
        return function(frame)
            local childFrame = {args = {key}, getParent = function() return nil; end}
            return Redirect.main(childFrame)
        end
    end
})


return p