Template:Firehose: 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)
Use slash-free row template and link=none so titles and guest links render correctly (via update-page on MediaWiki MCP Server)
Magent (talk | contribs)
Query Has topic; accept topic= (guest= kept as an alias) (via update-page on MediaWiki MCP Server)
Line 3: Line 3:
Embeds a live list of podcast episodes. A firehose is just a query, so the same
Embeds a live list of podcast episodes. A firehose is just a query, so the same
template gives you the whole scene on the front page, one show's back catalogue
template gives you the whole scene on the front page, one show's back catalogue
on its own page, or every appearance a person has made on their page.
on its own page, or every episode about a person, band or place on theirs.


=== Usage ===
=== Usage ===
Line 10: Line 10:
{{Firehose|limit=20}}              more of them
{{Firehose|limit=20}}              more of them
{{Firehose|show=Toy Heart with Tom Power}}  one show
{{Firehose|show=Toy Heart with Tom Power}}  one show
{{Firehose|guest=Bronwyn Keith-Hynes}}      one person's appearances
{{Firehose|topic=Bronwyn Keith-Hynes}}      everything about one subject
{{Firehose|guest={{PAGENAME}}}}    the same, on that person's own page
{{Firehose|topic={{PAGENAME}}}}    the same, on that subject's own page
{{Firehose|show=Grass Talk Radio|limit=5}}  combine them
{{Firehose|show=Grass Talk Radio|limit=5}}  combine them
</pre>
</pre>
Line 18: Line 18:
* '''limit''' - how many episodes to show. Defaults to 10.
* '''limit''' - how many episodes to show. Defaults to 10.
* '''show''' - restrict to one podcast. Must match the podcast's page title.
* '''show''' - restrict to one podcast. Must match the podcast's page title.
* '''guest''' - restrict to episodes featuring one person. Must match their page title.
* '''topic''' - restrict to episodes about one subject: a person, a band, a festival, a tune. Must match that subject's page title.
* '''guest''' - accepted as an alias for '''topic'''.
* '''heading''' - optional heading rendered above the list.
* '''heading''' - optional heading rendered above the list.


Line 26: Line 27:
firehose, the fix is on the wiki: add the show, or add a guest-name pattern so
firehose, the fix is on the wiki: add the show, or add a guest-name pattern so
its episode titles parse.
its episode titles parse.
Topics are recorded with [[Property:Has topic|Has topic]], which is deliberately
general — an episode title gives up proper nouns without saying what kind of
thing each one is, or whether the named party was in the room or merely
discussed. One property, many entities per episode, and every entity gets the
episode back on its own page.


Rows are drawn by [[Template:Firehose row]]. The query runs with
Rows are drawn by [[Template:Firehose row]]. The query runs with
Line 33: Line 40:
For anything this template does not cover, write the <code>#ask</code> yourself —
For anything this template does not cover, write the <code>#ask</code> yourself —
it is an ordinary semantic query over <code>Has podcast</code>,
it is an ordinary semantic query over <code>Has podcast</code>,
<code>Has guest</code> and <code>Has air date</code>, and a firehose of your own
<code>Has topic</code> and <code>Has air date</code>, and a firehose of your own
design is a legitimate thing to build.
design is a legitimate thing to build.


Line 40: Line 47:
[[Category:Podcast episodes]]
[[Category:Podcast episodes]]
{{#if:{{{show|}}}|[[Has podcast::{{{show}}}]]|}}
{{#if:{{{show|}}}|[[Has podcast::{{{show}}}]]|}}
{{#if:{{{guest|}}}|[[Has guest::{{{guest}}}]]|}}
{{#if:{{{topic|{{{guest|}}}}}}|[[Has topic::{{{topic|{{{guest}}}}}}]]|}}
|?Has podcast=
|?Has podcast=
|?Has guest=
|?Has topic=
|?Has air date#LOCL=
|?Has air date#LOCL=
|?Has episode url=
|?Has episode url=

Revision as of 08:31, 20 August 2026

Firehose

Embeds a live list of podcast episodes. A firehose is just a query, so the same template gives you the whole scene on the front page, one show's back catalogue on its own page, or every episode about a person, band or place on theirs.

Usage

{{Firehose}}                        the most recent episodes across every show
{{Firehose|limit=20}}               more of them
{{Firehose|show=Toy Heart with Tom Power}}   one show
{{Firehose|topic=Bronwyn Keith-Hynes}}       everything about one subject
{{Firehose|topic={{PAGENAME}}}}     the same, on that subject's own page
{{Firehose|show=Grass Talk Radio|limit=5}}   combine them

Parameters

  • limit - how many episodes to show. Defaults to 10.
  • show - restrict to one podcast. Must match the podcast's page title.
  • topic - restrict to episodes about one subject: a person, a band, a festival, a tune. Must match that subject's page title.
  • guest - accepted as an alias for topic.
  • heading - optional heading rendered above the list.

Notes

Episodes come from Category:Podcast episodes, which is populated from the podcast feeds listed in Category:Podcasts. If a show is missing from a firehose, the fix is on the wiki: add the show, or add a guest-name pattern so its episode titles parse.

Topics are recorded with Has topic, which is deliberately general — an episode title gives up proper nouns without saying what kind of thing each one is, or whether the named party was in the room or merely discussed. One property, many entities per episode, and every entity gets the episode back on its own page.

Rows are drawn by Template:Firehose row. The query runs with link=none so that the row template receives plain values it can relabel and link itself; see that template for why.

For anything this template does not cover, write the #ask yourself — it is an ordinary semantic query over Has podcast, Has topic and Has air date, and a firehose of your own design is a legitimate thing to build.