Template talk:Episode list/Stargate
From Wikipedia, the free encyclopedia
[edit] How this template works
This template works in two modes (both modes are based on {{Episode list}}). If this template is trancluded in List of Stargate SG-1 episodes, the plot summary works differently then everywhere else (e.g. the season articles). The main difference is that it this template always transcludes a ShortSummary in List of Stargate SG-1 episodes, but may either transclude a ShortSummary or a LongSummary everywhere else. If the used template "everywhere else" does not have the LongSummary, the ShortSummary will be transcluded.
{{#ifeq:{{PAGENAME}}|List of Stargate SG-1 episodes|{{Episode list |EpisodeNumber={{{EpisodeNumber}}} |EpisodeNumber2={{{EpisodeNumber2}}} |Title={{{Title}}} |Aux1={{Nowrap| {{{Aux1}}} }} |DirectedBy={{{DirectedBy}}} |WrittenBy={{{WrittenBy}}} |OriginalAirDate={{{OriginalAirDate}}} |ShortSummary={{{ShortSummary}}} |LineColor={{{LineColor}}} }}|{{Episode list |EpisodeNumber={{{EpisodeNumber}}} |EpisodeNumber2={{{EpisodeNumber2}}} |Title={{{Title}}} |Aux1={{Nowrap| {{{Aux1}}} }} |DirectedBy={{{DirectedBy}}} |WrittenBy={{{WrittenBy}}} |OriginalAirDate={{{OriginalAirDate}}} |ShortSummary={{ #ifeq:{{{LongSummary|ʁ}}}|ʁ|{{{ShortSummary}}}|{{{LongSummary}}} }} |LineColor={{{LineColor}}} }}}}