Module:SeasonVariables
From JoJo's Bizarre Encyclopedia - JoJo Wiki
Revision as of 06:40, 19 July 2023 by Vish (talk | contribs) (Created page with "local p = {} function p.main(frame) local input = frame.args[1] local abbreviations = { PB = "Phantom Blood", BT = "Battle Tendency", SC = "Stardust Crusaders", DU = "Diamond is Unbreakable", GW = "Golden Wind", SO = "Stone Ocean", SBR = "Steel Ball Run", JJL = "JoJolion", TJL = "The JOJOLands", ["TSKR Episode %d+ %(OVA%)"] = "Thus Spoke Kishibe Rohan", ["Episode %d+ %(OVA%)"...")
Documentation for this module may be created at Module:SeasonVariables/doc
local p = {}
function p.main(frame)
local input = frame.args[1]
local abbreviations = {
PB = "Phantom Blood",
BT = "Battle Tendency",
SC = "Stardust Crusaders",
DU = "Diamond is Unbreakable",
GW = "Golden Wind",
SO = "Stone Ocean",
SBR = "Steel Ball Run",
JJL = "JoJolion",
TJL = "The JOJOLands",
["TSKR Episode %d+ %(OVA%)"] = "Thus Spoke Kishibe Rohan",
["Episode %d+ %(OVA%)"] = "JoJo's Bizarre Adventure"
}
for abbreviation, full_name in pairs(abbreviations) do
if string.find(input, abbreviation) then
return "''[[" .. full_name .. "]]'' " .. string.sub(input, string.len(abbreviation) + 3)
end
end
return input
end
return p
- Manga ▾
- Media ▾
- Characters ▾
- World ▾
- Archives ▾
- Misc ▾
- Wiki ▾