Template:Episode: Difference between revisions

Fixing asteriskseses?
(Making STARDATE and NUMBER params optional. Makes the relevant line disappear entirely if neither is specified, and displays them separately appropriately.)
(Fixing asteriskseses?)
 
Line 2: Line 2:
|{{#if:{{{1|}}}|{{FNSTopStoriesCrop-width|{{{IMAGE|}}}|{{{NAME|}}} ({{{SHIP|}}})}}|{{FNSTopStoriesCrop|{{#if:{{{IMAGE|}}}|{{{IMAGE|}}}|UFOPgrayseal-square.png}}|{{{NAME|}}} ({{{SHIP|}}})}}}}
|{{#if:{{{1|}}}|{{FNSTopStoriesCrop-width|{{{IMAGE|}}}|{{{NAME|}}} ({{{SHIP|}}})}}|{{FNSTopStoriesCrop|{{#if:{{{IMAGE|}}}|{{{IMAGE|}}}|UFOPgrayseal-square.png}}|{{{NAME|}}} ({{{SHIP|}}})}}}}
|valign=top|<font size=4>'''[[{{{NAME|}}} ({{{SHIP|}}})|{{{NAME|}}}]]'''</font>
|valign=top|<font size=4>'''[[{{{NAME|}}} ({{{SHIP|}}})|{{{NAME|}}}]]'''</font>
{{#if:{{{STARDATE|}}}{{{NUMBER|}}}|*'''''{{#if:{{{NUMBER|}}}|{{{NUMBER|}}}:&nbsp;|}}{{#if:{{{STARDATE|}}}|Stardate {{{STARDATE|}}}'''''|}}|}}
{{#if:{{{STARDATE|}}}{{{NUMBER|}}}|*'''''{{#if:{{{NUMBER|}}}|{{{NUMBER|}}}:&nbsp;|}}{{#if:{{{STARDATE|}}}|Stardate {{{STARDATE|a}}}'''''|}}
**{{{BLURB|}}}
*|}}*{{{BLURB|}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
This template will create TV Guide-like listings for your ship's episodes.
This template will create TV Guide-like listings for your ship's episodes.