Template:Ep: Difference between revisions
More actions
No edit summary |
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. | * '''cap1, cap2, cap3...''': Used for ''Caprica'' episode titles. You can list up to 8. | ||
* '''trs1, trs2, trs3...''': Used for ''Re-imagined Series'' episode titles. | * '''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. | * '''nocat''': Set to "Y" or "true" to prevent the template from adding categories to the page. | ||
| Line 34: | Line 34: | ||
'''Prints:''' <sup>(CAP: [[Pilot]] [[List of Deleted Scenes (Caprica)#Pilot|deleted scene]] and [[Apotheosis]]; TRS: [[Daybreak, Part I]] and [[Daybreak, Part II]])</sup> | '''Prints:''' <sup>(CAP: [[Pilot]] [[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.
| 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 |