Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/SD0001/ext
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 p = {} function p.noticetext() -- Arguments local frame = mw.getCurrentFrame():getParent() -- local nom = frame.args['nom'] local nomdate = frame.args['nomdate'] or frame.args['date'] -- local nomreason = frame.args['nomreason'] -- local sec = frame.args['2nd'] -- local secdate = frame.args['2nddate'] -- local secreason = frame.args['2ndreason'] local dec = frame.args['decline'] or frame.args['con'] -- local decreason = frame.args['declinereason'] or frame.args ['conreason'] -- local decdate = frame.args['declinedate'] or frame.args['condate'] -- Program -- local pagtext = mw.title.getCurrentTitle().subjectPageTitle:getContent() -- p['present'] = string.match(pagetext, '{{Proposed deletion/dated.-|timestamp = (%d+)') local nomdate_ymd = lang:formatDate('Y m d') local nomdate_arr = mw.text.split(nomdate_ymd, ' ') local seconds = os.time() - os.time({year=nomdate_arr[0], month=nomdate_arr[1], day=nomdate_arr[2]}) if not nomdate or dec or seconds > 864000 then -- 10 days function p.type() return 'notice' end p['cat'] = 'y' return 'dec_notice' else function p.type() return 'notice' end p['cat'] = 'n' return 'act_notice' end return nil --unreachable 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/SD0001/ext/doc
(
edit
)