|
|
| Line 1: |
Line 1: |
| <includeonly><sup>({{#if:{{{cap1|}}}|[[Caprica (series)|CAP]]: {{ep/process | | <includeonly>{{#invoke:EpisodeCite|cite}}</includeonly><noinclude> |
| |series=cap
| |
| |1={{{cap1|}}}|2={{{cap2|}}}|3={{{cap3|}}}|4={{{cap4|}}}|5={{{cap5|}}}|6={{{cap6|}}}|7={{{cap7|}}}|8={{{cap8|}}}
| |
| |del1={{{del1|}}}|del2={{{del2|}}}|del3={{{del3|}}}|del4={{{del4|}}}|del5={{{del5|}}}|del6={{{del6|}}}|del7={{{del7|}}}|del8={{{del8|}}}
| |
| }}}}{{#if:{{{cap1|}}}|{{#if:{{{trs1|}}}|<nowiki>;</nowiki> }}}}{{#if:{{{trs1|}}}|[[Re-imagined Series|TRS]]<nowiki>:</nowiki> {{ep/process
| |
| |series=trs
| |
| |1={{{trs1|}}}|2={{{trs2|}}}|3={{{trs3|}}}|4={{{trs4|}}}|5={{{trs5|}}}|6={{{trs6|}}}|7={{{trs7|}}}|8={{{trs8|}}}
| |
| |del1={{{trs_del1|}}}|del2={{{trs_del2|}}}|del3={{{trs_del3|}}}|del4={{{trs_del4|}}}|del5={{{trs_del5|}}}|del6={{{trs_del6|}}}|del7={{{trs_del7|}}}|del8={{{trs_del8|}}}
| |
| }}}})</sup>{{#if:{{{nocat|}}}||{{#if:{{{cap1|}}}|[[Category:{{{cap1}}}]]}}{{#if:{{{cap2|}}}|[[Category:{{{cap2}}}]]}}{{#if:{{{cap3|}}}|[[Category:{{{cap3}}}]]}}{{#if:{{{cap4|}}}|[[Category:{{{cap4}}}]]}}{{#if:{{{cap5|}}}|[[Category:{{{cap5}}}]]}}{{#if:{{{cap6|}}}|[[Category:{{{cap6}}}]]}}{{#if:{{{cap7|}}}|[[Category:{{{cap7}}}]]}}{{#if:{{{cap8|}}}|[[Category:{{{cap8}}}]]}}{{#if:{{{trs1|}}}|[[Category:{{{trs1}}}]]}}{{#if:{{{trs2|}}}|[[Category:{{{trs2}}}]]}}{{#if:{{{trs3|}}}|[[Category:{{{trs3}}}]]}}{{#if:{{{trs4|}}}|[[Category:{{{trs4}}}]]}}{{#if:{{{trs5|}}}|[[Category:{{{trs5}}}]]}}{{#if:{{{trs6|}}}|[[Category:{{{trs6}}}]]}}{{#if:{{{trs7|}}}|[[Category:{{{trs7}}}]]}}{{#if:{{{trs8|}}}|[[Category:{{{trs8}}}]]}}}}</includeonly><noinclude>
| |
| = Documentation = | | = Documentation = |
|
| |
|
| This template allows for easy inline citation of episodes from multiple series in a single citation call. It is designed to combine citations from ''[[Caprica (series)|Caprica]]'' and the ''[[Re-imagined Series]]''.
| | Universal inline episode citation. Unlike {{[[Template:TRS|TRS]]}}, {{[[Template:CAP|CAP]]}}, {{[[Template:OS|OS]]}}, {{[[Template:G80|G80]]}} and {{[[Template:BC|BC]]}}, this template requires no knowledge of which series an episode belongs to — each supplied title is matched against the locked episode lists in [[Module:EpisodeCite/data]], grouped by series, and rendered in canonical franchise order (Original Series, Galactica 1980, Caprica, Blood and Chrome, Re-imagined Series) regardless of the order the titles were typed. |
|
| |
|
| == Usage == | | == Usage == |
|
| |
|
| The template uses '''numbered parameters prefixed with the series name''' to accept episode titles.
| | <code><nowiki>{{Ep|33}}</nowiki></code> — identical output to <code><nowiki>{{TRS|33}}</nowiki></code> |
|
| |
|
| * '''cap1, cap2...''': Used for ''Caprica'' episode titles.
| | <code><nowiki>{{Ep|33|Rebirth|Fire in Space}}</nowiki></code> — renders three grouped citations, ordered TOS → CAP → TRS |
| * '''trs1, trs2...''': Used for ''Re-imagined Series'' episode titles.
| |
| * '''del#''': To mark a deleted scene from a '''Caprica''' episode. The # corresponds to the number of the 'cap' parameter (e.g., `del1` applies to `cap1`).
| |
| * '''trs_del#''': To mark a deleted scene from a '''TRS''' episode. The # corresponds to the number of the 'trs' parameter (e.g., `trs_del1` applies to `trs1`).
| |
| * '''nocat''': Set to "Y" or "true" to prevent the template from adding categories to the page.
| |
|
| |
|
| === Examples ===
| | Parameters <code>del#</code>, <code>prose</code> and <code>nocat</code> work as in the per-series templates. |
|
| |
|
| ==== Combined Series ==== | | == Limitations == |
| <code><nowiki>{{ep|cap1=Pilot|cap2=Rebirth|trs1=33|trs2=Pegasus}}</nowiki></code>
| |
|
| |
|
| '''Prints:''' <sup>(CAP: "[[Pilot]]" and "[[Rebirth]]"; TRS: "[[33]]" and "[[Pegasus]]")</sup> | | * '''"The Hand of God" cannot be auto-detected''' — the title exists in both the Original Series and the Re-imagined Series. Use <code><nowiki>{{OS|The Hand of God}}</nowiki></code> or <code><nowiki>{{TRS|The Hand of God}}</nowiki></code> explicitly. Auto-detect renders it as an "ambiguous series" fallback and files the page under [[:Category:Pages citing an episode title matching multiple series]]. |
| | * '''RDMep-style joint citations are not produced''' — <code><nowiki>{{Ep|Rebirth|Water}}</nowiki></code> renders two separate citations (one CAP, one TRS), not the combined <code>TRS/CAP:</code> form. Joint attribution is an editorial choice; use {{[[Template:RDMep|RDMep]]}} explicitly for it. |
| | * Titles not found in the locked lists render as an "unresolved series" fallback and file the page under [[:Category:Pages citing episodes of an undetected series]]. |
|
| |
|
| --- | | <!-- TemplateData: paste generated block for Template:Ep from templatedata-output.txt here --> |
| ==== Deleted Scenes for Both Series ====
| |
| <code><nowiki>{{ep|cap1=Pilot|del1=Y|trs1=33|trs_del1=Y|trs2=Precipice}}</nowiki></code>
| |
|
| |
|
| '''Prints:''' <sup>(CAP: "[[Pilot]]" [[List of Deleted Scenes (Caprica)#Pilot|deleted scene]]; TRS: "[[33]]" [[33/Deleted scenes|deleted scene]] and "[[Precipice]]")</sup>
| | [[Category: Battlestar Wiki Templates|{{PAGENAME}}]]</noinclude> |
| <templatedata>
| |
| { | |
| "description": "Creates a combined inline citation for episodes from the Caprica and Re-imagined Series.",
| |
| "params": {
| |
| "cap1": { "label": "Caprica Episode 1", "type": "wiki-page-name" },
| |
| "cap2": { "label": "Caprica Episode 2", "type": "wiki-page-name" },
| |
| "cap3": { "label": "Caprica Episode 3", "type": "wiki-page-name" },
| |
| "cap4": { "label": "Caprica Episode 4", "type": "wiki-page-name" },
| |
| "cap5": { "label": "Caprica Episode 5", "type": "wiki-page-name" },
| |
| "cap6": { "label": "Caprica Episode 6", "type": "wiki-page-name" },
| |
| "cap7": { "label": "Caprica Episode 7", "type": "wiki-page-name" },
| |
| "cap8": { "label": "Caprica Episode 8", "type": "wiki-page-name" },
| |
| "trs1": { "label": "TRS Episode 1", "type": "wiki-page-name" },
| |
| "trs2": { "label": "TRS Episode 2", "type": "wiki-page-name" },
| |
| "trs3": { "label": "TRS Episode 3", "type": "wiki-page-name" },
| |
| "trs4": { "label": "TRS Episode 4", "type": "wiki-page-name" },
| |
| "trs5": { "label": "TRS Episode 5", "type": "wiki-page-name" },
| |
| "trs6": { "label": "TRS Episode 6", "type": "wiki-page-name" },
| |
| "trs7": { "label": "TRS Episode 7", "type": "wiki-page-name" },
| |
| "trs8": { "label": "TRS Episode 8", "type": "wiki-page-name" },
| |
| "del1": { "label": "CAP Deleted scene 1", "type": "boolean" },
| |
| "del2": { "label": "CAP Deleted scene 2", "type": "boolean" },
| |
| "del3": { "label": "CAP Deleted scene 3", "type": "boolean" },
| |
| "del4": { "label": "CAP Deleted scene 4", "type": "boolean" },
| |
| "del5": { "label": "CAP Deleted scene 5", "type": "boolean" },
| |
| "del6": { "label": "CAP Deleted scene 6", "type": "boolean" },
| |
| "del7": { "label": "CAP Deleted scene 7", "type": "boolean" },
| |
| "del8": { "label": "CAP Deleted scene 8", "type": "boolean" },
| |
| "trs_del1": { "label": "TRS Deleted scene 1", "type": "boolean" },
| |
| "trs_del2": { "label": "TRS Deleted scene 2", "type": "boolean" },
| |
| "trs_del3": { "label": "TRS Deleted scene 3", "type": "boolean" },
| |
| "trs_del4": { "label": "TRS Deleted scene 4", "type": "boolean" },
| |
| "trs_del5": { "label": "TRS Deleted scene 5", "type": "boolean" },
| |
| "trs_del6": { "label": "TRS Deleted scene 6", "type": "boolean" },
| |
| "trs_del7": { "label": "TRS Deleted scene 7", "type": "boolean" },
| |
| "trs_del8": { "label": "TRS Deleted scene 8", "type": "boolean" },
| |
| "nocat": { "label": "No Category", "type": "boolean" }
| |
| },
| |
| "paramOrder": [
| |
| "cap1", "cap2", "cap3", "cap4", "cap5", "cap6", "cap7", "cap8",
| |
| "trs1", "trs2", "trs3", "trs4", "trs5", "trs6", "trs7", "trs8",
| |
| "del1", "del2", "del3", "del4", "del5", "del6", "del7", "del8",
| |
| "trs_del1", "trs_del2", "trs_del3", "trs_del4", "trs_del5", "trs_del6", "trs_del7", "trs_del8",
| |
| "nocat"
| |
| ],
| |
| "format": "inline"
| |
| }
| |
| </templatedata>
| |
| </noinclude> | |
Documentation
Universal inline episode citation. Unlike {{TRS}}, {{CAP}}, {{OS}}, {{G80}} and {{BC}}, this template requires no knowledge of which series an episode belongs to — each supplied title is matched against the locked episode lists in Module:EpisodeCite/data, grouped by series, and rendered in canonical franchise order (Original Series, Galactica 1980, Caprica, Blood and Chrome, Re-imagined Series) regardless of the order the titles were typed.
Usage
{{Ep|33}} — identical output to {{TRS|33}}
{{Ep|33|Rebirth|Fire in Space}} — renders three grouped citations, ordered TOS → CAP → TRS
Parameters del#, prose and nocat work as in the per-series templates.
Limitations
- "The Hand of God" cannot be auto-detected — the title exists in both the Original Series and the Re-imagined Series. Use
{{OS|The Hand of God}} or {{TRS|The Hand of God}} explicitly. Auto-detect renders it as an "ambiguous series" fallback and files the page under Category:Pages citing an episode title matching multiple series.
- RDMep-style joint citations are not produced —
{{Ep|Rebirth|Water}} renders two separate citations (one CAP, one TRS), not the combined TRS/CAP: form. Joint attribution is an editorial choice; use {{RDMep}} explicitly for it.
- Titles not found in the locked lists render as an "unresolved series" fallback and file the page under Category:Pages citing episodes of an undetected series.