Module:Blobs2/Sandbox

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]DocumentationJump to code ↴

Welcome to my module sandbox.

This is a sandbox that can be used to test module-related things.

Since it is a sandbox, do not invoke it outside of sandboxes, nor should it be edited by other users.


Blobs2
Talk • Profile • Contributions • Logs • Email • Bug Tracker
Tools

Sandbox (Red • Gravel • Soul Sand • Alt • Module) • Anvil

Pages

Combat • Development • Enchanted book • Gold • Rare resources • Renewable Resources • Technical blocks

[view | edit | history | purge]The above documentation is transcluded from Module:Blobs2/Sandbox/doc.
local p = {}
--Use the first, second, and third letters for direct, parent, and within Lua, respectively
function p.nnn(f)
	local args={}
	return args[1]..'!'
end
function p.nny(f)
	local args=f
	return args[1]..'!'
end
function p.nyn(f)
	local args=f.args
	return args[1]..'!'
end
function p.nyy(f)
	local args = f
	if f == mw.getCurrentFrame() then
		args = f.args
	end
	return args[1]..'!'
end
function p.ynn(f)
	local args=f:getParent().args
	return args[1]..'!'
end
function p.yny(f)
	local args = f
	if f == mw.getCurrentFrame() then
		args = f:getParent().args
	end
	return args[1]..'!'
end
function p.yyn(f)
	local args=require('Module:ProcessArgs').merge(true)
	return args[1]..'!'
end
function p.yyy(f)
	local args=f
	if f==mw.getCurrentFrame() then
		args=require('Module:ProcessArgs').merge(true)
	end
	return args[1]..'!'
end

return p