Template:PodcastEpisode: Difference between revisions

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
Magent (talk | contribs)
Create PodcastEpisode template for semantic tagging of podcast guests (via create-page on MediaWiki MCP Server)
 
Magent (talk | contribs)
Switch to house-style Has * properties; add audio and duration; single annotation for page-valued links (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
<noinclude>
<noinclude>
== Podcast Episode ==
== Podcast Episode ==
Template for documenting podcast episodes. Sets semantic properties for guests and episode metadata.
Template for documenting podcast episodes. Sets the semantic properties that
[[Template:Firehose]] queries, so an episode recorded here shows up in every
firehose that matches it — the show's page, a guest's page, the front page.


=== Usage ===
=== Usage ===
Line 10: Line 12:
|guest=Guest Name
|guest=Guest Name
|guest2=Second Guest
|guest2=Second Guest
|guest3=Third Guest
|date=2025-01-15
|date=2025-01-15
|url=https://example.com/episode
|url=https://example.com/episode
|audio=https://example.com/episode.mp3
|duration=3720
|description=Brief description of the episode
|description=Brief description of the episode
}}
}}
Line 18: Line 21:


=== Parameters ===
=== Parameters ===
* '''podcast''' - Name of the podcast (links to podcast page)
* '''podcast''' - Name of the podcast. Must match the podcast's page title.
* '''title''' - Episode title
* '''title''' - Episode title
* '''guest''' through '''guest5''' - Guest name(s), linked to wiki pages
* '''guest''' through '''guest5''' - Guest name(s). Give the guest's wiki page title where one exists; a name with no page becomes a redlink, which is the invitation to write it.
* '''date''' - Publication date (YYYY-MM-DD)
* '''date''' - Publication date (YYYY-MM-DD)
* '''url''' - Direct link to the episode
* '''url''' - The publisher's page for the episode
* '''audio''' - Direct audio file, from the feed's RSS enclosure
* '''duration''' - Running time '''in seconds'''. Feeds publish this inconsistently; normalise before storing.
* '''description''' - Episode description or summary
* '''description''' - Episode description or summary
=== Notes ===
Guests and the podcast are stored with page-valued properties, so
<code><nowiki>[[Has guest::Name]]</nowiki></code> both renders the link and records the
annotation. There is no need to write the link separately.


[[Category:Infobox templates]]
[[Category:Infobox templates]]
Line 33: Line 43:
{{!}}-
{{!}}-
! Podcast
! Podcast
{{!}} [[{{{podcast}}}]][[podcast::{{{podcast}}}| ]]
{{!}} [[Has podcast::{{{podcast}}}]]
}}
}}
{{#if:{{{date|}}}|
{{#if:{{{date|}}}|
{{!}}-
{{!}}-
! Date
! Date
{{!}} {{{date}}}[[air_date::{{{date}}}| ]]
{{!}} [[Has air date::{{{date}}}]]
}}
}}
{{#if:{{{guest|}}}|
{{#if:{{{guest|}}}|
{{!}}-
{{!}}-
! Guest(s)
! Guest(s)
{{!}} [[{{{guest}}}]][[guest::{{{guest}}}| ]]{{#if:{{{guest2|}}}|, [[{{{guest2}}}]][[guest::{{{guest2}}}| ]]}}{{#if:{{{guest3|}}}|, [[{{{guest3}}}]][[guest::{{{guest3}}}| ]]}}{{#if:{{{guest4|}}}|, [[{{{guest4}}}]][[guest::{{{guest4}}}| ]]}}{{#if:{{{guest5|}}}|, [[{{{guest5}}}]][[guest::{{{guest5}}}| ]]}}
{{!}} [[Has guest::{{{guest}}}]]{{#if:{{{guest2|}}}|, [[Has guest::{{{guest2}}}]]}}{{#if:{{{guest3|}}}|, [[Has guest::{{{guest3}}}]]}}{{#if:{{{guest4|}}}|, [[Has guest::{{{guest4}}}]]}}{{#if:{{{guest5|}}}|, [[Has guest::{{{guest5}}}]]}}
}}
{{#if:{{{duration|}}}|
{{!}}-
! Length
{{!}} {{#expr: round({{{duration}}} / 60, 0)}} min[[Has duration::{{{duration}}}| ]]
}}
}}
{{#if:{{{url|}}}|
{{#if:{{{url|}}}|
{{!}}-
{{!}}-
! Link
! Link
{{!}} [{{{url}}} Listen][[episode_url::{{{url}}}| ]]
{{!}} [{{{url}}} Listen][[Has episode url::{{{url}}}| ]]
}}
{{#if:{{{audio|}}}|
{{!}}-
! Audio
{{!}} [{{{audio}}} Audio file][[Has audio url::{{{audio}}}| ]]
}}
}}
|}
|}

Revision as of 16:43, 19 August 2026

Podcast Episode

Template for documenting podcast episodes. Sets the semantic properties that Template:Firehose queries, so an episode recorded here shows up in every firehose that matches it — the show's page, a guest's page, the front page.

Usage

{{PodcastEpisode
|podcast=Bluegrass Jam Along
|title=Episode Title
|guest=Guest Name
|guest2=Second Guest
|date=2025-01-15
|url=https://example.com/episode
|audio=https://example.com/episode.mp3
|duration=3720
|description=Brief description of the episode
}}

Parameters

  • podcast - Name of the podcast. Must match the podcast's page title.
  • title - Episode title
  • guest through guest5 - Guest name(s). Give the guest's wiki page title where one exists; a name with no page becomes a redlink, which is the invitation to write it.
  • date - Publication date (YYYY-MM-DD)
  • url - The publisher's page for the episode
  • audio - Direct audio file, from the feed's RSS enclosure
  • duration - Running time in seconds. Feeds publish this inconsistently; normalise before storing.
  • description - Episode description or summary

Notes

Guests and the podcast are stored with page-valued properties, so [[Has guest::Name]] both renders the link and records the annotation. There is no need to write the link separately.