ATLAS Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Report a bad ad
Useful pages
Item IDs
Map
NPCs
Resources
Ships
Taming
ATLAS links
Official site
Discord
Facebook
Reddit
Steam
Twitch
Twitter
YouTube
Wiki links
Wiki Discord
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
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
ATLAS Wiki
2,357
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Report a bad ad
Useful pages
Item IDs
Map
NPCs
Resources
Ships
Taming
ATLAS links
Official site
Discord
Facebook
Reddit
Steam
Twitch
Twitter
YouTube
Wiki links
Wiki Discord
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Module:RequiredCraftingStations
Back to page
Edit source
View history
Talk (0)
Edit Page
Module:RequiredCraftingStations
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.neededstations( f ) local args = f:getParent().args local stations = {["Campfire"] = false, ["Mortar And Pestle"] = false, ["Refining Forge"] = false, ["Preserving Bin"] = false, ["Smithy"] = false, ["Fabricator"] = false} local dependencies = { --["Campfire"] = { --"Charcoal", --"Cooked Meat", --"Cooked Prime Meat", --"Gunpowder" --}, } -- check if item itself needs a station to be crafted in. if yes, set to true if args.craftedin ~= nil and stations[args.craftedin] ~= nil then stations[args.craftedin] = true end -- get iconsize local iconsize = '20px' if args.iconsize ~= nil then iconsize = args.iconsize end -- test all given resources and set station to true if needed and station is not already on true for _,res in ipairs(args) do if res ~= '' then for station,_ in pairs(dependencies) do if not stations[station] and p.inTable(dependencies[station], res) then stations[station] = true end end end end local returnTable = {} for station, needed in pairs(stations) do if needed then table.insert(returnTable,'[[File:'..station..'.png|'..iconsize..']] [['..station..']]') end end return table.concat(returnTable,'<br/>') end function p.inTable(tbl, item) for _, value in pairs(tbl) do if string.lower(value) == string.lower(item) then return true end end return false end return p
Summary:
Please note that all contributions to the ATLAS Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Doc/end
(
view source
)
Template:Doc/start
(
view source
)
Template:RequiredCraftingStations
(
view source
)
Template:RequiredCraftingStations/doc
(
view source
)
Module:RequiredCraftingStations
(
edit
)
Module:RequiredCraftingStations/doc
(
edit
)
Follow on IG
TikTok
Join Fan Lab