Difference between revisions of "Template:Crossover"

From LGPedia
Jump to: navigation, search
(Creating new crossover template)
 
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{#ifexpr: {{{cross-number}}} | true|true}} | true | {{#ifeq: {{{secondary}}} | KM | {{EpHeader|{{{cross-number}}}|KM=yes|{{{name}}}}} | {{EpHeader|{{{cross-number}}}|{{{name}}}}} }}|}} <includeonly>{{ #ifeq: {{{secondary}}} | KM | [[Category:KateModern videos]] [[Category:KateModern videos by length|{{{length}}}]] {{#if: {{{date|}}}|[[Category:KateModern videos by date|&#32;{{{date}}}]]|}} {{#if: {{{length|}}}|[[Category:KateModern videos by length|{{{length}}}]]|}}| [[Category:Lonelygirl15 videos]] [[Category:Lonelygirl15 videos by length|{{{length}}}]] {{#if: {{{date|}}}|[[Category:Lonelygirl15 videos by date|&#32;{{{date}}}]]}} {{#if: {{{length|}}}|[[Category:Lonelygirl15 videos by length|{{{length}}}]]|}}|}}</includeonly><noinclude>
+
<includeonly><br>{{#switch: {{lc:{{{series}}}}}
== Usage ==
+
|lg15 = {{EpHeader|{{{epnum}}}|{{{epname|{{PAGENAME}}}}}|lg15}}[[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}}[[Category:KateModern videos]]{{#if: {{{eplength|}}}|[[Category:KateModern videos by length|{{{eplength}}}]]}}{{#if: {{{epdate|}}}|[[Category:KateModern videos by date|&#32;{{{epdate}}}]]}}
<pre>
+
|op = {{EpHeader|{{{epnum}}}|{{{epname|{{PAGENAME}}}}}|op}}[[Category:OpAphid videos]]{{#if: {{{eplength|}}}|[[Category:OpAphid videos by length|{{{eplength}}}]]}}{{#if: {{{epdate|}}}|[[Category:OpAphid videos by date|&#32;{{{epdate}}}]]}}
{{Crossover
+
| '''No series selected.'''
|secondary   =  
+
}}[[Category:Crossover videos]]{{#if: {{{blogger2|}}}|{{#ifeq: {{{blogger2}}} | OpAphid | [[Category:OpAphid videos]] | [[Category:{{{blogger2}}}'s blogs|{{#ifeq: {{#ifexpr: {{{epnum}}} |true|true}} | true |&#32; {{ #ifexpr: {{{epnum}}} < 100 |0|}}{{ #ifexpr: {{{epnum}}} < 10 |0|}}{{{epnum}}}|* {{{epnum}}}}}]]}}|}}</includeonly><noinclude>
|cross-number =  
+
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==
</pre>
+
<pre>{{Crossover
Where crossover is the secondary series and cross-number is the second series's episode number.
+
|series  =
[[Category:Video templates]]</noinclude>
+
|blogger2 =
 +
|epnum   =
 +
|epname  =
 +
|eplength =
 +
|epdate  =
 +
}}</pre>
 +
where
 +
*'''series''' is the other series's abbreviation ("lg15" or "km" so far)
 +
*'''blogger2''' is the other series's blogger, if there are two (can be left blank)
 +
*'''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.[[Category:Video templates]]</noinclude>

Latest revision as of 06:13, 24 July 2016

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
|series   =
|blogger2 =
|epnum    =
|epname   =
|eplength =
|epdate   =
}}

where

  • series is the other series's abbreviation ("lg15" or "km" so far)
  • blogger2 is the other series's blogger, if there are two (can be left blank)
  • 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.