Maximum Ride Wiki
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
About
Authors
James Patterson
Marguerite Bennett
Jody Houser
Gabrielle Charbonnet
Illustrators
NaRae Lee
Stéphanie Hans
RB Silva
Alex Sanchez
Marco Failla
Yasmine Putri
Publishers
Little, Brown and Company
Marvel Comics
Yen Press
Books
Maximum Ride (series)
The Fugitives
The Angel Experiment
School's Out - Forever
Saving the World and Other Extreme Sports
The Protectors
The Final Warning
MAX
FANG
ANGEL
Nevermore
Maximum Ride Forever
Other
Other Adaptations
Manga
Volume 1
Volume 2
Volume 3
Volume 4
Volume 5
Volume 6
Volume 7
Volume 8
Volume 9
Comics
Film
Misc.
Mobile apps
Angel by James Patterson
Maximum Ride: The Ultimate Flight
Online game
Book Commercials
Coloring book
Characters
The Flock
Max
Fang
Iggy
Nudge
Gazzy
Angel
Total
Dylan
Community
Administration
Forum
Recent blog posts
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Maximum Ride Wiki
321
pages
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
About
Authors
James Patterson
Marguerite Bennett
Jody Houser
Gabrielle Charbonnet
Illustrators
NaRae Lee
Stéphanie Hans
RB Silva
Alex Sanchez
Marco Failla
Yasmine Putri
Publishers
Little, Brown and Company
Marvel Comics
Yen Press
Books
Maximum Ride (series)
The Fugitives
The Angel Experiment
School's Out - Forever
Saving the World and Other Extreme Sports
The Protectors
The Final Warning
MAX
FANG
ANGEL
Nevermore
Maximum Ride Forever
Other
Other Adaptations
Manga
Volume 1
Volume 2
Volume 3
Volume 4
Volume 5
Volume 6
Volume 7
Volume 8
Volume 9
Comics
Film
Misc.
Mobile apps
Angel by James Patterson
Maximum Ride: The Ultimate Flight
Online game
Book Commercials
Coloring book
Characters
The Flock
Max
Fang
Iggy
Nudge
Gazzy
Angel
Total
Dylan
Community
Administration
Forum
Recent blog posts
Editing
Module:Archives
Back to page
Edit source
View history
Talk (0)
Edit Page
Module:Archives
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 = {}; local helper = {}; helper.rec = function(min, max, prefix, namespace) if (min + 1) == max then return min elseif max == nil then local doublemin = min * 2 local title = mw.title.new(prefix .. " " .. doublemin, namespace) if title.exists then return helper.rec(doublemin, max, prefix, namespace) else return helper.rec(min, doublemin, prefix, namespace) end else local dif = max - min local test = min + math.ceil(dif/2) local title = mw.title.new(prefix .. " " .. test, namespace) if title.exists then return helper.rec(test, max, prefix, namespace) else return helper.rec(min, test, prefix, namespace) end end end p.archivenumber = function (namespace, prefix) return helper.rec(1, nil, prefix, namespace) end helper.buildtable = function(agg, cur, last, namespace, page, archiveprefix) if cur > last then return table.concat(agg, "") else local next = agg if ((cur - 1) % 3) == 0 then table.insert(next, "\n|-") end table.insert(next, "\n|[[") table.insert(next, namespace) table.insert(next, ":") table.insert(next, page) table.insert(next, "/") table.insert(next, archiveprefix) table.insert(next, " ") table.insert(next, cur .. "|") table.insert(next, archiveprefix) table.insert(next, " ") table.insert(next, cur .. "]]") return helper.buildtable(next, cur + 1, last, namespace, page, archiveprefix) end end p.buildtable = function(namespace, page, archiveprefix) local init = {} table.insert(init, "{| style=\"width: 100%; padding: 0px; text-align: center; background-color: transparent;\"") local last = p.archivenumber(namespace, page .. "/" .. archiveprefix) local wikitext = helper.buildtable(init, 1, last, namespace, page, archiveprefix) .. "\n|}" return wikitext end p.run = function(frame) local namespace local page local prefix local archive if (frame.args.root and frame.args.root ~= "") then local root = frame.args.root mw.log("root") mw.log(root) local pattern = "([^:]+):(.+)" local endindex _, endindex, namespace, page, _, prefix = mw.ustring.find(root, pattern) local rest = mw.ustring.sub(root, endindex) local subpage _, _, subpage = mw.ustring.find(rest, "/(.*)") mw.log("namespace, page, prefix") mw.log(namespace) mw.log(page) mw.log(prefix) prefix = prefix or "Archive" archive = "Archive" namespace = mw.ustring.gsub(namespace, " ", "_") else local current = mw.title.getCurrentTitle() namespace = mw.ustring.gsub(current.nsText, " ", "_") page = current.text archive = frame.args.archivename or "Archive" end return p.buildtable(namespace, page, archive) end return p
Summary:
Please note that all contributions to the Maximum Ride Wiki are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab