Template:Firehose row: Difference between revisions
Slash-free row renderer; links guests individually via Module:Firehose (via create-page on MediaWiki MCP Server) |
Point guest linking at Module:Firehose links (via update-page on MediaWiki MCP Server) |
||
| Line 16: | Line 16: | ||
links, which defeats <code>#titleparts</code> and makes the episode link | links, which defeats <code>#titleparts</code> and makes the episode link | ||
impossible to relabel. Linking is therefore done here — guests through | impossible to relabel. Linking is therefore done here — guests through | ||
[[Module:Firehose]], which splits multi-guest values so each name gets its own | [[Module:Firehose links]], which splits multi-guest values so each name gets its | ||
link rather than one broken one. | own link rather than one broken one. | ||
Laid out with divs rather than table markup on purpose: this template's output | Laid out with divs rather than table markup on purpose: this template's output | ||
| Line 33: | Line 33: | ||
<div style="font-size:.72em; letter-spacing:.09em; text-transform:uppercase; color:#5a6858;">{{#if:{{{2|}}}|[[{{{2}}}]]|}}</div> | <div style="font-size:.72em; letter-spacing:.09em; text-transform:uppercase; color:#5a6858;">{{#if:{{{2|}}}|[[{{{2}}}]]|}}</div> | ||
<div style="font-weight:600; line-height:1.35;">[[{{{1}}}|{{#titleparts:{{{1}}}|0|2}}]]</div> | <div style="font-weight:600; line-height:1.35;">[[{{{1}}}|{{#titleparts:{{{1}}}|0|2}}]]</div> | ||
{{#if:{{{3|}}}|<div style="font-size:.85em; color:#3d4a3e;">with {{#invoke:Firehose|guestlinks|{{{3}}}}}</div>}} | {{#if:{{{3|}}}|<div style="font-size:.85em; color:#3d4a3e;">with {{#invoke:Firehose links|guestlinks|{{{3}}}}}</div>}} | ||
</div> | </div> | ||
<div style="flex:0 0 auto; font-family:monospace; font-size:.78em; color:#6b7566; white-space:nowrap;">{{{4|}}}{{#if:{{{5|}}}| · [{{{5}}} listen]}}</div> | <div style="flex:0 0 auto; font-family:monospace; font-size:.78em; color:#6b7566; white-space:nowrap;">{{{4|}}}{{#if:{{{5|}}}| · [{{{5}}} listen]}}</div> | ||
</div></includeonly> | </div></includeonly> | ||
Revision as of 16:51, 19 August 2026
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:
- page title of the episode
- Has podcast
- Has guest
- Has air date
- Has episode url
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. Linking is therefore done here — guests through
Module:Firehose links, which splits multi-guest values so each name gets its
own link rather than one broken one.
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.