Template:Record: Difference between revisions
Record infobox v0.1 — name, artist, art, listen; emits Album art and Listen URL; shows who recommends it (via create-page on MediaWiki MCP Server) |
Add license=, shown on the record and read by In the studio (via update-page on MediaWiki MCP Server) |
||
| Line 10: | Line 10: | ||
<pre> | <pre> | ||
{{Record | {{Record | ||
|artist = Flatt and Scruggs | |artist = Flatt and Scruggs | ||
|art | |art = Foggy Mountain Banjo album art.jpg | ||
|listen = https://example.org/... | |listen = https://example.org/... | ||
|via | |via = bandcamp | ||
|license = CC BY-SA 4.0 | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 23: | Line 24: | ||
* '''art''' – filename of the record's art (no <code>File:</code> prefix). The file should carry {{tl|Album art}}. Recorded as <code>Album art</code>, which is how listening lists find it. | * '''art''' – filename of the record's art (no <code>File:</code> prefix). The file should carry {{tl|Album art}}. Recorded as <code>Album art</code>, which is how listening lists find it. | ||
* '''listen''' / '''via''' – where the record can be heard, and who hosts that. Recorded as <code>Listen URL</code>; lists and (eventually) the Rabbithole player read it from here. | * '''listen''' / '''via''' – where the record can be heard, and who hosts that. Recorded as <code>Listen URL</code>; lists and (eventually) the Rabbithole player read it from here. | ||
* '''license''' – the licence the record is released under, written as its own name: <code>CC BY-SA 4.0</code>, <code>CC0</code>, <code>all rights reserved</code>. Recorded as [[Property:Has license|Has license]]. | |||
* '''license_url''' – where that licence is stated, if there is a page saying so. | |||
=== Why the licence matters here === | |||
A record under a Creative Commons or public-domain licence is listed first, and named as such, in the '''In the studio''' section of every musician who played on it — see {{tl|In the studio}}. Everything else is listed after it, more quietly. A recording a reader can pass to somebody else is worth more on this wiki than one they can only point at. | |||
Leave it out when nobody has checked. Absent means unknown, and unknown is treated as "not known to be free", which is the safe way round. | |||
=== What it does unasked === | === What it does unasked === | ||
| Line 30: | Line 39: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Record templates]] | [[Category:Record templates]] | ||
</noinclude><includeonly><div class="pp-record-box">{{#if:{{{art|}}}|<div class="pp-record-art">[[File:{{{art}}}|300px|class=pp-record-art-img]]</div>[[Album art::File:{{{art}}}| ]]}}<div class="pp-record-head">{{#if:{{{display|}}}|{{{display}}}|{{#explode:{{PAGENAME}}| (|0}}}}</div><div class="pp-record-meta">{{#if:{{{artist|}}}|[[{{{artist}}}]]}}</div>{{#if:{{{listen|}}}|<div class="pp-record-listen">[{{{listen}}} listen at {{{via|source}}}][[Listen URL::{{{listen}}}| ]]</div>}}</div><div style="clear:none;"></div>{{#ask: [[Recommended record::{{FULLPAGENAME}}]] | </noinclude><includeonly><div class="pp-record-box">{{#if:{{{art|}}}|<div class="pp-record-art">[[File:{{{art}}}|300px|class=pp-record-art-img]]</div>[[Album art::File:{{{art}}}| ]]}}<div class="pp-record-head">{{#if:{{{display|}}}|{{{display}}}|{{#explode:{{PAGENAME}}| (|0}}}}</div><div class="pp-record-meta">{{#if:{{{artist|}}}|[[{{{artist}}}]]}}{{#if:{{{license|}}}|<div style="margin-top:.35em; font-size:.85em;">{{#if:{{{license_url|}}}|[{{{license_url}}} {{{license}}}]|{{{license}}}}}[[Has license::{{{license}}}| ]]</div>}}</div>{{#if:{{{listen|}}}|<div class="pp-record-listen">[{{{listen}}} listen at {{{via|source}}}][[Listen URL::{{{listen}}}| ]]</div>}}</div><div style="clear:none;"></div>{{#ask: [[Recommended record::{{FULLPAGENAME}}]] | ||
|?Appears on list=Recommended on | |?Appears on list=Recommended on | ||
|?Curator note=What they said | |?Curator note=What they said | ||
Revision as of 21:29, 17 September 2026
Record
Infobox for a record — an album, EP, single, double, soundtrack; the encyclopedic entity, as distinct from the Release: namespace, which holds bytes delivery-kid pins.
This is v0.1, deliberately small. It exists so the first hand-written record pages share a shape; it grows parameters as those pages demand them, not before. Notably absent: a year parameter — release years arrive with sources ({{Src}}), not from memory.
Usage
{{Record
|artist = Flatt and Scruggs
|art = Foggy Mountain Banjo album art.jpg
|listen = https://example.org/...
|via = bandcamp
|license = CC BY-SA 4.0
}}
Parameters
- artist – credited artist, linked.
- display – shown name; defaults to the page name with any trailing parenthetical stripped.
- art – filename of the record's art (no
File:prefix). The file should carry{{Album art}}. Recorded asAlbum art, which is how listening lists find it. - listen / via – where the record can be heard, and who hosts that. Recorded as
Listen URL; lists and (eventually) the Rabbithole player read it from here. - license – the licence the record is released under, written as its own name:
CC BY-SA 4.0,CC0,all rights reserved. Recorded as Has license. - license_url – where that licence is stated, if there is a page saying so.
Why the licence matters here
A record under a Creative Commons or public-domain licence is listed first, and named as such, in the In the studio section of every musician who played on it — see {{In the studio}}. Everything else is listed after it, more quietly. A recording a reader can pass to somebody else is worth more on this wiki than one they can only point at.
Leave it out when nobody has checked. Absent means unknown, and unknown is treated as "not known to be free", which is the safe way round.
What it does unasked
Every record page shows who recommends it — a query over listening-list subobjects. A record recommended by nobody shows nothing; the section appears with its first recommendation.