Module:Interwiki

-- This is a general database for every interwiki wiki, as well as control for the template. Wikis should be added to this list upon being added to the interwiki. -- Thundermaker300

local categorization = require("Module:Categorization") local categorize = categorization.categorize_in_namespaces(0, 'Community') local links = require("Dev:Links") local mbox = require("Dev:Mbox") local utils = require("Module:Utils")

local p = {}

-- Map of wiki IDs to site names p.Wikis = { --A - D-- ["adoptme"] = "Adopt Me! Wiki", ["animebattlearenaaba"] = "Anime Battle Arena (ABA) Wiki", ["anime-fighting-simulator"] = "Anime Fighting Simulator Wiki", ["roblox-apocalypse-rising"] = "Roblox Apocalypse Rising Wiki", ["robloxarsenal"] = "Arsenal Wiki", ["bee-swarm-simulator"] = "Bee Swarm Simulator Wiki", ["roblox-blackhawk-rescue-mission-5"] = "Blackhawk Rescue Mission 5 Wiki", ["black-magic-ii"] = "Black Magic II Wiki", ["black-hole-simulator"] = "Black Hole Simulator Wiki", ["blox-cards"] = "Blox Cards Wikia", ["boku-no-robloxremastered"] = "Boku No Roblox:Remastered Wiki", ["booga-booga-roblox"] = "Booga Booga : Roblox Wiki", ["boss-fighting-stages-rebirth"] = "Boss Fighting Stages Rebirth Wikia", ["bubble-gum-simulator"] = "Bubble Gum Simulator Wiki", ["build-a-boat-for-treasure"] = "Build a boat for treasure Wiki", ["roblox-case-clicker"] = "Roblox Case Clicker Wiki", ["crown-academy"] = "Crown Academy Wiki", ["dinosimulator"] = "Dinosaur Simulator Wiki", ["dbog"] = "Dragon Ball Online Generations Wiki", ["dragon-ball-z-final-stand"] = "Dragon Ball Z: Final Stand Wiki", ["dungeonquestroblox"] = "DungeonQuestRoblox Wiki", --E - M-- ["eclipsis"] = "Eclipsis Wiki", ["egg-simulator"] = "Egg Simulator Wiki", ["electric-state-darkrp"] = "Electric State DarkRP Wiki", ["roblox-elemental-battlegrounds"] = "Roblox Elemental Battlegrounds Wiki", ["entry-point"] = "Entry Point Wiki", ["evolution-evade"] = "Evolution Evade Wiki", ["fantastic-frontier-roblox"] = "Fantastic Frontier Roblox Wiki", ["robloxflicker"] = "Flicker Wiki", ["roblox-galaxy-official"] = "Roblox Galaxy Official Wiki", ["greenville-wisconsin"] = "Greenville, Wisconsin Wiki", ["horrific-housing"] = "Horrific Housing Wiki", ["ice-cream-simulator"] = "Ice Cream Simulator Wiki", ["robloxislands"] = "Islands Wiki", ["jailbreak"] = "Jailbreak Wiki", ["jtoh"] = "Juke's Towers of Hell Wiki", ["loomian-legacy"] = "Loomian Legacy Wiki", ["lumber-tycoon-2"] = "Lumber Tycoon 2 Wiki", ["mad-city"] = "Mad City Roblox Wiki", ["minershaven"] = "The Miner's Haven Wikia", ["mining-simulator"] = "Mining Simulator Wiki", ["monsterislands"] = "Monster Islands - ROBLOX Wiki", ["roblox-etheria"] = "Etheriapedia", ["murder-island"] = "Murder Island Wiki", ["murder-mystery-2"] = "Murder Mystery 2 Wiki", ["my-restaurant"] = "My Restaurant Wiki", --N - S-- ["roblox-ninja-legends"] = "Roblox Ninja Legends Wiki", ["notoriety"] = "Notoriety Wikia", ["overlook-rp"] = "Overlook RP Wiki", ["parkour-roblox"] = "Roblox Parkour Wiki", ["pet-simulator"] = "Pet Simulator Wiki", ["roblox-phantom-forces"] = "Phantom Forces Wiki", ["robloxpiggy"] = "Piggy Wiki", ["roblox-ptfs"] = "Roblox Pilot Training Flight/Plane Simulator Wiki", ["pinewood"] = "Pinewood Wikia", ["quantum-science"] = "The Quantum Science Wiki", ["bthg"] = "BTHG Wiki", ["r2da"] = "R2DA Wiki", ["robeats"] = "Robeats Wiki", ["rocitizens"] = "RoCitizens Wiki", ["roghoul-rblx"] = "Ro-Ghoul Wiki", ["rolve"] = "ROLVe Wikia", ["royale-high"] = "Royale High Wiki", ["rumble-quest"] = "Rumble Quest Wiki", ["sciencesim"] = "Science Simulator Wiki", ["shiguto"] = "Shiguto Wiki", ["shindo-life-rell"] = "Shindo Life Wiki", ["roblox-site-76"] = "Site 76 Wiki", ["rblx-snow-shoveling-simulator"] = "ROBLOX Snow Shoveling Simulator Wiki", ["scr"] = "Stepford County Railway Wiki", ["sunshine-islands-roblox"] = "Sunshine Islands Roblox Wiki", ["roblox-super-bomb-survival"] = "Roblox Super Bomb Survival Wiki", ["superdoomspireroblox"] = "Super Doomspire Wiki", --T - Z-- ["tpt2"] = "Theme Park Tycoon 2 Wikia", ["roblox-tower-battles"] = "Roblox Tower Battles Wiki", ["tds"] = "Tower Defense Simulator Wiki", ["tower-of-hell"] = "Tower of Hell Wiki", ["treasurequestroblox"] = "Treasure Quest Wiki", ["treelands"] = "TreeLands Wikia", ["typicalcolors2"] = "Typical Colors 2 Wiki", ["ultimate-driving-universe-community"] = "Ultimate Driving Universe Wikia", ["vehicle-simulator-roblox"] = "Roblox Vehicle Simulator Wiki", ["vesteria"] = "Vesteria Wiki", ["welcome-to-bloxburg"] = "Welcome to Bloxburg Wiki", ["wfyb"] = "Whatever Floats Your Boat Wiki", ["world-zero"] = "World // Zero Wiki", ["zombie-attack-roblox"] = "Zombie Attack Roblox Wiki" }

function p._makeInterwikiHeader(args) local wiki = args[1] local kind = args.kind if kind ~= "game" and kind ~= "group" then return error('Unknown kind: must be "game" or "group"') end local found = false for wiki_id, site_name in pairs(p.Wikis) do       if wiki_id == wiki then found = true break end end if found then local site_name = p.Wikis[wiki] return tostring(mbox.main {           header = links.link("w:c:" .. (wiki or "roblox"), site_name, "local"),           text = "This "            	.. kind            	.. " has "            	.. links.link("w:c:" .. (wiki or "roblox"), "a dedicated wiki project", "local")           	.. " hosted by Fandom that is part of the Roblox Interwiki Project and provides more information about the "            	.. kind            	.. ".",            bordercolor = "#DDE1E9"        }) .. categorize(           (kind == "group" and "Groups" or "Experiences")            .. " with Interwiki wikis"	) else return tostring(mbox.main {           header = mw.title.getCurrentTitle.subpageText .. " is not part of the Roblox Interwiki Project.",            text = "This "                .. kind                .. " does not appear to have a dedicated Fandom-hosted wiki project in the Roblox Interwiki Project. If you believe this is a mistake, please contact a wiki administrator to get this resolved. Otherwise, this template should be removed.",            bordercolor = "#f5601b"        }) .. categorize("Non-interwiki experiences using Interwiki template") end end

p.makeInterwikiHeader = utils.make_wrapper_function(p._makeInterwikiHeader)

return p