Template:TRS: Difference between revisions
More languages
More actions
No edit summary |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{prose|}}}|[[Re-imagined Series]]{{'}}|<sup>([[Re-imagined Series{{!}}TRS]]:}} {{#fornumargs: number|value|"[[{{diswitch|{{#var: value }}}}{{!}}{{0|{{#var: value }}}}]]"{{#if:{{{del{{#var: number}}|}}}| [[{{diswitch|series= | <includeonly>{{#if:{{{prose|}}}|[[Re-imagined Series]]{{'}}|<sup>([[Re-imagined Series{{!}}TRS]]:}} {{#fornumargs: number|value|"[[{{diswitch|{{#var: value }}}}{{!}}{{0|{{#var: value }}}}]]"{{#if:{{{del{{#var: number}}|}}}| [[{{diswitch|series=TRS|{{#var: value }}}}/Deleted scenes|deleted scene]]|{{void}}}}{{#vardefine: i | {{#expr: {{#var: number}} + 1 }} }}{{#if:{{{{{#var: i}}|}}}|{{#vardefine: j | {{#expr: {{#var: number}} + 2 }} }}{{#if:{{{{{#var: j}}|}}}|, | and }}|{{void}}}}}}{{#if:{{{prose|}}}|{{void}}|)</sup>}}{{#if:{{{nocat|}}}|{{void}}|{{#fornumargs: number|value|[[Category:{{diswitch|series=TRS|{{#var: value }}}}]]}}}}</includeonly><noinclude> | ||
= Documentation = | = Documentation = | ||
| Line 44: | Line 44: | ||
[[Category: Battlestar Wiki Templates|{{PAGENAME}}]]<templatedata> | [[Category: Battlestar Wiki Templates|{{PAGENAME}}]]<templatedata> | ||
{ | { | ||
"description": "Creates an inline citation for one or more episodes from the Re-imagined Series.", | |||
"format": "inline", | |||
"params": { | "params": { | ||
"1": { | "1": { | ||
"type": "wiki-page-name" | "label": "Episode 1", | ||
"description": "The title of the first episode to cite. This should be the article name of the episode.", | |||
"type": "wiki-page-name", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"del1": { | |||
"label": "Deleted scene for Episode 1", | |||
"description": "If set, adds a 'deleted scene' link next to the first episode.", | |||
"type": "boolean" | |||
}, | }, | ||
"2": { | "2": { | ||
"label": "Episode 2", | |||
"description": "The title of the second episode to cite.", | |||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"del2": { | |||
"label": "Deleted scene for Episode 2", | |||
"description": "If set, adds a 'deleted scene' link next to the second episode.", | |||
"type": "boolean" | |||
}, | }, | ||
"3": { | "3": { | ||
"label": "Episode 3", | |||
"description": "The title of the third episode to cite.", | |||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"del3": { | |||
"label": "Deleted scene for Episode 3", | |||
"description": "If set, adds a 'deleted scene' link next to the third episode.", | |||
"type": "boolean" | |||
}, | }, | ||
"4": { | "4": { | ||
"label": "Episode 4", | |||
"description": "The title of the fourth episode to cite.", | |||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"del4": { | |||
"label": "Deleted scene for Episode 4", | |||
"description": "If set, adds a 'deleted scene' link next to the fourth episode.", | |||
"type": "boolean" | |||
}, | }, | ||
"5": { | "5": { | ||
"label": "Episode 5", | |||
"description": "The title of the fifth episode to cite.", | |||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"del5": { | |||
"label": "Deleted scene for Episode 5", | |||
"description": "If set, adds a 'deleted scene' link next to the fifth episode.", | |||
"type": "boolean" | |||
}, | }, | ||
"6": { | "6": { | ||
"label": "Episode 6", | |||
"description": "The title of the sixth episode to cite.", | |||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"del6": { | |||
"label": "Deleted scene for Episode 6", | |||
"description": "If set, adds a 'deleted scene' link next to the sixth episode.", | |||
"type": "boolean" | |||
}, | }, | ||
"7": { | "7": { | ||
"label": "Episode 7", | |||
"description": "The title of the seventh episode to cite.", | |||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | |||
"del7": { | |||
"label": "Deleted scene for Episode 7", | |||
"description": "If set, adds a 'deleted scene' link next to the seventh episode.", | |||
"type": "boolean" | |||
}, | }, | ||
"8": { | "8": { | ||
"label": "Episode 8", | |||
"description": "The title of the eighth episode to cite.", | |||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
}, | }, | ||
" | "del8": { | ||
" | "label": "Deleted scene for Episode 8", | ||
"description": "If set, adds a 'deleted scene' link next to the eighth episode.", | |||
"type": "boolean" | |||
"type": " | |||
}, | }, | ||
"prose": { | "prose": { | ||
"label": "Prose format", | |||
"description": "If set, formats the output for inclusion directly in prose, without parentheses. E.g., \"Re-imagined Series's '33'\" instead of \"(TRS: \"33\")\".", | |||
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
"nocat": { | "nocat": { | ||
"label": "No category", | |||
"description": "If set, suppresses the addition of categories for the cited episodes.", | |||
"type": "boolean" | "type": "boolean" | ||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"1", | |||
"del1", | |||
"2", | |||
"del2", | |||
"3", | |||
"del3", | |||
"4", | |||
"del4", | |||
"5", | |||
"del5", | |||
"6", | |||
"del6", | |||
"7", | |||
"del7", | |||
"8", | |||
"del8", | |||
"prose", | |||
"nocat" | |||
] | |||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
[[de:Vorlage:TOS]]</noinclude> | |||
Latest revision as of 20:39, 19 August 2025
Documentation
This template allows for easy inline citation of episodes (up to 8 per line), with the parentheses already surrounding the citation.
Usage
Singular episode:
{{TRS|Episode Title 1}}
Multiple episodes:
{{TRS|Episode Title 1|Episode Title 2|Episode Title 3}}
In using this template, simply put in the ARTICLE NAME of the episode, sans any quotes or wikisyntax. You may add up to 8 episode titles, each separated by the pipe — | — character.
Examples
Singular episode:
''Olympic Carrier'' is destroyed {{TRS|33}}.
Prints: Olympic Carrier is destroyed (TRS: "33").
Multiple episodes:
''Pegasus'' survives the attack on the Scorpion Fleet Shipyards {{TRS|Razor|Pegasus}}.
Prints: Pegasus survives the attack on the Scorpion Fleet Shipyards (TRS: "Razor" and "Pegasus").
Prose Form
For citations where the Galactipedian wishes to include the series and episode title into the prose, the |prose=y option exists.
Examples
Singular episode:
In the [[Battlestar Galactica (2005 Novel)|novelization]] of {{TRS|Miniseries|prose=y}}, the character of specialist Cally was referred to as [[Jane Cally]], although this is later disproven by the fact that the character itself was given the proper name of [[Cally Henderson]] later in the series.
Prints: In the novelization of Re-imagined Series' "Miniseries", the character of specialist Cally was referred to as Jane Cally, although this is later disproven by the fact that the character itself was given the proper name of Cally Henderson later in the series.
Creates an inline citation for one or more episodes from the Re-imagined Series.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Episode 1 | 1 | The title of the first episode to cite. This should be the article name of the episode. | Page name | required |
| Deleted scene for Episode 1 | del1 | If set, adds a 'deleted scene' link next to the first episode. | Boolean | optional |
| Episode 2 | 2 | The title of the second episode to cite. | Page name | optional |
| Deleted scene for Episode 2 | del2 | If set, adds a 'deleted scene' link next to the second episode. | Boolean | optional |
| Episode 3 | 3 | The title of the third episode to cite. | Page name | optional |
| Deleted scene for Episode 3 | del3 | If set, adds a 'deleted scene' link next to the third episode. | Boolean | optional |
| Episode 4 | 4 | The title of the fourth episode to cite. | Page name | optional |
| Deleted scene for Episode 4 | del4 | If set, adds a 'deleted scene' link next to the fourth episode. | Boolean | optional |
| Episode 5 | 5 | The title of the fifth episode to cite. | Page name | optional |
| Deleted scene for Episode 5 | del5 | If set, adds a 'deleted scene' link next to the fifth episode. | Boolean | optional |
| Episode 6 | 6 | The title of the sixth episode to cite. | Page name | optional |
| Deleted scene for Episode 6 | del6 | If set, adds a 'deleted scene' link next to the sixth episode. | Boolean | optional |
| Episode 7 | 7 | The title of the seventh episode to cite. | Page name | optional |
| Deleted scene for Episode 7 | del7 | If set, adds a 'deleted scene' link next to the seventh episode. | Boolean | optional |
| Episode 8 | 8 | The title of the eighth episode to cite. | Page name | optional |
| Deleted scene for Episode 8 | del8 | If set, adds a 'deleted scene' link next to the eighth episode. | Boolean | optional |
| Prose format | prose | If set, formats the output for inclusion directly in prose, without parentheses. E.g., "Re-imagined Series's '33'" instead of "(TRS: "33")". | Boolean | optional |
| No category | nocat | If set, suppresses the addition of categories for the cited episodes. | Boolean | optional |