Template:InfoBox: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (Fix again)
m (single M)
 
(139 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| style="float: right;border: 1px solid darkgray;padding: 5;background:#F8F9F9;margin: 1em;width:240px;" cellpadding="1" cellspacing="0"
{| style="float: right;border: 1px solid darkgray;padding: 5;background:#F8F9F9;margin: 1em;width:240px;" cellpadding="1" cellspacing="0"
! colspan ="2" style="background:LightSteelBlue;font-size:10pt" | {{#if: {{{episodeNum|}}} |SGU Episode {{{episodeNum}}}| {{{episodeTitle}}} }}
! style="background:LightSteelBlue;font-size:10pt" | {{#if: {{{episodeNumDisplay|}}} |{{#if: {{{episodeNum|}}} |SGU Episode {{{episodeNumDisplay}}}| {{{episodeTitle}}} }}|{{#if: {{{episodeNum|}}} |SGU Episode {{{episodeNum}}}| {{{episodeTitle}}} }} }}
|-
|-
| colspan ="2" style="text-align:center;font-size:9pt" | {{{episodeDate}}}
| style="text-align:center;font-size:9pt" | {{#if:{{{episodeMonth|}}}|{{#switch: {{{episodeMonth}}}
| 1 = January
| 2 = February
| 3 = March
| 4 = April
| 5 = May
| 6 = June
| 7 = July
| 8 = August
| 9 = September
| 01 = January
| 02 = February
| 03 = March
| 04 = April
| 05 = May
| 06 = June
| 07 = July
| 08 = August
| 09 = September
| 10 = October
| 11 = November
| 12 = December
|#default = M
}} {{#switch: {{{episodeDateNumber}}}
| 1 = 1<sup>st</sup>
| 21 = 21<sup>st</sup>
| 31 = 31<sup>st</sup>
| 2 = 2<sup>nd</sup>
| 22 = 22<sup>nd</sup>
| 3 = 3<sup>rd</sup>
| 23 = 23<sup>rd</sup>
| D = D<sup>th</sup>
| #default = {{{episodeDateNumber}}}<sup>th</sup>}}&nbsp;{{{episodeYear}}}|{{{episodeDate}}} }}
{{#if: {{{verified|}}} | {{Tick}} [[Help:Transcript Verified|Transcript Verified]] {{Numerical titles
{{#if: {{{verified|}}} | {{Tick}} [[Help:Transcript Verified|Transcript Verified]] {{Numerical titles
|page      = {{PAGENAME}}
|page      = {{PAGENAME}}
Line 8: Line 40:
|}} }}
|}} }}
|-
|-
| colspan ="2" | [[{{{episodeIcon}}}|link=|center|200px]]
|{{#if:{{{hiddenIcon|}}}|[[File:Hidden icon.png|center|150px|link=https://www.sgutranscripts.org/wiki/{{{hiddenIcon}}}]]|{{#if:{{{episodeIcon|}}}|{{#switch: {{{episodeIcon}}}|File:SAMPLE_icon.jpg=[[File:SAMPLE_icon.jpg|center|200px]]{{Numerical titles
|page      = {{PAGENAME}}
|category  = Needs icon
|}}|#default=[[{{{episodeIcon}}}|center|200px]]}}|[[File:SAMPLE_icon.jpg|center|200px]]{{Numerical titles
|page      = {{PAGENAME}}
|category  = Needs icon
|}}}}}}<!-- IF there's something in hidden icon, then give the hidden icon image with a link to the episode icon file page; IF NOT, THEN if there's something in the episode icon slot, either display the sample icon if that's given (and add episode to "needs icon" category), or the episode icon file; IF NOT, THEN give the sample icon (and add episode to "needs icon" category) -->
 
|-
|-
|style="text-align:left;width:50%;padding-left: 1em" |{{#if: {{{previous|}}} | [[SGU Episode {{{previous}}}|SGU {{{previous}}}]] | [[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|12|0}}-1 }}|SGU {{#expr: {{#sub:{{PAGENAME}}|12|0}}-1 }}]] }}
| style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em" |{{#if: {{{caption|}}} | <p style="line-height:100%">''{{{caption}}}''</p> |''(brief caption for the episode icon)''}}
|style="text-align:right;width:50%;padding-right: 1em" | {{#if: {{{next|}}} | [[SGU Episode {{{next}}}|SGU {{{next}}}]] | [[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}|SGU {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}]] }}
|-
|-
| colspan ="2" {{InfoBox_Headers |header = Skeptical Rogues }}
|<p style="text-align:left;padding-left: 1em">{{#if: {{{previous|}}} | [[SGU Episode {{{previous}}}|SGU {{{previous}}}]] | [[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|12|0}}-1 }}|SGU {{#expr: {{#sub:{{PAGENAME}}|12|0}}-1 }}]]}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{#if: {{{next|}}} | [[SGU Episode {{{next}}}|SGU {{{next}}}]] | [[SGU Episode {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}|SGU {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}]]}}</p>
{{#if:{{{pastpredictions|}}}
|<tr><td><p style="text-align:left;padding-left: 1em"><small>[[SGU Episode {{{pastpredictions}}}|''SGU {{{pastpredictions}}}'']]&nbsp;''&larr; predictions''</small>{{#if:{{{futurepredictions|}}}|<small>''&rarr;''&nbsp;[[SGU Episode {{{futurepredictions}}}|''SGU {{{futurepredictions}}}'']]}}|{{#if:{{{futurepredictions|}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>''predictions &rarr;''&nbsp;[[SGU Episode {{{futurepredictions}}}|''SGU {{{futurepredictions}}}'']]}}</small></p></td></tr>
}}
{{#if:{{{previousyir|}}}
|<tr><td><p style="text-align:left;padding-left: 1em"><small>[[SGU Episode {{{previousyir}}}|''SGU {{{previousyir}}}'']]&nbsp;''&larr; YIR episodes''</small>{{#if:{{{nextyir|}}}|<small>''&rarr;''&nbsp;[[SGU Episode {{{nextyir}}}|''SGU {{{nextyir}}}'']]}}|{{#if:{{{nextyir|}}}|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>''YIR episodes &rarr;''&nbsp;[[SGU Episode {{{nextyir}}}|''SGU {{{nextyir}}}'']]}}</small></p></td></tr>
}}
|-
|-
| colspan ="2" style="font-size:9pt;text-indent:70px"| S: Steven Novella
|{{InfoBox_Headers |header = Skeptical Rogues }}
|-
|-
| colspan ="2" style="font-size:9pt;text-indent:70px"| {{#if: {{{rebecca|}}} | R: Rebecca Watson}}
| style="font-size:9pt;text-indent:70px"| S: Steven Novella
|-
{{#if:{{{bob|}}}
| colspan ="2" style="font-size:9pt;text-indent:70px"| {{#if: {{{bob|}}} | B: Bob Novella}}
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">B: Bob Novella</div></td></tr>}}{{#if:{{{rebecca|}}}
|-
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">R: Rebecca Watson</div></td></tr>}}{{#if:{{{Rebecca|}}}
| colspan ="2" style="font-size:9pt;text-indent:70px"| {{#if: {{{jay|}}} | J: Jay Novella}}
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">R: Rebecca Watson</div></td></tr>}}{{#if:{{{cara|}}}
|-
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">C: Cara Santa Maria</div></td></tr>}}{{#if:{{{jay|}}}
| colspan ="2" style="font-size:9pt;text-indent:70px"| {{#if: {{{evan|}}} | E: Evan Bernstein}}
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">J: Jay Novella</div></td></tr>}}{{#if:{{{evan|}}}
|-
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">E: Evan Bernstein</div></td></tr>}}{{#if:{{{Evan|}}}
| colspan ="2" style="font-size:9pt;text-indent:70px"| {{#if: {{{perry|}}} | P: Perry DeAngelis}}<!--
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">E: Evan Bernstein</div></td></tr>}}{{#if:{{{george|}}}
If there is one guest, start new row
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">G: {{w|George Hrab|span=musican & skeptic}}</div></td></tr>}}{{#if:{{{George|}}}
-->{{#if: {{{guest1|}}} |
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">G: {{w|George Hrab|span=musican & skeptic}}</div></td></tr>}}{{#if:{{{perry|}}}
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">P: Perry DeAngelis</div></td></tr>}}{{#if:{{{Perry|}}}
|<tr><td><div style= font-size:9pt;text-indent:70px ><p style="line-height:40%">P: Perry DeAngelis</div></td></tr>}}
{{#if: {{{guest1|}}} |
{{!}}-
{{!}}-
<!-- If there is also a second guest, print the "Guests" header row
{{#if: {{{guest2|}}} |
-->{{#if: {{{guest2|}}} |
{{!}} {{InfoBox_Headers |header = Guests}} |
{{!}} colspan ="2" {{InfoBox_Headers |header = Guests}} |<!--
{{!}} {{InfoBox_Headers |header = Guest}} }} }}
Otherwise, print "Guest" header row -->
{{!}} colspan ="2" {{InfoBox_Headers |header = Guest}} }} }}
<!-- Check again for first guest for printing all the guest names -->
{{#if: {{{guest1|}}} |
{{#if: {{{guest1|}}} |
{{!}}-
{{!}}-
{{!}} colspan ="2" style="font-size:9pt;text-indent:70px"{{!}} {{{guest1}}}
{{!}} style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em"{{!}} <p style="line-height: 100%">{{{guest1}}}
{{#if: {{{guest2|}}} |
{{#if: {{{guest2|}}} |
{{!}}-
{{!}}-
{{!}} colspan ="2" style="font-size:9pt;text-indent:70px"{{!}} {{{guest2}}} }}
{{!}} style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em"{{!}} <p style="line-height: 100%">{{{guest2}}} }}
{{#if: {{{guest3|}}} |
{{#if: {{{guest3|}}} |
{{!}}-
{{!}}-
{{!}} colspan ="2" style="font-size:9pt;text-indent:70px"{{!}} {{{guest3}}} }}
{{!}} style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em"{{!}} <p style="line-height: 100%">{{{guest3}}} }}
{{#if: {{{guest4|}}} |
{{#if: {{{guest4|}}} |
{{!}}-
{{!}}-
{{!}} colspan ="2" style="font-size:9pt;text-indent:70px"{{!}} {{{guest4}}} }} <!--
{{!}} style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em"{{!}} <p style="line-height: 100%">{{{guest4}}} }}
End checking for guest names
{{#if: {{{guest5|}}} |
-->}}
{{!}}-
{{!}} style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em"{{!}} <p style="line-height: 100%">{{{guest5}}} }} }}
|-
|-
| {{#if: {{{qowText|}}} | colspan ="2" {{InfoBox_Headers |header = Quote of the Week}} }}
{{#if: {{{multiplequotesweekyear|}}} |
{{!}} {{InfoBox_Headers |header = Quotes of the Week/Year}} |
{{#if: {{{multiplequotes|}}} |
{{!}} {{InfoBox_Headers |header = Quotes of the Week}} |
{{#if: {{{qowText|}}} |  
{{!}} {{InfoBox_Headers |header = Quote of the Week}} }} }} }}
|-
|-
| colspan ="2" style="font-style:italic;text-align:{{#if: {{{qowLeft|}}} | left | center }};font-size:9pt;padding-left: 0.4em;padding-right: 0.4em" | {{#if: {{{qowText|}}} | {{{qowText}}} }}
| style="font-style:italic;text-align:{{#if: {{{qowLeft|}}} | left | center }};font-size:9pt;padding-left: 0.4em;padding-right: 0.4em" | {{#if: {{{qowText|}}} | <p style="line-height:100%"><span style="color:#820000">{{{qowText}}}</span></p> }}
|-
|-
| colspan ="2" style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em" |{{#if: {{{qowAuthor|}}} | {{{qowAuthor}}}}}
| style="text-align:center;font-size:9pt;padding-left: 0.4em;padding-right: 0.4em" |{{#if: {{{qowAuthor|}}} | <p style="line-height:100%">{{{qowAuthor}}}}}
|-
|-
| colspan ="2" {{InfoBox_Headers |header = Links}}
| {{InfoBox_Headers |header = Links}}
|-
|-
| colspan ="2" style="text-align:center;font-size:9pt" | {{#if: {{{downloadLink|}}}  | [{{{downloadLink}}} Download Podcast]}}
| style="text-align:center;font-size:9pt" | {{#if:{{{downloadLinkYear|}}}|{{#if:{{{downloadLinkMonth|}}}|{{#if:{{{downloadLinkDate|}}}|[https://media.libsyn.com/media/skepticsguide/skepticast{{{downloadLinkYear}}}-{{{downloadLinkMonth}}}-{{{downloadLinkDate}}}.mp3 Download Podcast ]|}}|}}|{{#if: {{{downloadLink|}}}  | [{{{downloadLink}}} Download Podcast]|}} }}
|-
|-
| colspan ="2" style="text-align:center;font-size:9pt" | {{#if: {{{episodeNum|}}} |<!--
| style="text-align:center;font-size:9pt" | {{#if: {{{episodeNum|}}} | [http://www.theskepticsguide.org/podcast/sgu/{{{episodeNum}}} Show Notes] | [https://www.theskepticsguide.org/podcasts SGU Podcast archive] }}
    Episode number given, use the new link format
-->[http://www.theskepticsguide.org/podcast/sgu/{{{episodeNum}}} Show Notes]
}}
|-
|-
| colspan ="2" style="text-align:center;font-size:9pt" | {{#if: {{{forumLink|}}}  | [{{{forumLink}}} Forum Topic] }}
| style="text-align:center;font-size:9pt" | {{#if: {{{forumLinktopic|}}}  | [https://sguforums.org/index.php?topic={{{forumLinktopic}}} Forum Discussion] | {{#if: {{{forumLink|}}}  | [{{{forumLink}}} Forum Discussion] | [https://sguforums.org/index.php SGU Forum] }} }}
|}<includeonly>
|}
{{#ifeq: {{#sub:{{PAGENAME}}|0|11}}|SGU Episode|{{Numerical titles
{{#ifeq: {{#sub:{{PAGENAME}}|0|11}}|SGU Episode|{{Numerical titles
|page      = {{PAGENAME}}
|page      = {{PAGENAME}}
|category  = Full Episodes
|category  = Full Episodes
}}|}}</includeonly>
}}|}}
<noinclude>For information on how to use this template, see [[Help:Episode infobox]]
<noinclude>For information on how to use this template, see [[Help:Episode infobox]]
[[Category: Infobox templates]]
[[Category: Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 06:15, 2 May 2024

{{{episodeTitle}}}
{{{episodeDate}}}
SAMPLE icon.jpg
(brief caption for the episode icon)

SGU -1                      SGU 1

Skeptical Rogues
S: Steven Novella


Links
SGU Podcast archive
SGU Forum

For information on how to use this template, see Help:Episode infobox