Module:Status

local getArgs = require('Module:Arguments').getArgs local Wdstt = require('Module:Wdstt').main local p = {}

function p.main(frame) local args = getArgs(frame) return p._main(args) end

function p._main(args) local arg = args[1] local nvolatile = { ["burn"] = "Burn", ["burns"] = "Burn", ["burned"] = "Burn", ["burning"] = "Burn", ["freeze"] = "Freeze", ["freezes"] = "Freeze", ["freezing"] = "Freeze", ["frozen"] = "Freeze", ["froze"] = "Freeze", ["paralyze"] = "Paralysis", ["paralyzing"] = "Paralysis", ["paralyzed"] = "Paralysis", ["paralyzes"] = "Paralysis", ["paralysis"] = "Paralysis", ["poison"] = "Poison", ["poisons"] = "Poison", ["poisoning"] = "Poison", ["poisoned"] = "Poison", ["sleep"] = "Sleep", ["sleeping"] = "Sleep", ["asleep"] = "Sleep" }

local bvolatile = { ["confusion"] = "Confusion", ["confusing"] = "Confusion", ["confused"] = "Confusion", ["confuse"] = "Confusion", ["confuses"] = "Confusion", ["cringe"] = "Cringe", ["cringing"] = "Cringe", ["nightmare"] = "Nightmare", ["infatuate"] = "Infatuation", ["infatuates"] = "Infatuation", ["infatuation"] = "Infatuation", ["infatuating"] = "Infatuation", ["immobilize"] = "Immobilize", ["immobilized"] = "Immobilize", ["immobilizes"] = "Immobilize", ["immobilizing"] = "Immobilize", ["immobilzation"] = "Immobilize", ["perish count"] = "Perish Count", ["sealed"] = "Sealed", ["seal"] = "Sealed", ["sealing"] = "Sealed", ["shocker"] = "Shocker", ["shocked"] = "Shocked", ["shocks"] = "Shocked", ["shocking"] = "Shocked", ["silenced"] = "Silenced", ["silences"] = "Silenced", ["silencing"] = "Silenced" }

local pvolatile = { ["aurora veil"] = "Aurora Veil", ["confusion"] = "Confusion", ["confused"] = "Confusion", ["confuses"] = "Confusion", ["confuse"] = "Confusion", ["grounded"] = "Grounded", ["grounded"] = "Grounding", ["nausea"] = "Nausea", ["nauseated"] = "Nausea", ["protect"] = "Protect", ["protects"] = "Protect", ["protected"] = "Protect", ["protecting"] = "Protect", ["rampage"] = "Rampage", ["rampaging"] = "Rampage", ["rolling"] = "Rolling", ["reflect"] = "Reflect", ["safeguard"] = "Safeguard", ["substitute"] = "Substitute", ["sure shot"] = "Sure-Shot", ["trapped"] = "Trapped", ["trap"] = "Trapped", ["traps"] = "Trapped", ["trapping"] = "Trapped", ["Wide Guard"] = "Wide Guard", ["grassy terrain"] = "Grassy Terrain", ["electric terrain"] = "Electric Terrain", ["misty terrain"] = "Misty Terrain", ["psychic terrain"] = "Psychic Terrain" }

if arg then link = string.lower(arg) for k, s in pairs(nvolatile) do			if link == k then return ""..arg.."" end end for k, s in pairs(bvolatile) do			if link == k then return ""..arg.."" end end for k, s in pairs(pvolatile) do			if link == k then return ""..arg.."" end end end end

return p