The Alchemist Code Wiki
READ MORE
The Alchemist Code Wiki
Explore
Main Page
All Pages
Interactive Maps
Units
Team Building Tools
Global Tier List
ACDB Unit Builder
Raid Buffer/Debuffer List
Team Building
About Units
About Units
List of Units
Jobs
About Jobs
List of Jobs
Job Upgrades
Job+ List
Equipment
Unit Shards
Elemental Shards
Enlightenment
Truth Seals
Obtainables
Mementos
About Mementos
List of Mementos
Memento Quick Reference
Mementos Rated By Usefulness
Memento Leader Skills
Gear
About Gear
Free (Permanent)
Free (Event)
Summon
VCR (Memento)
PvP
Enlightened Gear Skills
Consumables
Gameplay & Guides
Gameplay
About the Game
Lore
Mechanics
New Player Help
Help Center
Beginner's Guide
Reroll Guide
Glossary of Terms
Recommended Free Units
Shard Farm Priority
Banners
Lore
Main Story
Ancient Story
Genesis Story
Sacred Stone Memories
Babel Chronicles
Character Stories
Event Stories
NPCs
News and Events
List of Events by Date
References
Update History
Shops
Milestones
Friends
Mercenaries
Alchemia Port
Experience Charts
Other Resources
Guides and Rankings
Discord
Alchemist Code Database
Quests
Story
Character Quests
Events
Multiplay
Raids
Battle
Babel Expedition
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
FANDOM
Explore
Current Wiki
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
The Alchemist Code Wiki
21,532
pages
Explore
Main Page
All Pages
Interactive Maps
Units
Team Building Tools
Global Tier List
ACDB Unit Builder
Raid Buffer/Debuffer List
Team Building
About Units
About Units
List of Units
Jobs
About Jobs
List of Jobs
Job Upgrades
Job+ List
Equipment
Unit Shards
Elemental Shards
Enlightenment
Truth Seals
Obtainables
Mementos
About Mementos
List of Mementos
Memento Quick Reference
Mementos Rated By Usefulness
Memento Leader Skills
Gear
About Gear
Free (Permanent)
Free (Event)
Summon
VCR (Memento)
PvP
Enlightened Gear Skills
Consumables
Gameplay & Guides
Gameplay
About the Game
Lore
Mechanics
New Player Help
Help Center
Beginner's Guide
Reroll Guide
Glossary of Terms
Recommended Free Units
Shard Farm Priority
Banners
Lore
Main Story
Ancient Story
Genesis Story
Sacred Stone Memories
Babel Chronicles
Character Stories
Event Stories
NPCs
News and Events
List of Events by Date
References
Update History
Shops
Milestones
Friends
Mercenaries
Alchemia Port
Experience Charts
Other Resources
Guides and Rankings
Discord
Alchemist Code Database
Quests
Story
Character Quests
Events
Multiplay
Raids
Battle
Babel Expedition
Editing
Module:Page
Back to page
Edit source
View history
Talk (0)
Edit Page
Module:Page
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 h = {} -- Page Functions local pageFuncs = { Item = 'Module:Page/Item', Gear = 'Module:Page/Gear', Job = 'Module:Page/Job', Memento = 'Module:Page/Memento', } --[[ {[#invoke:Page | Memento | TS_WADA_TAMAMO_01 ]} ]] function p.page(frame) local pageType = mw.text.trim(frame.args[1]) local iname = mw.text.trim(frame.args[2] or "") for k, v in pairs(frame:getParent().args) do frame.args[k] = v end frame:getParent().args = frame.args local args = require('Module:Arguments').getArgs(frame) if args.isPage then require('Module:CargoUtil').store{ _table = 'Pages', type = pageType, iname = iname, } end return require('Module:Page/'..pageType)._main(iname, args) end function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {parentFirst = true}) local pageType = args.type local iname = mw.text.trim(args[1]) if args.isPage then require('Module:CargoUtil').store{ _table = 'Pages', type = pageType, iname = iname, } local renderPage = require('Module:Page/'..pageType).renderPage -- I shouldn't have to do this... if renderPage then return renderPage(iname) end end -- TODO: Ewwwwww local moduleName = pageFuncs[pageType] if moduleName then return require(moduleName)._main(iname, args) else return h.makeWikiTable(args) end end -- Utility function h.remove(t, k) local v = t[k] t[k] = nil return v end function h.removeAll(t, l) local r = {} for i, k in ipairs(l) do r[k] = t[k] t[k] = nil end return r end function h.setAll(t1, t2) for k, v in pairs(t2) do t1[k] = v end return t1 end function h.shallowCopy(orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {} for orig_key, orig_value in pairs(orig) do copy[orig_key] = orig_value end else -- number, string, boolean, etc copy = orig end return copy end function h.isArray(t) local i = 0 for _ in pairs(t) do i = i + 1 if t[i] == nil then return false end end return true end function h.makeWikiTable(t) local array = h.isArray(t) local sb = {'{|class="wikitable"'} for k, v in pairs(t) do table.insert(sb, "\n|-\n|") if not array then table.insert(sb, k) table.insert(sb, "\n|") end if type(v) == "table" then table.insert(sb, "\n"..h.makeWikiTable(v).."\n") else table.insert(sb, tostring(v)) end end table.insert(sb, "\n|}") return table.concat(sb) end function h.processLoc(data, loc, keys) local v for i, k in ipairs(keys) do v = h.remove(data, k:lower()) if loc[k] == nil then loc[k] = v end end end function h.printUnusedEntries(data, loc, groups) local sb = {} for k, t in pairs(groups) do table.insert(sb, "\n==") table.insert(sb, k) table.insert(sb, "==\n") table.insert(sb, h.makeWikiTable(t)) end table.insert(sb, "\n==Misc Text==\n") table.insert(sb, h.makeWikiTable(loc)) table.insert(sb, "\n==Misc Data==\n") table.insert(sb, h.makeWikiTable(data)) return table.concat(sb) end return p
Summary:
Please note that all contributions to the The Alchemist Code Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Page/doc
(
edit
)
Follow on IG
TikTok
Join Fan Lab