More actions
tweak |
it'll work the other way |
||
Line 2: | Line 2: | ||
|tos | |tos | ||
|TOS={{#switch:{{{1|}}} | |TOS={{#switch:{{{1|}}} | ||
|1.01|101={{#if:{{{link}}}|[[Saga of a Star World]]|Saga of a Star World}} | |1.01|101={{#if:{{{link|}}}|[[Saga of a Star World]]|Saga of a Star World}} | ||
|1.02|102={{#if:{{{link|}}}|[[Lost Planet of the Gods, Part I]]|Lost Planet of the Gods, Part I}} | |1.02|102={{#if:{{{link|}}}|[[Lost Planet of the Gods, Part I]]|Lost Planet of the Gods, Part I}} | ||
|1.03|103={{#if:{{{link|}}}|[[Lost Planet of the Gods, Part II]]|Lost Planet of the Gods, Part II}} | |1.03|103={{#if:{{{link|}}}|[[Lost Planet of the Gods, Part II]]|Lost Planet of the Gods, Part II}} | ||
Line 148: | Line 148: | ||
|bac|BAC|b&c|bloodandchrome={{#if:{{{link|}}}|[[Blood and Chrome]]|Blood and Chrome}} | |bac|BAC|b&c|bloodandchrome={{#if:{{{link|}}}|[[Blood and Chrome]]|Blood and Chrome}} | ||
}}{{{after|}}}</includeonly> | }}{{{after|}}}</includeonly> | ||
<noinclude>This template provides a link to episodes. | <noinclude>This template provides either a name and link to episodes, or a name, when a number and name are sent through it. By default, it will only print the name. | ||
Example: <pre><nowiki>{{episode|101|tos}}</nowiki></pre> prints {{episode|101|tos}} | Example: <pre><nowiki>{{episode|101|tos}}</nowiki></pre> prints {{episode|101|tos}} | ||
Line 154: | Line 154: | ||
== Disabling Link == | == Disabling Link == | ||
To | To enable the link feature that's not active in the template by default, use <pre><nowiki>|link=no</nowiki></pre>, e.g.: | ||
Example: <pre><nowiki>{{episode|101|tos|link= | Example: <pre><nowiki>{{episode|101|tos|link=yes}}</nowiki></pre> prints {{episode|101|tos|link=yes}} | ||
[[Category:Battlestar Wiki Templates|Episode]] | [[Category:Battlestar Wiki Templates|Episode]] | ||
</noinclude> | </noinclude> |
Revision as of 01:44, 23 January 2021
This template provides either a name and link to episodes, or a name, when a number and name are sent through it. By default, it will only print the name.
Example:
{{episode|101|tos}}
prints Saga of a Star World
Disabling Link
To enable the link feature that's not active in the template by default, use
|link=no
, e.g.: Example:
{{episode|101|tos|link=yes}}
prints Saga of a Star World