Difference between revisions of "Module:Symphogear"

From Symphogear Wiki
Jump to: navigation, search
Line 1: Line 1:
 
local symphogear = {}
 
local symphogear = {}
-- used as the base name for all Symphogear seasons
 
symphogear.baseNameJP = "戦姫絶唱シンフォギア"
 
symphogear.baseNameLocal = "Senki Zesshou Symphogear"
 
-- important to keep track of number of seasons for informative errors
 
symphogear.seasonCount = 5
 
symphogear.seasonsJP = {symphogear.baseNameJP, symphogear.baseNameJP.."G", symphogear.baseNameJP.."GX", symphogear.baseNameJP.."AXZ", symphogear.baseNameJP.."XV"}
 
symphogear.seasonsLocal = {symphogear.baseNameLocal, symphogear.baseNameLocal.." G", symphogear.baseNameLocal.." GX", symphogear.baseNameLocal.." AXZ", symphogear.baseNameLocal.." XV"}
 
-- likewise keep counts updated as updating shit
 
symphogear.seasonsWithEpisodes = 4
 
symphogear.episodeCounts = {13, 13, 13, 13}
 
-- episode titles, lists are per season, episodes are in order
 
symphogear.episodesJP = {
 
{"覚醒の鼓動", "雑音と不協和音と", "夜にすれ違う", "落涙", "なお昏き深淵の底から", "兆しの行方は", "撃ちてし止まぬ運命のもとに", "陽だまりに翳りなく", "防人の歌", "繋いだ手だけが紡ぐもの", "月を穿つ", "シンフォギア", "流れ星、墜ちて燃えて尽きて、そして――"},
 
{"ガングニールの少女", "胸に力と偽りと", "終焉を望む者、終焉に臨む者", "あたしの帰る場所", "血飛沫の小夜曲", "奇跡――それは残酷な軌跡", "君でいられなくなるキミに", "繋ぐ手と手…戸惑うわたしのため…", "英雄故事", "喪失までのカウントダウン", "ディスティニーアーク", "撃槍", "遥か彼方、星が音楽となった…かの日"},
 
{"ガングニール、再び", "Edge Works", "抜剣", "輝きを継ぐ、君らしく", "向き合う勇気", "夢の途中", "こんなにも、残酷だけど", "へいき、へっちゃら", "GX", "正義を信じて、握り締めて"},
 
{"バルベルデ地獄変", "ラストリゾート", "歯車が描くホロスコープ", "黄金錬成", "虚構戦域に命を賭して", "決死圏からの浮上", "ARCANA No.00", "過去と未来の狭間で", "碧いうさぎ", "アン・ティキ・ティラ", "神威赫奕の極みに達し", "AXZ", "涙を重ねる度、証明される現実は"}
 
}
 
symphogear.episodesLocal = {
 
{"Beat of Awakening", "Noise and Disharmony", "Passing in the Night", "Shedding Tears", "From the Bottom of a Dark Abyss", "Where Omens Lead", "Toward the Fate that Never Stops Assailing Us", "The Sunshine Leaves no Shadows", "The Song of a Sentinel", "That Which Our Clasped Hands Bind", "Pierce the Moon", "Symphogear", "Meteoroid— Falling, Burning, and Disappear, Then..."},
 
{"The Gungnir Girl", "A Fierce, False Heart", "Those Who Crave the End, Those Who Brave the End", "The Place I Call Home", "Bloodstained Serenade", "Miracles are a Cruel Legacy", "To You, Soon Unable To Be Yourself", "Hold my Hand... Lest I Hesitate.", "Hero Story", "Countdown to the Fall", "Destiny Ark", "Piercing Spear", "In the distance, that day, when the star became music..."},
 
{"Slaughterer of Miracles", "I Will Shatter The World, But First...", "The Harmonizers' Twilight", "Gungnir, Once Again", "Edge Works", "Unsheathe", "Inherit that Shine, in Your Own Way", "The Courage to Face It", "In the Midst of a Dream", "It Can Be So Cruel, Yet...", "Everything's Going to be A-Okay!", "GX", "Believe in Justice and Hold a Determination to Fist"},
 
{}
 
}
 
   
 
-- stuff under this line is what the program actually calls to pull those arrays
 
-- stuff under this line is what the program actually calls to pull those arrays
   
 
function symphogear.season (frame)
 
function symphogear.season (frame)
  +
data = mw.loadData("Module:Symphogear/data")
assert(frame.season <= symphogear.seasonCount and frame.season > 0,"Invalid season number.")
 
  +
assert(frame.season <= data.seasonCount and frame.season > 0,"Invalid season number.")
return symphogear.seasonsLocal[frame.season]
 
  +
return data.seasonsLocal[frame.season]
 
end
 
end
   
 
function symphogear.seasonJP (frame)
 
function symphogear.seasonJP (frame)
  +
data = mw.loadData("Module:Symphogear/data")
assert(frame.season <= symphogear.seasonCount and frame.season > 0,"Invalid season number.")
 
  +
assert(frame.season <= data.seasonCount and frame.season > 0,"Invalid season number.")
return symphogear.seasonsJP[frame.season]
 
  +
return data.seasonsJP[frame.season]
 
end
 
end
   
 
function symphogear.episode (frame)
 
function symphogear.episode (frame)
  +
data = mw.loadData("Module:Symphogear/data")
assert(frame.season <= symphogear.seasonsWithEpisodes and frame.season > 0,"Invalid season number.")
 
assert(frame.episode <= symphogear.episodeCounts[frame.season] and frame.episode > 0,"Invalid episode number.")
+
assert(frame.season <= data.seasonsWithEpisodes and frame.season > 0,"Invalid season number.")
return symphogear.episodesLocal[frame.season][frame.episode]
+
assert(frame.episode <= data.episodeCounts[frame.season] and frame.episode > 0,"Invalid episode number.")
  +
return data.episodesLocal[frame.season][frame.episode]
 
end
 
end
   
 
function symphogear.episodeJP (frame)
 
function symphogear.episodeJP (frame)
  +
data = mw.loadData("Module:Symphogear/data")
assert(frame.season <= symphogear.seasonsWithEpisodes and frame.season > 0,"Invalid season number.")
 
assert(frame.episode <= symphogear.episodeCounts[frame.season] and frame.episode > 0,"Invalid episode number.")
+
assert(frame.season <= data.seasonsWithEpisodes and frame.season > 0,"Invalid season number.")
return symphogear.episodesJP[frame.season][frame.episode]
+
assert(frame.episode <= data.episodeCounts[frame.season] and frame.episode > 0,"Invalid episode number.")
  +
return data.episodesJP[frame.season][frame.episode]
 
end
 
end
   

Revision as of 11:37, 13 June 2018

Gives access to standardised names for seasons and episodes, as well as easy access to the Japanese names.