Difference between revisions of "Template:Infobox podcast"

From Stationery Wiki
Jump to navigation Jump to search
(Added Audio File link)
m (make length numeric)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{| border="0" cellpadding="3" cellspacing="1" align="right" style="margin-left:1em; background:#f0f0f0;width:300px;"
 
{| border="0" cellpadding="3" cellspacing="1" align="right" style="margin-left:1em; background:#f0f0f0;width:300px;"
 
|-
 
|-
! colspan="2" | [[{{{name}}}]]
+
! colspan="2" | [[{{{name}}} (Podcast)]]
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
 
| Episode: || {{{number}}}
 
| Episode: || {{{number}}}
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
| Title: || {{{title}}}
+
| Title: || [[podcast episode title::{{{title}}}]]
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
| Release Date: || {{{date}}}
+
| Release Date: || [[podcast release date::{{{date}}}]]
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
 
| Hosts: || {{{hosts}}}
 
| Hosts: || {{{hosts}}}
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
| Guests: || {{{guests}}}
+
| Guests: || {{#if: {{{guests}}} | {{{guests}}} | No guests this episode}}
 
|-
 
|-
 +
{{#set:
 +
podcast episode number={{{number}}}
 +
}}
 
! colspan="2" | Additional Information
 
! colspan="2" | Additional Information
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
Line 19: Line 22:
 
| Audio File: || {{{audiolink}}}  
 
| Audio File: || {{{audiolink}}}  
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
 
+
| Length: || {{#if: {{{length}}} | [[podcast length::{{{length}}}]] minutes | }}
| {{ #if: {{#expr: {{{number}}} - 1 }} | [[{{{name}}} {{#expr: {{{number}}} - 1 }}|Previous Episode]] | }} || [[{{{name}}} {{#expr: {{{number}}} + 1 }}|Next Episode]]
+
|- bgcolor="#ffffff"
 
+
| {{ #ifeq: {{{number}}} | 1 | | [[{{{name}}} {{#expr: {{{number}}} - 1 }}|Previous Episode]] }} || [[{{{name}}} {{#expr: {{{number}}} + 1 }}|Next Episode]]
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 29: Line 32:
 
To use it in an article, copy the template below and paste it into an article.
 
To use it in an article, copy the template below and paste it into an article.
 
Empty fields won't be displayed in the article.  
 
Empty fields won't be displayed in the article.  
 +
 +
Please enter the length in minutes, e.g. for 73 minutes just enter length = 73
  
 
===Template===
 
===Template===
Line 41: Line 46:
 
| link =  
 
| link =  
 
| audiolink =  
 
| audiolink =  
 +
| length =
  
 
}}
 
}}

Latest revision as of 12:06, 28 January 2018

"{{{number}}}" is not a number.
[[{{{name}}} (Podcast)]]
Episode: {{{number}}}
Title: {{{title}}}
Release Date: {{{date}}}
Hosts: {{{hosts}}}
Guests: {{{guests}}}
Additional Information
Official page: {{{link}}}
Audio File: {{{audiolink}}}
Length: {{{length}}} minutes
[[{{{name}}} Expression error: Unrecognised punctuation character "{".|Previous Episode]] [[{{{name}}} Expression error: Unrecognised punctuation character "{".|Next Episode]]


Description[edit]

This template is used to create an infobox in an article about a podcast. To use it in an article, copy the template below and paste it into an article. Empty fields won't be displayed in the article.

Please enter the length in minutes, e.g. for 73 minutes just enter length = 73

Template[edit]

{{Infobox podcast
| name = 
| number = 
| title = 
| date = 
| hosts = 
| guests = 
| link = 
| audiolink = 
| length = 

}}