Template:Ep ref

From Itora Wiki


Template documentation (for the above template, sometimes hidden or invisible)[view] [edit] [history] [refresh]


  • This template will make it easier to add references to episodes, especially when including timecodes.

Copy/Paste Code

{{ep ref|group=|name=|intro=|ep=|part=|vod=|START|END|cite=|more=}}


{{ep ref|<group="REFGROUP">|<name="REFNAME">|<intro=INTRO>|<ep=NAME OR NUMBER>|<part=PART>|<vod=URL>|<START>|<END>|<cite=TRUE>|<more=MORE>|<nsfw=TRUE>}}


  • {{{notag}}} will deactivate the reference tag, meaning that the output will appear wherever it is typed rather than in a footnote. Any value (including "1" or "true", or even "0" or "false") will deactivate the reference tag. {{{group}}} and {{{name}}} will be ignored, but all other parameters will still function.
    • {{{notag}}} is used, for example, when adding a timestamped {{{source}}} to the {{art caption}} for a screenshot.
    • The {{{notag}}} functionality has been removed to reduce the preprocessor node count. Please use {{ep time}} instead.
  • {{{group}}} and {{{name}}} (optional) both function as their respective attributes in the <ref> tag.
    • Use quotation marks around the REFGROUP or REFNAME in the template, just like you would for a normal <ref> tag.
    • To invoke a named reference, just use the name (and its corresponding group, if applicable):
      {{ep ref|name="REFNAME"}}
    • If you do not supply {{{name}}}, then a reference name will be automatically generated in the format
      name="ep{{{ep}}} part{{{part}}} start{{{start}}} end{{{end}}} intro{{{intro}}} more{{{more}}}"
      • All formats for {{{ep}}} will be handled the same, so ep=1x46 is the same as ep=C1E46, ep=Cindergrove Revisited, and ep=[[Cindergrove Revisited]].
      • Thus, you can simply copy/paste the same reference to other places where you want the citation to appear, and the template will automatically combine them into the same reference in the references section of the article.
    • Grouped references are considered completely separate from other groups of references. Therefore, if you are invoking a named reference that belongs to a group, then you must also include that same group in the invocation. In other words, the following two references are completely separate from each other, even though they have the same name:
      {{ep ref|name="keyleth kashaw kiss"}}
      {{ep ref|group="fan art"|name="keyleth kashaw kiss"}}
  • {{{intro}}} is any text you want to include before the episode reference. Wikimarkup is allowed.
  • {{{ep}}} is the episode name, number, or [campaign]x[episode] code. For example, "Friends and Fiends" (1x01) is "ep=1x01". All episode formats are accepted, including ep=1x01, ep=C1E01, ep=Arrival at Kraghammer, and ep=[[Arrival at Kraghammer]].
  • {{{part}}} indicates which part of an episode you are referencing when Geek & Sundry posts multiple parts of an episode on YouTube. Simply use a number, such as 1 or 2 or 3.
  • START and END are timecodes for the section of the episode being referenced. They are unnamed parameters, meaning you don't type them after a parameter name and equals sign.
    • START and END timecodes take the format of "1:23:45" (hours:minutes:seconds). "45" is interpreted as 45 seconds. "3:45" is interpreted as 3 minutes and 45 seconds.
    • START may be used without END, and the reference text will change accordingly.
    • END cannot be used without START, because the template will interpret the END timecode as START.
  • {{{vod}}} is the direct YouTube URL for an episode, and it is optional.
    • This template will automatically use the YouTube URL of any episode in our database ({{Ep/Switcher}} and {{Ep/YTURLSwitcher}}, which work together).
    • This template will use the user-supplied URL only as a last resort if a matching URL for the episode name is not found.
    • Long or short YouTube URLs will work, but they should link directly to the episode (not a playlist, timecode, or channel).
  • {{{cite}}} causes the {{cite}} tag to appear immediately after the period for the main sentence. Entering any value (such as "1" or "true", or even "0" or "false") will cause the citation tag to be applied.
  • {{{more}}} is any additional text that should be appended to the citation.

Sample Output

  • {{ep ref|group="sample"|name="test citation"|intro=Here's some introductory text.|ep=1x41|part=2|vod=https://www.youtube.com/watch?v=QqU5pqKoH2c|1:23:45|9:87:65|cite=true|more=Here's some additional text.}}

Ref Group "sample":

  1. Here's some introductory text.  See "A Taste of Defeat" (1x41), part 2, from 1:23:45 through 9:87:65.[citation needed]  Here's some additional text.
The above text is transcluded from Template:Ep ref/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to Template:Ep ref/doc. (View all subpages of this page.)
  1. SeeUndefined Episode.