Template:PodcastEpisode: Difference between revisions
Record topics rather than guests; guest params kept as aliases (via update-page on MediaWiki MCP Server) |
Fix #expr: round is an infix operator, so the Length row was showing an error on every episode page (via update-page on MediaWiki MCP Server) |
||
| Line 43: | Line 43: | ||
<code><nowiki>[[Has topic::Name]]</nowiki></code> both renders the link and | <code><nowiki>[[Has topic::Name]]</nowiki></code> both renders the link and | ||
records the annotation. There is no need to write the link separately. | records the annotation. There is no need to write the link separately. | ||
Note that <code>#expr</code> takes <code>round</code> as an infix operator — | |||
<code>x / 60 round 0</code>, never <code>round(x / 60, 0)</code>. The function | |||
form parses and then fails at render time with "Unexpected round operator", | |||
which is the sort of error you only find by looking at a page. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
| Line 67: | Line 72: | ||
{{!}}- | {{!}}- | ||
! Length | ! Length | ||
{{!}} {{#expr: | {{!}} {{#expr: {{{duration}}} / 60 round 0}} min[[Has duration::{{{duration}}}| ]] | ||
}} | }} | ||
{{#if:{{{url|}}}| | {{#if:{{{url|}}}| | ||
Revision as of 18:28, 13 September 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, the front page, and the page of every person, band or place the episode is about.
Usage
{{PodcastEpisode
|podcast=Bluegrass Jam Along
|title=Episode Title
|topic=Bronwyn Keith-Hynes
|topic2=Tony Rice
|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
- topic through topic5 - What the episode is about: a person, a band, a festival, a tune. Give the subject's wiki page title where one exists; a name with no page becomes a redlink, which is the invitation to write it.
- guest through guest5 - Accepted as aliases for the topic parameters.
- 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
Topics are stored with Has topic rather than Has guest. An episode title yields proper nouns without saying what kind of thing each one is, or whether the named party appeared or was only discussed — and asserting that somebody was a guest when the episode merely discussed them puts a false claim on their page. Recording a topic is true in both cases.
Topics and the podcast are stored with page-valued properties, so
[[Has topic::Name]] both renders the link and
records the annotation. There is no need to write the link separately.
Note that #expr takes round as an infix operator —
x / 60 round 0, never round(x / 60, 0). The function
form parses and then fails at render time with "Unexpected round operator",
which is the sort of error you only find by looking at a page.