Notice: Undefined variable: finalOuput in /usr/www/users/bsgwiki/common/w/extensions/EpisodeLinking/EpisodeLinking.php on line 143

Notice: Undefined variable: finalOuput in /usr/www/users/bsgwiki/common/w/extensions/EpisodeLinking/EpisodeLinking.php on line 143
Battlestar Wiki:Episode parser - Battlestar Wiki
FrakMedia!
Wiki Frakr
Battlestar Pegasus
Battlestar Forum
Battlestar Wiki Blog
Tuesday, February 9, 2010 (12:55 pm CST)
Advertisement
  • Battlestar Wiki Project
  • Discussion
  • View source
  • History
  • Purge

Battlestar Wiki:Episode parser

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide

Jump to: navigation, search
This page is one of Battlestar Wiki's many projects.
This page serves to coordinate discussion on a particular aspect of this Wiki. The formal recommendations of a project may be treated as policies.


The episode parser allows quick rendering of links to episodes in any specified format. The parser can be placed inside templates or can be used alone. The production number(s) is how we generate the links. If a invalid number is inputted, it will just go onto the next one. As of right now, it only works on "English" title names.

Contents

Syntax

Using the parser: "#episode"

Full Syntax: {{#episode:format|production number(s)|series|link|before|after}}

Required

  • format: Must include %episode% at least once.
  • production numbers: The production numbers of the episodes. You can get the list from here.

Optional

  • series: The series. eg. TOS, 1980, RDM, Caprica.
    • RDM is default.
  • link
    • true: Will always make it a link (Default)
    • or false: If you are trying to create a Category inclusion ({{#episode:Category: ... }}) or Internalization inclusion ({{#episode:en: ... }}) set this to false. Otherwise it will make a link to this wiki.
  • before: What to render before the link. (Default: empty)
  • after: What to render after the link. (Default: <br />)
    • Note: Will not happen after the last item.
    • Note: To remove the default code, you would have to keep the field blank.

Examples

Example Output
{{#episode:props:%episode%|101,102,110}} 33
Water
The Hand of God
{{#episode:props:%episode%|101,102,110|TOS}} Saga of a Star World
Lost Planet of the Gods, Part I
The Living Legend, Part I


  • Battlestar Wiki Project
  • Discussion
  • View source
  • History
  • Purge