Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/Seppi333/url
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local url = require('Module:URL')._url local getArgs = require('Module:Arguments').getArgs local buffer = require("Module:Buffer")('{|') local p = {} p.main = function(frame) printtext = "Logout link: " return printtext, url("https://en.wikipedia.org/wiki/Special:UserLogout") end p.hello = function(frame) return("\"Hello World!\" is an overused example phrase.") end local function makeInvokeFunc(funcName) -- An invoke function to permit multiple functions with different arguments return function(frame) local args = getArgs(frame) return p[funcName](args) end end -- End of invoke function function p._func1(args) -- Code for the first function goes here. --[[ local mathtable = {} return function(t1=tonumber(exp1), t2=tonumber(exp2)) local i=0 repeat block i = i + 1 end until i=(t2-t1) return mathtable end --]] end function p._func2(args) -- Code for the second function goes here. end -- Define invokable functions: p.url = p.main -- p.math = makeInvokeFunc('_func1') -- DECENSOR THIS LINE AFTER p._func1(args) IS COMPLETE -- p.sequence = makeInvokeFunc('_func2') -- DECENSOR THIS LINE AFTER p._func2(args) IS COMPLETE -- End of script return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Sandbox/Seppi333/url/doc
(
edit
)