Difference between revisions of "Template:5X5 infobox"

From SGUTranscripts
Jump to navigation Jump to search
m (attempt minor adjustment to get numerical titles working)
(The notes page links have changed, so add a template parameter for 5x5 episode number)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{| style="float: right;border: 1px solid darkgray;padding: 5;background:#F8F9F9;margin: 1em;width:180px;" cellpadding="1" cellspacing="0"
 
{| style="float: right;border: 1px solid darkgray;padding: 5;background:#F8F9F9;margin: 1em;width:180px;" cellpadding="1" cellspacing="0"
! colspan ="2" style="background:LightSteelBlue" | {{{episodeID}}}
+
! colspan ="2" style="background:LightSteelBlue" | {{#if: {{{episodeNum|}}} | 5X5 Episode {{{episodeNum}}} | {{{episodeID}}} }}
 
|-
 
|-
| colspan ="2" {{Draft_infoBox_Headers |header = {{{Contents}}} }}
+
| colspan ="2" {{InfoBox_Headers |header = {{{Contents}}} }}
 
|-
 
|-
 
| colspan ="2" style="text-align:center;" | {{{episodeDate}}}
 
| colspan ="2" style="text-align:center;" | {{{episodeDate}}}
{{#if: {{{verified|}}} | {{Tick}} [[Transcript Verified]] {{Numerical titles
+
{{#if: {{{verified|}}} | {{Tick}} [[Help:Transcript Verified|Transcript Verified]] {{Numerical titles
 
|page      = {{PAGENAME}}
 
|page      = {{PAGENAME}}
 
|category  = Verified
 
|category  = Verified
Line 14: Line 14:
 
|style="text-align:right;width:50%;padding-right: 1em" | {{#if: {{{next|}}} | [[5X5 Episode {{{next}}}|5X5 {{{next}}}]] | [[5X5 Episode {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}|5X5 {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}]] }}
 
|style="text-align:right;width:50%;padding-right: 1em" | {{#if: {{{next|}}} | [[5X5 Episode {{{next}}}|5X5 {{{next}}}]] | [[5X5 Episode {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}|5X5 {{#expr: {{#sub:{{PAGENAME}}|12|0}}+1 }}]] }}
 
|-
 
|-
| colspan ="2" {{Draft_infoBox_Headers |header = Skeptical Rogues }}
+
| colspan ="2" {{InfoBox_Headers |header = Skeptical Rogues }}
 
|-
 
|-
 
| colspan ="2" style="padding-top:0.5em; text-indent:3em"| S: Steven Novella
 
| colspan ="2" style="padding-top:0.5em; text-indent:3em"| S: Steven Novella
Line 26: Line 26:
 
| colspan ="2" style="text-indent:3em"| {{#if: {{{evan|}}} | E: Evan Bernstein}}
 
| colspan ="2" style="text-indent:3em"| {{#if: {{{evan|}}} | E: Evan Bernstein}}
 
|-
 
|-
| {{#if: {{{guest1|}}} |colspan ="2" {{Draft_infoBox_Headers |header = Guest}} }}
+
| {{#if: {{{guest1|}}} | {{#if: {{{guest2|}}} |colspan ="2" {{InfoBox_Headers |header = Guests}} |colspan ="2" {{InfoBox_Headers |header = Guest}} }} }}
 
|-
 
|-
 
| colspan ="2"  style="text-align:center"| {{#if: {{{guest1|}}} | {{{guest1}}}}}
 
| colspan ="2"  style="text-align:center"| {{#if: {{{guest1|}}} | {{{guest1}}}}}
 
|-
 
|-
| colspan ="2" {{Draft_infoBox_Headers |header = Links}}
+
| colspan ="2" style="text-align:center"| {{#if: {{{guest2|}}} | {{{guest2}}}}}
 +
|-
 +
| colspan ="2" {{InfoBox_Headers |header = Links}}
 
|-
 
|-
 
| colspan ="2"  style="text-align:center;" | {{#if: {{{downloadLink|}}}  | [{{{downloadLink}}} Download Podcast]}}
 
| colspan ="2"  style="text-align:center;" | {{#if: {{{downloadLink|}}}  | [{{{downloadLink}}} Download Podcast]}}
 
|-
 
|-
| colspan ="2"  style="text-align:center;" | {{#if: {{{notesLink|}}}   | [{{{notesLink}}} Show Notes] }}
+
| colspan ="2"  style="text-align:center;" | {{#if: {{{episodeNum|}}} |<!--
 +
    Episode number given, use the new link format
 +
-->[http://www.theskepticsguide.org/podcast/5x5/{{{episodeNum}}} Show Notes] |<!--
 +
    else, fall back to the given link
 +
    Remove this #if once all the template calls have been changed
 +
-->{{#if: {{{notesLink|}}} | [{{{notesLink}}} Show Notes] }}
 +
}}
 
|-
 
|-
 
| colspan ="2"  style="text-align:center;" | {{#if: {{{forumLink|}}}  | [{{{forumLink}}} Forum Topic] }}
 
| colspan ="2"  style="text-align:center;" | {{#if: {{{forumLink|}}}  | [{{{forumLink}}} Forum Topic] }}
Line 43: Line 51:
 
|}}
 
|}}
 
<noinclude>For information on how to use this template, see [[Help:5X5 infobox]]
 
<noinclude>For information on how to use this template, see [[Help:5X5 infobox]]
 +
[[Category: Infobox templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:40, 25 July 2013

{{{episodeID}}}
{{{Contents}}}
{{{episodeDate}}}
5X5 -1 5X5 1
Skeptical Rogues
S: Steven Novella
Links

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