Module:EpisodeCite/data: Difference between revisions
From the only original and legitimate Battlestar Wiki: the free-as-in-beer, non-corporate, open-content encyclopedia, analytical reference, and episode guide on all things Battlestar Galactica. Accept neither subpar substitutes nor subpar clones.
More actions
Created page with "-------------------------------------------------------------------------------- -- Module:EpisodeCite/data -- -- Frozen configuration and episode data for Module:EpisodeCite, replacing: -- Template:CAP, Template:TRS, Template:OS, Template:G80, Template:RDMep, -- Template:TRS video, Template:TOS video, and Template:Diswitch. -- -- Episode lists sourced from List of all episodes (oldid=247428), -- pulled 2026-07-05. All four series are completed productions; this..." |
m Protected "Module:EpisodeCite/data" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 40: | Line 40: | ||
["Galactica Discovers Earth"] = "Galactica Discovers Earth, Part I", | ["Galactica Discovers Earth"] = "Galactica Discovers Earth, Part I", | ||
["The Super Scouts"] = "The Super Scouts, Part I", | ["The Super Scouts"] = "The Super Scouts, Part I", | ||
-- Webisode sub-series: each is ONE article covering several | |||
-- numbered segments. Bare form (no episode number) resolves | |||
-- to the article as a whole; "X, Episode N" resolves the | |||
-- same way, letting a citation name the specific segment in | |||
-- its display text without needing N separate articles. | |||
["The Resistance"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 1"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 2"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 3"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 4"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 5"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 6"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 7"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 8"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 9"] = "Battlestar Galactica: The Resistance", | |||
["The Resistance, Episode 10"] = "Battlestar Galactica: The Resistance", | |||
["Razor Flashbacks, Episode 1"] = "Razor Flashbacks", | |||
["Razor Flashbacks, Episode 2"] = "Razor Flashbacks", | |||
["Razor Flashbacks, Episode 3"] = "Razor Flashbacks", | |||
["Razor Flashbacks, Episode 4"] = "Razor Flashbacks", | |||
["Razor Flashbacks, Episode 5"] = "Razor Flashbacks", | |||
["Razor Flashbacks, Episode 6"] = "Razor Flashbacks", | |||
["Razor Flashbacks, Episode 7"] = "Razor Flashbacks", | |||
["The Face of the Enemy"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 1"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 2"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 3"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 4"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 5"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 6"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 7"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 8"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 9"] = "Face of the Enemy", | |||
["The Face of the Enemy, Episode 10"] = "Face of the Enemy", | |||
}, | }, | ||
}, | }, | ||
| Line 228: | Line 265: | ||
"Lay Down Your Burdens, Part I", | "Lay Down Your Burdens, Part I", | ||
"Lay Down Your Burdens, Part II", | "Lay Down Your Burdens, Part II", | ||
-- Battlestar Galactica: The Resistance — a 10-part webisode | |||
-- series bridging seasons 2 and 3, one continuous story cut | |||
-- into 10 segments. It is ONE article on the wiki, cited by | |||
-- segment via diswitch: {{TRS|The Resistance, Episode 1}} | |||
-- through Episode 10 all resolve to the single entry below. | |||
"Battlestar Galactica: The Resistance", | |||
-- Season 3 (Occupation/Precipice are episodes 3.01/3.02, not | -- Season 3 (Occupation/Precipice are episodes 3.01/3.02, not | ||
-- to be confused with | -- to be confused with the webisodes above) | ||
"Occupation", | "Occupation", | ||
"Precipice", | "Precipice", | ||
| Line 253: | Line 295: | ||
-- Season 4 (incl. Razor) | -- Season 4 (incl. Razor) | ||
"Razor", | "Razor", | ||
-- Razor Flashbacks — 7 featurette-style webisodes (Moore's own | |||
-- term; deleted scenes from Razor released weekly), not 10. | |||
-- One article, cited by segment via diswitch: | |||
-- {{TRS|Razor Flashbacks, Episode 1}} through Episode 7. | |||
"Razor Flashbacks", | "Razor Flashbacks", | ||
"He That Believeth in Me", | "He That Believeth in Me", | ||
| Line 265: | Line 311: | ||
"Revelations", | "Revelations", | ||
"Sometimes a Great Notion", | "Sometimes a Great Notion", | ||
-- Face of the Enemy — a 10-part webisode series bridging the | |||
-- two halves of Season 4 (between "Sometimes a Great Notion" | |||
-- and "A Disquiet Follows My Soul"), focused on Gaeta and an | |||
-- Eight. Its real article title omits "The" — confirmed via | |||
-- en.battlestarwiki.org's Webisodes disambiguation page. ONE | |||
-- article; cited by segment via diswitch: | |||
-- {{TRS|The Face of the Enemy, Episode 1}} through Episode 10. | |||
-- (Earlier revisions of this file mislabeled the TV episode | |||
-- block below with this comment instead of adding the actual | |||
-- entry — that was a data error, now corrected.) | |||
"Face of the Enemy", | |||
"A Disquiet Follows My Soul", | "A Disquiet Follows My Soul", | ||
"The Oath", | "The Oath", | ||
Latest revision as of 00:18, 6 July 2026
Documentation for this module may be created at Module:EpisodeCite/data/doc
--------------------------------------------------------------------------------
-- Module:EpisodeCite/data
--
-- Frozen configuration and episode data for Module:EpisodeCite, replacing:
-- Template:CAP, Template:TRS, Template:OS, Template:G80, Template:RDMep,
-- Template:TRS video, Template:TOS video, and Template:Diswitch.
--
-- Episode lists sourced from [[List of all episodes]] (oldid=247428),
-- pulled 2026-07-05. All four series are completed productions; this data
-- is intentionally LOCKED and should never change except to correct a
-- transcription error.
--
-- Loaded via mw.loadData() — must contain only static data (no functions).
--------------------------------------------------------------------------------
return {
----------------------------------------------------------------------------
-- Title-to-article resolution maps (replaces Template:Diswitch).
--
-- The live Diswitch template has exactly two branches:
-- * series=TOS → its own tiny map
-- * everything else (CAP / TRS / 1980 / default) → one shared map
-- That structure is preserved here verbatim for drop-in fidelity.
----------------------------------------------------------------------------
diswitch = {
TOS = {
["The Hand of God"] = "The Hand of God (TOS)",
},
default = {
["The Hand of God"] = "The Hand of God (RDM)",
["Apotheosis"] = "Apotheosis (episode)",
["Pilot"] = "Caprica pilot",
["Pilot (Caprica)"] = "Caprica pilot",
["Pegasus"] = "Pegasus (episode)",
["Resistance"] = "Resistance (episode)",
["Home"] = "Home, Part I",
["Exodus"] = "Exodus, Part I",
["Resurrection Ship"] = "Resurrection Ship, Part I",
["Galactica Discovers Earth"] = "Galactica Discovers Earth, Part I",
["The Super Scouts"] = "The Super Scouts, Part I",
-- Webisode sub-series: each is ONE article covering several
-- numbered segments. Bare form (no episode number) resolves
-- to the article as a whole; "X, Episode N" resolves the
-- same way, letting a citation name the specific segment in
-- its display text without needing N separate articles.
["The Resistance"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 1"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 2"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 3"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 4"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 5"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 6"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 7"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 8"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 9"] = "Battlestar Galactica: The Resistance",
["The Resistance, Episode 10"] = "Battlestar Galactica: The Resistance",
["Razor Flashbacks, Episode 1"] = "Razor Flashbacks",
["Razor Flashbacks, Episode 2"] = "Razor Flashbacks",
["Razor Flashbacks, Episode 3"] = "Razor Flashbacks",
["Razor Flashbacks, Episode 4"] = "Razor Flashbacks",
["Razor Flashbacks, Episode 5"] = "Razor Flashbacks",
["Razor Flashbacks, Episode 6"] = "Razor Flashbacks",
["Razor Flashbacks, Episode 7"] = "Razor Flashbacks",
["The Face of the Enemy"] = "Face of the Enemy",
["The Face of the Enemy, Episode 1"] = "Face of the Enemy",
["The Face of the Enemy, Episode 2"] = "Face of the Enemy",
["The Face of the Enemy, Episode 3"] = "Face of the Enemy",
["The Face of the Enemy, Episode 4"] = "Face of the Enemy",
["The Face of the Enemy, Episode 5"] = "Face of the Enemy",
["The Face of the Enemy, Episode 6"] = "Face of the Enemy",
["The Face of the Enemy, Episode 7"] = "Face of the Enemy",
["The Face of the Enemy, Episode 8"] = "Face of the Enemy",
["The Face of the Enemy, Episode 9"] = "Face of the Enemy",
["The Face of the Enemy, Episode 10"] = "Face of the Enemy",
},
},
----------------------------------------------------------------------------
-- Per-series citation configuration.
--
-- Fields:
-- abbrLink wikitext for the abbreviated series link in the
-- parenthetical form, e.g. ([[Re-imagined Series|TRS]]: ...)
-- prosePrefix wikitext preceding the episode list in |prose=y form
-- (reproduced byte-for-byte from the live templates,
-- including their inconsistent trailing spacing)
-- diswitchKey which resolution map to use: "TOS" or "default"
-- delLink how the "deleted scene" link target is built:
-- "caprica-list" → List of Deleted Scenes (Caprica)#TITLE
-- "subpage" → ARTICLE/Deleted scenes
-- "subpage-raw" → TITLE/Deleted Scenes (RDMep quirk:
-- raw un-resolved title, capital S)
-- categoryKey what goes into [[Category:...]] per cited episode:
-- "raw" → the title exactly as typed (CAP, G80, RDMep)
-- "resolved" → the diswitch-resolved article (TRS, OS)
-- serialAnd true → "A", "B" and "C" joining (CAP, TRS, RDMep)
-- false → "A", "B", "C" joining (OS, G80)
----------------------------------------------------------------------------
series = {
TRS = {
abbrLink = "[[Re-imagined Series|TRS]]",
prosePrefix = "[[Re-imagined Series]]' ",
diswitchKey = "default",
delLink = "subpage",
categoryKey = "resolved",
serialAnd = true,
},
CAP = {
abbrLink = "[[Caprica (series)|CAP]]",
prosePrefix = "''[[Caprica (series)|Caprica]]'''s ",
diswitchKey = "default",
delLink = "caprica-list",
categoryKey = "raw",
serialAnd = true,
},
OS = {
abbrLink = "[[Original Series|TOS]]",
prosePrefix = "[[Original Series]]' ",
diswitchKey = "TOS",
delLink = "subpage",
categoryKey = "resolved",
serialAnd = false,
},
G80 = {
abbrLink = "[[Galactica 1980|1980]]",
prosePrefix = "''[[Galactica 1980]]'''s",
diswitchKey = "default",
delLink = "subpage",
categoryKey = "raw",
serialAnd = false,
},
RDMep = {
abbrLink = "[[TRS]]/[[Caprica (series)|CAP]]",
prosePrefix = "''[[Caprica (series)|Caprica]]'''s and the [[Re-imagined Series]]'",
diswitchKey = "default",
delLink = "subpage-raw",
categoryKey = "raw",
serialAnd = true,
},
-- NEW: Battlestar Galactica: Blood and Chrome. No live wiki
-- template exists for this yet (it was previously folded into
-- the TRS episode list) — ARTICLE TITLE BELOW IS AN ASSUMPTION,
-- confirm "Battlestar Galactica: Blood and Chrome" is the actual
-- article name before deploying Template:BC.
BC = {
abbrLink = "[[Battlestar Galactica: Blood and Chrome|B&C]]",
prosePrefix = "''[[Battlestar Galactica: Blood and Chrome]]'''",
diswitchKey = "default",
delLink = "subpage",
categoryKey = "raw",
serialAnd = true,
},
},
----------------------------------------------------------------------------
-- Canonical franchise ordering, used to sort/group citations when a
-- single call (via the new series-less universal template) spans more
-- than one series. Per explicit instruction: TOS precedes 1980; Caprica
-- precedes Blood and Chrome; Blood and Chrome precedes TRS.
--
-- RDMep is deliberately absent — it's a citation FORMAT (a fixed
-- CAP+TRS combination), not a franchise series, and is never a target
-- of auto-detection.
----------------------------------------------------------------------------
-- Keys here must match data.series / data.episodes keys exactly.
-- NOTE the naming trap: the Original Series' key is "OS" (after
-- Template:OS), even though its rendered abbreviation is "TOS" and
-- its diswitch map key is "TOS". Franchise order per instruction:
-- TOS precedes 1980; Caprica precedes Blood and Chrome; Blood and
-- Chrome precedes TRS.
seriesOrder = { "OS", "G80", "CAP", "BC", "TRS" },
----------------------------------------------------------------------------
-- Canonical (locked) episode lists.
--
-- Not consulted by the citation renderer itself — the renderer, like the
-- templates it replaces, links whatever it is given. These lists exist
-- for validation: p.cite() checks each supplied title against its
-- series' list (after diswitch resolution) and quietly adds pages with
-- unrecognized titles to a tracking category, catching typos that the
-- old templates rendered as redlinks with no way to find them.
----------------------------------------------------------------------------
episodes = {
OS = { -- Original Series, 1978-79. 21 entries.
"Saga of a Star World",
"Lost Planet of the Gods, Part I",
"Lost Planet of the Gods, Part II",
"The Lost Warrior",
"The Long Patrol",
"The Gun on Ice Planet Zero, Part I",
"The Gun on Ice Planet Zero, Part II",
"The Magnificent Warriors",
"The Young Lords",
"The Living Legend, Part I",
"The Living Legend, Part II",
"Fire in Space",
"War of the Gods, Part I",
"War of the Gods, Part II",
"The Man with Nine Lives",
"Murder on the Rising Star",
"Greetings From Earth",
"Baltar's Escape",
"Experiment in Terra",
"Take the Celestra",
"The Hand of God (TOS)",
},
G80 = { -- Galactica 1980. 10 entries.
"Galactica Discovers Earth, Part I",
"Galactica Discovers Earth, Part II",
"Galactica Discovers Earth, Part III",
"The Super Scouts, Part I",
"The Super Scouts, Part II",
"Spaceball",
"The Night the Cylons Landed, Part I",
"The Night the Cylons Landed, Part II",
"Space Croppers",
"The Return of Starbuck",
},
TRS = { -- Re-imagined Series, 2003-09. 71 entries.
-- Miniseries (two broadcast nights; no separate bare
-- "Miniseries" article exists)
"Miniseries, Night 1",
"Miniseries, Night 2",
-- Season 1
"33",
"Water",
"Bastille Day",
"Act of Contrition",
"You Can't Go Home Again",
"Litmus",
"Six Degrees of Separation",
"Flesh and Bone",
"Tigh Me Up, Tigh Me Down",
"The Hand of God (RDM)",
"Colonial Day",
"Kobol's Last Gleaming, Part I",
"Kobol's Last Gleaming, Part II",
-- Season 2
"Scattered",
"Valley of Darkness",
"Fragged",
"Resistance (episode)",
"The Farm",
"Home, Part I",
"Home, Part II",
"Final Cut",
"Flight of the Phoenix",
"Pegasus (episode)",
"Resurrection Ship, Part I",
"Resurrection Ship, Part II",
"Epiphanies",
"Black Market",
"Scar",
"Sacrifice",
"The Captain's Hand",
"Downloaded",
"Lay Down Your Burdens, Part I",
"Lay Down Your Burdens, Part II",
-- Battlestar Galactica: The Resistance — a 10-part webisode
-- series bridging seasons 2 and 3, one continuous story cut
-- into 10 segments. It is ONE article on the wiki, cited by
-- segment via diswitch: {{TRS|The Resistance, Episode 1}}
-- through Episode 10 all resolve to the single entry below.
"Battlestar Galactica: The Resistance",
-- Season 3 (Occupation/Precipice are episodes 3.01/3.02, not
-- to be confused with the webisodes above)
"Occupation",
"Precipice",
"Exodus, Part I",
"Exodus, Part II",
"Collaborators",
"Torn",
"A Measure of Salvation",
"Hero",
"Unfinished Business",
"The Passage",
"The Eye of Jupiter",
"Rapture",
"Taking a Break From All Your Worries",
"The Woman King",
"A Day in the Life",
"Dirty Hands",
"Maelstrom",
"The Son Also Rises",
"Crossroads, Part I",
"Crossroads, Part II",
-- Season 4 (incl. Razor)
"Razor",
-- Razor Flashbacks — 7 featurette-style webisodes (Moore's own
-- term; deleted scenes from Razor released weekly), not 10.
-- One article, cited by segment via diswitch:
-- {{TRS|Razor Flashbacks, Episode 1}} through Episode 7.
"Razor Flashbacks",
"He That Believeth in Me",
"Six of One",
"The Ties That Bind",
"Escape Velocity",
"The Road Less Traveled",
"Faith",
"Guess What's Coming to Dinner?",
"Sine Qua Non",
"The Hub",
"Revelations",
"Sometimes a Great Notion",
-- Face of the Enemy — a 10-part webisode series bridging the
-- two halves of Season 4 (between "Sometimes a Great Notion"
-- and "A Disquiet Follows My Soul"), focused on Gaeta and an
-- Eight. Its real article title omits "The" — confirmed via
-- en.battlestarwiki.org's Webisodes disambiguation page. ONE
-- article; cited by segment via diswitch:
-- {{TRS|The Face of the Enemy, Episode 1}} through Episode 10.
-- (Earlier revisions of this file mislabeled the TV episode
-- block below with this comment instead of adding the actual
-- entry — that was a data error, now corrected.)
"Face of the Enemy",
"A Disquiet Follows My Soul",
"The Oath",
"Blood on the Scales",
"No Exit",
"Deadlock",
"Someone to Watch Over Me",
"Islanded in a Stream of Stars",
"Daybreak, Part I",
"Daybreak, Part II",
-- Movies (Blood and Chrome is its own series entry below —
-- see data.episodes.BC — not listed here)
"The Plan",
},
CAP = { -- Caprica, 2010. 18 entries (pilot + 17 episodes).
"Caprica pilot",
"Rebirth",
"Reins of a Waterfall",
"Gravedancing",
"There is Another Sky",
"Know Thy Enemy",
"The Imperfections of Memory",
"Ghosts in the Machine",
"End of Line",
"Unvanquished",
"Retribution",
"Things We Lock Away",
"False Labor",
"Blowback",
"The Dirteaters",
"The Heavens Will Rise",
"Here Be Dragons",
"Apotheosis (episode)",
},
BC = { -- Battlestar Galactica: Blood and Chrome, 2012. 1 entry.
-- Originally 10 webisodes, released/marketed as a single
-- feature-length movie; cited as one unit, same as "Razor"
-- and "The Plan" are within TRS.
"Blood and Chrome",
},
},
-- RDMep validates against the union of TRS and CAP (declared here so the
-- module needn't hardcode it).
episodeUnion = {
RDMep = { "TRS", "CAP" },
},
-- Tracking categories for the auto-detection path.
unknownEpisodeCategory = "Pages citing unrecognized episode titles",
ambiguousSeriesCategory = "Pages citing an episode title matching multiple series",
unresolvedSeriesCategory = "Pages citing episodes of an undetected series",
}