Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/BrandonXLF/user space
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 getArgs = require('Module:Arguments').getArgs local p = {} function p.variables(frame) local args = getArgs(frame) local i = 1 local out = '<h2>Variables</h2>Optionally, add any of the <code>code snippets</code> below to the JS file you installed the script in (eg. your [[Special:MyPage/common.js|common.js]] file) to change the settings for this script. For best compatibility, put them above the code that is used to load the script.<ul>' args['v1'] = (args['v'] or args['v1']) args['d1'] = (args['d'] or args['d1']) args['e1'] = (args['e'] or args['e1']) while args['v' .. i] do local var = '<code>window.' .. args['v' .. i] .. ' =' .. (args['e' .. i] and ' ' .. args['e' .. i] or '') .. ';</code>' var = var .. (args['d' .. i] and ' β ' .. args['d' .. i] or '') out = out .. '<li>' .. var .. '</li>' i = i + 1 end return out .. '</ul>' end function p.sandboxStatus(frame) local args = getArgs(frame) local title = mw.title.new(args[1]) if not title.exists then return '<span style="background-color:darkred;height:10px;width:10px;display:inline-block;"></span>' end if title:getContent() == (args[2] or '') then return '<span style="background-color:green;height:10px;width:10px;display:inline-block;"></span>' end return '<span style="background-color:red;height:10px;width:10px;display:inline-block;"></span>' end 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/BrandonXLF/user space/doc
(
edit
)