Fandom

Megami Tensei Wiki

Module:Tl

4,385pages on
this wiki
Add New Page
Talk0
local getArgs = require('Module:Arguments').getArgs
 
local p = {}
 
local function makeInvokeFunction(funcName)
	return function (frame)
		local args = getArgs(frame, {parentOnly = true})
		return p[funcName](args)
	end
end
 
p.tl = makeInvokeFunction('_tl')
 
function p._tl(args)
    if not args[1] then return '<strong style="color:#f00">Error: No Template Name provided</strong>' end
    result = (args["style"] and "<code>{{" or "{{") .. "[[Template:" .. args[1] .. '|' .. args[1] .. "]]"
    i=2
    while args[i] do
        result = result .. "|<i style=\'color:grey\'>&lt;" .. args[i] .. "&gt;</i>"
        i = i+1
    end
    result = result .. (args["style"] and "}}</code>" or "}}")
    return result 
end
 
return p
 
-- [[Category:Modules]]

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki