Difference between revisions of "Template:Crossover"

From LGPedia
Jump to: navigation, search
m
(New base to test from.)
Line 1: Line 1:
<includeonly><br>{{#ifeq: {{#ifexpr: {{{2}}} | true|true}} | true | {{#ifeq: {{{1}}} | KM | {{EpHeader|{{{2}}}|KM=yes|{{{3}}}}} | {{EpHeader|{{{2}}}|{{{3}}}}} }}|}} <includeonly>{{ #ifeq: {{{1}}} | KM | [[Category:KateModern videos]] [[Category:KateModern videos by length|{{{length}}}]] {{#if: {{{3|}}}|[[Category:KateModern videos by date|&#32;{{{3}}}]]|}} {{#if: {{{4|}}}|[[Category:KateModern videos by length|{{{4}}}]]|}}| [[Category:Lonelygirl15 videos]] [[Category:Lonelygirl15 videos by length|{{{4}}}]] {{#if: {{{3|}}}|[[Category:Lonelygirl15 videos by date|&#32;{{{3}}}]]}} {{#if: {{{length|}}}|[[Category:Lonelygirl15 videos by length|{{{4}}}]]|}}|}}</includeonly><noinclude>
+
<includeonly>{{#switch: {{lc:{{{series}}}}}
== Usage ==
+
|lg15 = {{EpHeader|{{{epnum}}}|{{{epname|{{PAGENAME}}}}}}}[[Category:Lonelygirl15 videos]]{{#if: {{{eplength|}}}|[[Category:Lonelygirl15 videos by length|{{{eplength|}}}]]}}{{#if: {{{epdate|}}}|[[Category:Lonelygirl15 videos by date|&#32;{{{epdate}}}]]}}
This template is included into the Blog template for use with videos that are considered part of both [[lonelygirl15]] and [[KateModern]]. It is used in the following manner:
+
|km = {{EpHeader|{{{epnum}}}|{{{epname|{{PAGENAME}}}}}|KM=yes}}[[Category:KateModern videos]]{{#if: {{{eplength|}}}|[[Category:KateModern videos by length|{{{eplength}}}]]}}{{#if: {{{epdate|}}}|[[Category:KateModern videos by date|&#32;{{{epdate}}}]]}}
<pre>
+
| '''No series selected.'''
{{Crossover|secondary|cross-number|name|date|length}}
+
}}</includeonly><noinclude>
</pre>
+
This template includes a prepared set of categories and the episode header for a select series, in case they need to be included on an episode page that was attributed to a different series (e.g. in case of a crossover).
Where crossover is the secondary series and cross-number is the second series's episode number.
+
==Usage==
[[Category:Video templates]]</noinclude>
+
<pre>{{Crossover
 +
|epnum =
 +
|epname =
 +
|eplength =
 +
|epdate =
 +
}}</pre>
 +
where
 +
*'''epnum''' is the episode number in the other series's continuity
 +
*'''epname''' is the episode name (defaults to page name)
 +
*'''eplength''' is the episode length
 +
*'''epdate''' is the date the episode was posted, in YYYYMMDD format.</noinclude>

Revision as of 14:35, 21 April 2008

This template includes a prepared set of categories and the episode header for a select series, in case they need to be included on an episode page that was attributed to a different series (e.g. in case of a crossover).

Usage

{{Crossover
|epnum =
|epname =
|eplength =
|epdate =
}}

where

  • epnum is the episode number in the other series's continuity
  • epname is the episode name (defaults to page name)
  • eplength is the episode length
  • epdate is the date the episode was posted, in YYYYMMDD format.