Module:Bongolium500/learning: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 5: Line 5:
if arg == "|" then
if arg == "|" then
local text = "Pipe"
local text = "Pipe"
elseif arg == "{!}" then
elseif arg == "{{!}}" then
local text = "Fake Pipe"
local text = "Fake Pipe"
end
end

Revision as of 11:07, 28 December 2021

Script error: The function "error" does not exist.


local p = {}

function p.pipeTest( frame )
	arg = frame.args[1]
	if arg == "|" then
		local text = "Pipe"
	elseif arg == "{{!}}" then
		local text = "Fake Pipe"
	end
	return text
end

return p