Jump to content

Template:Episode list: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎Lede Section: null if statement to fix order of references in tables, per discussion on talk page
→‎Lede Section: change ShortSummary so if field is used and left blank it doesn't produce an empty row in the table
Line 3: Line 3:
Please do not "fork" this template by making copies with changes for a particular show instead discuss on the talk page how this template can be used and if necessary modified to do what you need.
Please do not "fork" this template by making copies with changes for a particular show instead discuss on the talk page how this template can be used and if necessary modified to do what you need.


--><includeonly>{{#if:{{{TopColor|}}}{{{EpisodeNumber|}}}{{{EpisodeNumber2|}}}{{{Title|}}}{{{RTitle|}}}{{{AltTitle|}}}{{{RAltTitle|}}}{{{Aux1|}}}{{{DirectedBy|}}}{{{WrittenBy|}}}{{{Aux2|}}}{{{Aux3|}}}{{{OriginalAirDate|}}}{{{AltDate|}}}{{{ProdCode|}}}{{{Aux4|}}}{{{ShortSummary|}}}{{{LineColor|}}}||}}<tr class="vevent" style="text-align: center; {{#if:{{{TopColor|}}}|background:#{{{TopColor}}}|{{#ifeq:{{{ShortSummary|ʁ}}}|ʁ| |background:#F2F2F2}} }}">{{
--><includeonly>{{#if:{{{TopColor|}}}{{{EpisodeNumber|}}}{{{EpisodeNumber2|}}}{{{Title|}}}{{{RTitle|}}}{{{AltTitle|}}}{{{RAltTitle|}}}{{{Aux1|}}}{{{DirectedBy|}}}{{{WrittenBy|}}}{{{Aux2|}}}{{{Aux3|}}}{{{OriginalAirDate|}}}{{{AltDate|}}}{{{ProdCode|}}}{{{Aux4|}}}{{{ShortSummary|}}}{{{LineColor|}}}||}}<tr class="vevent" style="text-align: center; {{#if:{{{TopColor|}}}|background:#{{{TopColor}}}|{{#if:{{{ShortSummary|}}}|background:#F2F2F2}} }}">{{
#ifeq:{{{EpisodeNumber|ʁ}}}|ʁ| |<th scope="row" id="ep{{{EpisodeNumber}}}" style="text-align: center; {{#if:{{{TopColor|}}}|background:#{{{TopColor}}}|{{#ifeq:{{{ShortSummary|ʁ}}}|ʁ| |background:#F2F2F2}} }}">{{{EpisodeNumber}}}</th>}}{{
#ifeq:{{{EpisodeNumber|ʁ}}}|ʁ| |<th scope="row" id="ep{{{EpisodeNumber}}}" style="text-align: center; {{#if:{{{TopColor|}}}|background:#{{{TopColor}}}|{{#if:{{{ShortSummary|}}}|background:#F2F2F2}} }}">{{{EpisodeNumber}}}</th>}}{{
#ifeq:{{{EpisodeNumber2|ʁ}}}|ʁ| |<td>{{{EpisodeNumber2}}}</td>}}
#ifeq:{{{EpisodeNumber2|ʁ}}}|ʁ| |<td>{{{EpisodeNumber2}}}</td>}}
<td class="summary" >{{#if:{{{Title|}}}|"{{{Title}}}"}}{{{RTitle|}}} {{#if:{{{AltTitle|}}}|<br />"{{{AltTitle}}}"}}{{{RAltTitle|}}}</td>{{
<td class="summary" >{{#if:{{{Title|}}}|"{{{Title}}}"}}{{{RTitle|}}} {{#if:{{{AltTitle|}}}|<br />"{{{AltTitle}}}"}}{{{RAltTitle|}}}</td>{{
Line 15: Line 15:
#ifeq:{{{AltDate|ʁ}}}|ʁ| |<td>{{{AltDate}}}</td>}}{{
#ifeq:{{{AltDate|ʁ}}}|ʁ| |<td>{{{AltDate}}}</td>}}{{
#ifeq:{{{ProdCode|ʁ}}}|ʁ| |<td id="pc{{{ProdCode}}}">{{{ProdCode}}}</td>}}{{
#ifeq:{{{ProdCode|ʁ}}}|ʁ| |<td id="pc{{{ProdCode}}}">{{{ProdCode}}}</td>}}{{
#ifeq:{{{Aux4|ʁ}}}|ʁ| |<td>{{{Aux4}}}</td>}}</tr>{{#ifeq:{{{ShortSummary|ʁ}}}|ʁ| |<tr><td class="description" style="border-bottom:3px solid #{{#if:{{{LineColor|}}}|{{{LineColor}}}|CCCCFF}}" colspan="{{#expr:{{#ifeq:{{{Title|ʁ}}}|ʁ|{{#ifeq:{{{AltTitle|ʁ}}}|ʁ|{{#ifeq:{{{RTitle|ʁ}}}|ʁ|0|1}}|1}}|1}}+{{#ifeq:{{{DirectedBy|ʁ}}}|ʁ|0|1}}+{{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&nbsp;</td></tr>}}{{#ifeq:{{{ShortSummary|ʁ}}}|ʁ||{{#if:{{{LineColor|}}}||{{ns0|[[Category:Episode list using the default LineColor]]}}}}}}{{#if:{{{EpisodeNumber|}}}||[[Category:Episode lists without episode numbers]]}}</includeonly><noinclude>
{{{ShortSummary|}}}&nbsp;</td></tr>}}{{#if:{{{ShortSummary|}}}|{{#if:{{{LineColor|}}}||{{ns0|[[Category:Episode list using the default LineColor]]}}}}}}{{#if:{{{EpisodeNumber|}}}||[[Category:Episode lists without episode numbers]]}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 03:54, 23 May 2012