Template:Ep: Difference between revisions
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#vardefine:cap_output|}}{{#if:{{{cap1|}}}|{{#vardefine:cap_output|"[[{{{cap1}}}]]"}}{{#if:{{{del1|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap1}}}|deleted scene]]}}}}}}{{#if:{{{cap2|}}}|{{#vardefine:cap_output|{{#var:cap_output}}{{#if:{{{cap3|}}}|, | and }}"[[{{{cap2}}}]]"}}{{#if:{{{del2|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap2}}}|deleted scene]]}}}}}}{{#if:{{{cap3|}}}|{{#vardefine:cap_output|{{#var:cap_output}}{{#if:{{{cap4|}}}|, | and }}"[[{{{cap3}}}]]"}}{{#if:{{{del3|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap3}}}|deleted scene]]}}}}}}{{#if:{{{cap4|}}}|{{#vardefine:cap_output|{{#var:cap_output}}{{#if:{{{cap5|}}}|, | and }}"[[{{{cap4}}}]]"}}{{#if:{{{del4|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap4}}}|deleted scene]]}}}}}}{{#if:{{{cap5|}}}|{{#vardefine:cap_output|{{#var:cap_output}}{{#if:{{{cap6|}}}|, | and }}"[[{{{cap5}}}]]"}}{{#if:{{{del5|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap5}}}|deleted scene]]}}}}}}{{#if:{{{cap6|}}}|{{#vardefine:cap_output|{{#var:cap_output}}{{#if:{{{cap7|}}}|, | and }}"[[{{{cap6}}}]]"}}{{#if:{{{del6|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap6}}}|deleted scene]]}}}}}}{{#if:{{{cap7|}}}|{{#vardefine:cap_output|{{#var:cap_output}}{{#if:{{{cap8|}}}|, | and }}"[[{{{cap7}}}]]"}}{{#if:{{{del7|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap7}}}|deleted scene]]}}}}}}{{#if:{{{cap8|}}}|{{#vardefine:cap_output|{{#var:cap_output}} and "[[{{{cap8}}}]]"}}{{#if:{{{del8|}}}|{{#vardefine:cap_output|{{#var:cap_output}} [[List of Deleted Scenes (Caprica)#{{{cap8}}}|deleted scene]]}}}}}}{{#vardefine:trs_output|}}{{#if:{{{trs1|}}}|{{#vardefine:trs_output|"[[{{{trs1}}}]]"}}}}{{#if:{{{trs2|}}}|{{#vardefine:trs_output|{{#var:trs_output}}{{#if:{{{trs3|}}}|, | and }}"[[{{{trs2}}}]]"}}}}{{#if:{{{trs3|}}}|{{#vardefine:trs_output|{{#var:trs_output}}{{#if:{{{trs4|}}}|, | and }}"[[{{{trs3}}}]]"}}}}{{#if:{{{trs4|}}}|{{#vardefine:trs_output|{{#var:trs_output}}{{#if:{{{trs5|}}}|, | and }}"[[{{{trs4}}}]]"}}}}{{#if:{{{trs5|}}}|{{#vardefine:trs_output|{{#var:trs_output}}{{#if:{{{trs6|}}}|, | and }}"[[{{{trs5}}}]]"}}}}{{#if:{{{trs6|}}}|{{#vardefine:trs_output|{{#var:trs_output}}{{#if:{{{trs7|}}}|, | and }}"[[{{{trs6}}}]]"}}}}{{#if:{{{trs7|}}}|{{#vardefine:trs_output|{{#var:trs_output}}{{#if:{{{trs8|}}}|, | and }}"[[{{{trs7}}}]]"}}}}{{#if:{{{trs8|}}}|{{#vardefine:trs_output|{{#var:trs_output}} and "[[{{{trs8}}}]]"}}}}<sup>({{#if:{{#var:cap_output}}|[[Caprica (series)|CAP]]: {{#var:cap_output}}}}{{#if:{{#var:trs_output}}|{{#if:{{#var:cap_output}}|; }}[[Re-imagined Series|TRS]]: {{#var:trs_output}}}})</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 = | ||
Revision as of 16:35, 26 July 2025
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 and the Re-imagined Series.
Usage
The template uses numbered parameters prefixed with the series name to accept episode titles. This is a robust method that works on all wikis.
- cap1, cap2, cap3...: Used for Caprica episode titles. You can list up to 8.
- trs1, trs2, trs3...: Used for Re-imagined Series episode titles. You can list up to 8.
- del#: To mark a deleted scene from a Caprica episode, where the # corresponds to the number of the 'cap' parameter (e.g., `del1` applies to `cap1`).
- nocat: Set to "Y" or "true" to prevent the template from adding categories to the page.
Examples
Combined Series
To cite episodes from both series, number them for each series prefix.
{{ep|cap1=Pilot|cap2=Rebirth|trs1=33|trs2=Pegasus}}
Prints: (CAP: "Pilot" and "Rebirth"; TRS: "33" and "Pegasus")
---
More Complex Punctuation
The template correctly handles commas and the word "and".
{{ep|cap1=Dirteaters|cap2=False Labor|cap3=Blowback|trs1=Razor}}
Prints: (CAP: "Dirteaters", "False Labor", and "Blowback"; TRS: "Razor")
---
With Deleted Scenes
To mark a deleted scene from a Caprica episode.
{{ep|cap1=Pilot|del1=Y|cap2=Apotheosis|trs1=Daybreak, Part I|trs2=Daybreak, Part II}}
Prints: (CAP: "Pilot" deleted scene and "Apotheosis"; TRS: "Daybreak, Part I" and "Daybreak, Part II")
Creates a combined inline citation for episodes from the Caprica and Re-imagined Series.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Caprica Episode 1 | cap1 | First episode from Caprica. | Page name | optional |
| Caprica Episode 2 | cap2 | Second episode from Caprica. | Page name | optional |
| Caprica Episode 3 | cap3 | Third episode from Caprica. | Page name | optional |
| Caprica Episode 4 | cap4 | Fourth episode from Caprica. | Page name | optional |
| Caprica Episode 5 | cap5 | Fifth episode from Caprica. | Page name | optional |
| Caprica Episode 6 | cap6 | Sixth episode from Caprica. | Page name | optional |
| Caprica Episode 7 | cap7 | Seventh episode from Caprica. | Page name | optional |
| Caprica Episode 8 | cap8 | Eighth episode from Caprica. | Page name | optional |
| TRS Episode 1 | trs1 | First episode from the Re-imagined Series. | Page name | optional |
| TRS Episode 2 | trs2 | Second episode from the Re-imagined Series. | Page name | optional |
| TRS Episode 3 | trs3 | Third episode from the Re-imagined Series. | Page name | optional |
| TRS Episode 4 | trs4 | Fourth episode from the Re-imagined Series. | Page name | optional |
| TRS Episode 5 | trs5 | Fifth episode from the Re-imagined Series. | Page name | optional |
| TRS Episode 6 | trs6 | Sixth episode from the Re-imagined Series. | Page name | optional |
| TRS Episode 7 | trs7 | Seventh episode from the Re-imagined Series. | Page name | optional |
| TRS Episode 8 | trs8 | Eighth episode from the Re-imagined Series. | Page name | optional |
| Deleted scene for cap1 | del1 | Set to 'Y' if the information for cap1 is from a deleted scene. | Boolean | optional |
| Deleted scene for cap2 | del2 | Set to 'Y' if the information for cap2 is from a deleted scene. | Boolean | optional |
| Deleted scene for cap3 | del3 | Set to 'Y' if the information for cap3 is from a deleted scene. | Boolean | optional |
| Deleted scene for cap4 | del4 | Set to 'Y' if the information for cap4 is from a deleted scene. | Boolean | optional |
| Deleted scene for cap5 | del5 | Set to 'Y' if the information for cap5 is from a deleted scene. | Boolean | optional |
| Deleted scene for cap6 | del6 | Set to 'Y' if the information for cap6 is from a deleted scene. | Boolean | optional |
| Deleted scene for cap7 | del7 | Set to 'Y' if the information for cap7 is from a deleted scene. | Boolean | optional |
| Deleted scene for cap8 | del8 | Set to 'Y' if the information for cap8 is from a deleted scene. | Boolean | optional |
| No Category | nocat | Set to 'Y' to prevent the template from adding categories to the page. | Boolean | optional |