Difference between revisions of "Template:Infobox podcast"

From Stationery Wiki
Jump to navigation Jump to search
m (Added title)
m (make length numeric)
 
(16 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"
 
| Official page: || {{{link}}}  
 
| Official page: || {{{link}}}  
 
|- bgcolor="#ffffff"
 
|- bgcolor="#ffffff"
 
+
| Audio File: || {{{audiolink}}}
| {{ #if: {{#expr: {{{number}}} - 1 }} | [[{{{name}}} {{#expr: {{{number}}} - 1 }}|Previous Episode]] | }} || [[{{{name}}} {{#expr: {{{number}}} + 1 }}|Next Episode]]
+
|- bgcolor="#ffffff"
 
+
| Length: || {{#if: {{{length}}} | [[podcast length::{{{length}}}]] minutes | }}
 +
|- bgcolor="#ffffff"
 +
| {{ #ifeq: {{{number}}} | 1 | | [[{{{name}}} {{#expr: {{{number}}} - 1 }}|Previous Episode]] }} || [[{{{name}}} {{#expr: {{{number}}} + 1 }}|Next Episode]]
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 27: 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===
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Infobox podcast
 
{{Infobox podcast
| name           =  
+
| name =  
| number           =  
+
| number =  
| title         =  
+
| title =  
| date         =  
+
| date =  
| hosts   =  
+
| hosts =  
| guests     =  
+
| guests =  
| link       =  
+
| link =
 +
| audiolink =
 +
| length =  
  
 
}}
 
}}

Latest revision as of 13: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 = 

}}