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:Events by year for decade
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 = {} p.main = function(frame) frame.args = frame:getParent().args return p[''](frame) end p[''] = function(frame) local output = { frame:expandTemplate{ title = 'TOC limit', args = {3} }, '\n==Events==\n' } local n = tonumber((frame.args[1] or '0') .. '0') or 0 for i = n, n + 9 do if i == 0 then output[3] = '' else local year = frame:expandTemplate{ title='dr', args={'y', 'y', i, 0, n < 100 and 'na' or 'n'}} local year2 = frame:expandTemplate{ title='dr', args={'y', 'y', i, 0, n <= 1000 and 'na' or 'n'}} local section = '== ' .. year .. '==\n' .. mw.text.trim( frame:expandTemplate{ title ='transcluded section', args = { year2 }} .. ' ' .. frame:callParserFunction( '#section-h', {':' .. year2, 'Events'})) .. '\n' output[1 + #output] = section:gsub('==', '===') end end if 'Template:Events by year for decade' ~= mw.title.getCurrentTitle().fullText then output[13] = '[[Category:' .. n ..'s]]' end return table.concat(output) 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)
Templates used on this page:
Template:Tl
(
edit
)
Module:Events by year for decade/doc
(
edit
)