Functions:
get_ep(num: integer) -> string
for other lua moduleswhich_episode(frame) -> string
to be invoked
Invoke usage:
{{#invoke:Which Episode|which_episode|num}}
num must be a valid episode number, will return TBA if code cannot find episode.
local episodes = {
[1] = "Visitor from the Other World",
[2] = "Neighbor and Trion Soldier",
[3] = "Osamu Mikumo's Ability",
[4] = "Ai Kitora, A-Rank No.5 Agent",
[5] = "Power Elite, Yūichi Jin",
[6] = "Chika Amatori's Side Effect",
[7] = "Miwa Squad's Assault",
[8] = "Black Trigger (episode){{!}}Black Trigger",
[9] = "The Organization Known as Border",
[10] = "Tamakoma Branch (episode){{!}}Tamakoma Branch",
[11] = "Each One's Determination",
[12] = "A-Rank Agents of Tamakoma",
[13] = "Border's Top Teams",
[14] = "No. 1 Attacker: Kei Tachikawa",
[15] = "Black Trigger: Fūjin",
[16] = "The Future Moves Forward",
[17] = "Border Official Enlistment",
[18] = "Osamu Mikumo vs. Sōya Kazama (Episode){{!}}Osamu Mikumo vs. Sōya Kazama",
[19] = "Rank War! Shun Midorikawa's Plot",
[20] = "Clash! Yūma vs. Midorikawa",
[21] = "The Neighbor World",
[22] = "The Large-Scale Invasion Begins",
[23] = "The Holy Land, Aftokrator",
[24] = "Meeden's Baby Birds",
[25] = "The Most Powerful Squad in Border",
[26] = "Fierce Fight! Enedora vs. Kazama Squad",
[27] = "Border on the Counterattack",
[28] = "The Organon User",
[29] = "Crossroad of Fate",
[30] = "The Enemy Captain, Hyrein",
[31] = "Osamu Mikumo's Determination",
[32] = "Implacable Enedora",
[33] = "The Terror of Hyrein",
[34] = "A Fierce Showdown! The Fight of the Best",
[35] = "The End of the Battle",
[36] = "The Have-Not",
[37] = "Hero and Partner",
[38] = "B-Rank Wars Begin",
[39] = "Suwa Squad and Arafune Squad",
[40] = "Start-Up! Mikumo Squad",
[41] = "An Impertinent Rookie",
[42] = "Kō Murakami of Suzunari First",
[43] = "Nasu Squad's Choice",
[44] = "The Battle in the Foul Weather",
[45] = "What Decides the Battle",
[46] = "The Ace's Willpower",
[47] = "The Captain's Pride",
[48] = "And Towards Tomorrow",
[49] = "Fugitives from Another World",
[50] = "Invisible Assailants",
[51] = "Xeno's Trion Soldiers",
[52] = "The Sunset of Meeden",
[53] = "The One that Shall Be Saved",
[54] = "Giev's Thrust",
[55] = "Dead or Alive",
[56] = "Mystery of Lilith",
[57] = "Xeno and Lilith",
[58] = "Captured Osamu",
[59] = "Two Black Triggers",
[60] = "Yōtarō's Adventure",
[61] = "Truth and Lies",
[62] = "Giev and Charon",
[63] = "A Reversed Future",
[64] = "The Prisoner from Aftokrator",
[65] = "No. 1 Shooter: Masataka Ninomiya",
[66] = "Sharpened Fangs",
[67] = "The Battle of the Top B-Rank Teams",
[68] = "The Targeted Tamakoma",
[69] = "Battle Royal",
[70] = "The Captain's Duty",
[71] = "A New Threat",
[72] = "An Evolving Mikumo Squad",
[73] = "To The Future",
[74] = "The Attack",
[75] = "Collision",
[76] = "Decisive Battle",
[77] = "Destiny",
[78] = "New Technique",
[79] = "Strong Will",
[80] = "Showdown",
[81] = "Negotiation",
[82] = "Captain",
[83] = "The Upper Ranks",
[84] = "The Strong Ones",
[85] = "New Face",
[86] = "New Start",
[87] = "Choice",
[88] = "Strategy",
[89] = "Secret Plan",
[90] = "Unrivaled",
[91] = "Decision",
[92] = "Premonition",
[93] = "Will",
[94] = "Formidable Opponent",
[95] = "Change of Plans",
[96] = "Final Round",
[97] = "Melee",
[98] = "One-on-One",
[99] = "Resolution"
}
---@param num integer
---@return string
local function _get_ep(num)
for i, v in ipairs(episodes) do
if i == num then
return v
end
end
return "TBA"
end
local util = require("Module:Util")
local mod = {
get_ep = _get_ep
}
function mod.which_episode(frame)
local args, pargs = util.get_args_and_pargs(frame)
local num = args[1] or pargs[1] or #episodes + 1
return frame:preprocess(mod.get_ep(num))
end
return mod