Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ep: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Line 8: Line 8:
The template uses '''numbered parameters prefixed with the series name''' to accept episode titles. This is a robust method that works on all wikis.
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. [cite_start]You can list up to 8. [cite: 3]
* '''cap1, cap2, cap3...''': Used for ''Caprica'' episode titles. You can list up to 8.
* '''trs1, trs2, trs3...''': Used for ''Re-imagined Series'' episode titles. [cite_start]You can list up to 8. [cite: 15]
* '''trs1, trs2, trs3...''': Used for ''Re-imagined Series'' episode titles. You can list up to 8.
* [cite_start]'''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`). [cite: 4, 5]
* '''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.
* '''nocat''': Set to "Y" or "true" to prevent the template from adding categories to the page.


Line 34: Line 34:


'''Prints:''' <sup>(CAP: [[Pilot]]&nbsp;[[List of Deleted Scenes (Caprica)#Pilot|deleted scene]] and [[Apotheosis]]; TRS: [[Daybreak, Part I]] and [[Daybreak, Part II]])</sup>
'''Prints:''' <sup>(CAP: [[Pilot]]&nbsp;[[List of Deleted Scenes (Caprica)#Pilot|deleted scene]] and [[Apotheosis]]; TRS: [[Daybreak, Part I]] and [[Daybreak, Part II]])</sup>
<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", "description": "First episode from Caprica." },
"cap2": { "label": "Caprica Episode 2", "type": "wiki-page-name", "description": "Second episode from Caprica." },
"cap3": { "label": "Caprica Episode 3", "type": "wiki-page-name", "description": "Third episode from Caprica." },
"cap4": { "label": "Caprica Episode 4", "type": "wiki-page-name", "description": "Fourth episode from Caprica." },
"cap5": { "label": "Caprica Episode 5", "type": "wiki-page-name", "description": "Fifth episode from Caprica." },
"cap6": { "label": "Caprica Episode 6", "type": "wiki-page-name", "description": "Sixth episode from Caprica." },
"cap7": { "label": "Caprica Episode 7", "type": "wiki-page-name", "description": "Seventh episode from Caprica." },
"cap8": { "label": "Caprica Episode 8", "type": "wiki-page-name", "description": "Eighth episode from Caprica." },
"trs1": { "label": "TRS Episode 1", "type": "wiki-page-name", "description": "First episode from the Re-imagined Series." },
"trs2": { "label": "TRS Episode 2", "type": "wiki-page-name", "description": "Second episode from the Re-imagined Series." },
"trs3": { "label": "TRS Episode 3", "type": "wiki-page-name", "description": "Third episode from the Re-imagined Series." },
"trs4": { "label": "TRS Episode 4", "type": "wiki-page-name", "description": "Fourth episode from the Re-imagined Series." },
"trs5": { "label": "TRS Episode 5", "type": "wiki-page-name", "description": "Fifth episode from the Re-imagined Series." },
"trs6": { "label": "TRS Episode 6", "type": "wiki-page-name", "description": "Sixth episode from the Re-imagined Series." },
"trs7": { "label": "TRS Episode 7", "type": "wiki-page-name", "description": "Seventh episode from the Re-imagined Series." },
"trs8": { "label": "TRS Episode 8", "type": "wiki-page-name", "description": "Eighth episode from the Re-imagined Series." },
"del1": { "label": "Deleted scene for cap1", "type": "boolean", "description": "Set to 'Y' if the information for cap1 is from a deleted scene." },
"del2": { "label": "Deleted scene for cap2", "type": "boolean", "description": "Set to 'Y' if the information for cap2 is from a deleted scene." },
"del3": { "label": "Deleted scene for cap3", "type": "boolean", "description": "Set to 'Y' if the information for cap3 is from a deleted scene." },
"del4": { "label": "Deleted scene for cap4", "type": "boolean", "description": "Set to 'Y' if the information for cap4 is from a deleted scene." },
"del5": { "label": "Deleted scene for cap5", "type": "boolean", "description": "Set to 'Y' if the information for cap5 is from a deleted scene." },
"del6": { "label": "Deleted scene for cap6", "type": "boolean", "description": "Set to 'Y' if the information for cap6 is from a deleted scene." },
"del7": { "label": "Deleted scene for cap7", "type": "boolean", "description": "Set to 'Y' if the information for cap7 is from a deleted scene." },
"del8": { "label": "Deleted scene for cap8", "type": "boolean", "description": "Set to 'Y' if the information for cap8 is from a deleted scene." },
"nocat": { "label": "No Category", "type": "boolean", "description": "Set to 'Y' to prevent the template from adding categories to the page." }
},
"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",
"nocat"
],
"format": "inline"
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 16:15, 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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Caprica Episode 1cap1

First episode from Caprica.

Page nameoptional
Caprica Episode 2cap2

Second episode from Caprica.

Page nameoptional
Caprica Episode 3cap3

Third episode from Caprica.

Page nameoptional
Caprica Episode 4cap4

Fourth episode from Caprica.

Page nameoptional
Caprica Episode 5cap5

Fifth episode from Caprica.

Page nameoptional
Caprica Episode 6cap6

Sixth episode from Caprica.

Page nameoptional
Caprica Episode 7cap7

Seventh episode from Caprica.

Page nameoptional
Caprica Episode 8cap8

Eighth episode from Caprica.

Page nameoptional
TRS Episode 1trs1

First episode from the Re-imagined Series.

Page nameoptional
TRS Episode 2trs2

Second episode from the Re-imagined Series.

Page nameoptional
TRS Episode 3trs3

Third episode from the Re-imagined Series.

Page nameoptional
TRS Episode 4trs4

Fourth episode from the Re-imagined Series.

Page nameoptional
TRS Episode 5trs5

Fifth episode from the Re-imagined Series.

Page nameoptional
TRS Episode 6trs6

Sixth episode from the Re-imagined Series.

Page nameoptional
TRS Episode 7trs7

Seventh episode from the Re-imagined Series.

Page nameoptional
TRS Episode 8trs8

Eighth episode from the Re-imagined Series.

Page nameoptional
Deleted scene for cap1del1

Set to 'Y' if the information for cap1 is from a deleted scene.

Booleanoptional
Deleted scene for cap2del2

Set to 'Y' if the information for cap2 is from a deleted scene.

Booleanoptional
Deleted scene for cap3del3

Set to 'Y' if the information for cap3 is from a deleted scene.

Booleanoptional
Deleted scene for cap4del4

Set to 'Y' if the information for cap4 is from a deleted scene.

Booleanoptional
Deleted scene for cap5del5

Set to 'Y' if the information for cap5 is from a deleted scene.

Booleanoptional
Deleted scene for cap6del6

Set to 'Y' if the information for cap6 is from a deleted scene.

Booleanoptional
Deleted scene for cap7del7

Set to 'Y' if the information for cap7 is from a deleted scene.

Booleanoptional
Deleted scene for cap8del8

Set to 'Y' if the information for cap8 is from a deleted scene.

Booleanoptional
No Categorynocat

Set to 'Y' to prevent the template from adding categories to the page.

Booleanoptional