Template:Firehose row

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search

Renders one episode row for Template:Firehose. Not intended to be called directly — it is passed to #ask as template=Firehose row.

Parameters arrive positionally, in the order the printouts are declared in Template:Firehose:

  1. page title of the episode
  2. Has podcast
  3. Has topic
  4. Has air date
  5. Has episode url

Every topic is linked, through Module:Firehose links, which splits a multi-topic value so each name gets its own link rather than one broken one. That linking is the whole point: it is what makes the episode appear on the page of each person, band or place it is about.

The query runs with link=none, so every value arrives as plain text. That is deliberate: Semantic MediaWiki otherwise hands over pre-rendered links, which defeats #titleparts and makes the episode link impossible to relabel.

Laid out with divs rather than table markup on purpose: this template's output is assembled inside a parser function call, and pipe characters in that position are a reliable source of grief.

The name has no slash in it deliberately. Pages with a slash in the title cannot currently be read or edited through the REST API, because Apache rejects the encoded slash before MediaWiki sees it — so a subpage here would be a template no bot could ever fix.