Template:Sgcite

From Wikipedia, the free encyclopedia

"[[{{{1}}} (Stargate SG-1)|{{{1}}}]]"


This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

This template automatically generates episode references for Stargate articles that are otherwise tedious to write out. It can also be used with <ref> tags to generate inline references. This works and is useful particularly for Stargate episodes due to the uniformity of the series and episode naming: all series names begin "Stargate [Series Title]", and all episode articles are at "[Episode Title] (Stargate [Series Title])".

[edit] Parameters

First parameter (required)  
Episode title.
Second parameter (optional) 
Which Stargate series the episode is from, either SG-1, Atlantis or Infinity. Defaults to SG-1 if omitted.
show (optional) 
Use show=option to alter the output display. Valid options are
  • none - Displays "Episode Title". This is the default if the "show" option is omitted.
  • all - Displays (Series Title: Episode Title).
  • show - Displays Show: Episode Title.
  • brackets - Displays ("Episode Title").
  • ref - Displays "Episode Title" (Series Title) for use in <ref> tags.
  • full - Displays Series Title episode Episode Title.

[edit] Examples

Below are some examples of how to use the {{sgcite}} template in articles.

Code Output
{{sgcite|200}} "200"
{{sgcite|Irresistible|Atlantis}} "Irresistible"
{{sgcite|Unending|SG-1|show=all}} (SG-1: Unending)
{{sgcite|McKay and Mrs. Miller|Atlantis|show=show}} Atlantis: McKay and Mrs. Miller
{{sgcite|Fair Game|SG-1|show=brackets}} ("Fair Game")
{{sgcite|Grace|SG-1|show=ref}} "Grace" (Stargate SG-1)
{{sgcite|Sunday|Atlantis|show=full}} Stargate Atlantis episode "Sunday"