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

Template:TRS: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
test w/nowiki
Joe Beaudoin Jr. (talk | contribs)
mNo edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>([[Battlestar Galactica (TRS)|TRS]]: {{#if:{{{1|}}}|"[[{{{1}}}{{!}}{{#explode:{{{1}}}|(|0}}]]"}}{{#if:{{{2|}}}|, "[[{{{2}}}{{!}}{{#explode:{{{2}}}|<nowiki> (</nowiki>|0}}]]"}}{{#if:{{{3|}}}|, "[[{{{3}}}{{!}}{{#explode:{{{3}}}|(|0}}]]"}}{{#if:{{{4|}}}|, "[[{{{4}}}{{!}}{{#explode:{{{4}}}|(|0}}]]"}}{{#if:{{{5|}}}|, "[[{{{5}}}{{!}}{{#explode:{{{5}}}|(|0}}]]"}}{{#if:{{{6|}}}|, "[[{{{6}}}{{!}}{{#explode:{{{6}}}|(|0}}]]"}}{{#if:{{{7|}}}|, "[[{{{7}}}{{!}}{{#explode:{{{8}}}|(|0}}]]"}}{{#if:{{{8|}}}|, "[[{{{8}}}{{!}}{{#explode:{{{8}}}|(|0}}]]"}})</includeonly><noinclude>
<includeonly>{{#if:{{{prose|}}}|[[Re-imagined Series]]{{'}}|<sup>([[Re-imagined Series{{!}}TRS]]:}}&nbsp;{{#fornumargs: number|value|"[[{{diswitch|{{#var: value }}}}{{!}}{{0|{{#var: value }}}}]]"{{#if:{{{del{{#var: number}}|}}}|&nbsp;[[{{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}}|}}}|,&nbsp;|&nbsp;and&nbsp;}}|{{void}}}}}}{{#if:{{{prose|}}}|{{void}}|)</sup>}}{{#if:{{{nocat|}}}|{{void}}|{{#fornumargs: number|value|[[Category:{{diswitch|series=TRS|{{#var: value }}}}]]}}}}</includeonly><noinclude>
= Documentation =
= Documentation =


Line 26: Line 26:
Multiple episodes:
Multiple episodes:


<code><nowiki>''Pegasus'' survives the attack on the Scorpion Fleet Shipyards {{TRS|Razor|Pegasus (episode)}}.</nowiki></code>
<code><nowiki>''Pegasus'' survives the attack on the Scorpion Fleet Shipyards {{TRS|Razor|Pegasus}}.</nowiki></code>


<code>'''Prints:'''</code> ''Pegasus'' survives the attack on the Scorpion Fleet Shipyards {{TRS|Razor|Pegasus (episode)}}.
<code>'''Prints:'''</code> ''Pegasus'' survives the attack on the Scorpion Fleet Shipyards {{TRS|Razor|Pegasus}}.


[[Category: Battlestar Wiki Templates|{{PAGENAME}}]]</noinclude>
==Prose Form==
 
For citations where the Galactipedian wishes to include the series and episode title into the prose, the <code>|prose=y</code> option exists.
 
=== Examples ===
 
Singular episode:
 
<code><nowiki>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.</nowiki></code>
 
<code>'''Prints:'''</code> 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.
 
[[Category: Battlestar Wiki Templates|{{PAGENAME}}]]<templatedata>
{
"description": "Creates an inline citation for one or more episodes from the Re-imagined Series.",
"format": "inline",
"params": {
"1": {
"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": {
"label": "Episode 2",
"description": "The title of the second episode to cite.",
"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": {
"label": "Episode 3",
"description": "The title of the third episode to cite.",
"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": {
"label": "Episode 4",
"description": "The title of the fourth episode to cite.",
"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": {
"label": "Episode 5",
"description": "The title of the fifth episode to cite.",
"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": {
"label": "Episode 6",
"description": "The title of the sixth episode to cite.",
"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": {
"label": "Episode 7",
"description": "The title of the seventh episode to cite.",
"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": {
"label": "Episode 8",
"description": "The title of the eighth episode to cite.",
"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"
},
"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"
},
"nocat": {
"label": "No category",
"description": "If set, suppresses the addition of categories for the cited episodes.",
"type": "boolean"
}
},
"paramOrder": [
"1",
"del1",
"2",
"del2",
"3",
"del3",
"4",
"del4",
"5",
"del5",
"6",
"del6",
"7",
"del7",
"8",
"del8",
"prose",
"nocat"
]
}
</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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Episode 11

The title of the first episode to cite. This should be the article name of the episode.

Page namerequired
Deleted scene for Episode 1del1

If set, adds a 'deleted scene' link next to the first episode.

Booleanoptional
Episode 22

The title of the second episode to cite.

Page nameoptional
Deleted scene for Episode 2del2

If set, adds a 'deleted scene' link next to the second episode.

Booleanoptional
Episode 33

The title of the third episode to cite.

Page nameoptional
Deleted scene for Episode 3del3

If set, adds a 'deleted scene' link next to the third episode.

Booleanoptional
Episode 44

The title of the fourth episode to cite.

Page nameoptional
Deleted scene for Episode 4del4

If set, adds a 'deleted scene' link next to the fourth episode.

Booleanoptional
Episode 55

The title of the fifth episode to cite.

Page nameoptional
Deleted scene for Episode 5del5

If set, adds a 'deleted scene' link next to the fifth episode.

Booleanoptional
Episode 66

The title of the sixth episode to cite.

Page nameoptional
Deleted scene for Episode 6del6

If set, adds a 'deleted scene' link next to the sixth episode.

Booleanoptional
Episode 77

The title of the seventh episode to cite.

Page nameoptional
Deleted scene for Episode 7del7

If set, adds a 'deleted scene' link next to the seventh episode.

Booleanoptional
Episode 88

The title of the eighth episode to cite.

Page nameoptional
Deleted scene for Episode 8del8

If set, adds a 'deleted scene' link next to the eighth episode.

Booleanoptional
Prose formatprose

If set, formats the output for inclusion directly in prose, without parentheses. E.g., "Re-imagined Series's '33'" instead of "(TRS: "33")".

Booleanoptional
No categorynocat

If set, suppresses the addition of categories for the cited episodes.

Booleanoptional