Template:Record: 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)
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)
 
Magent (talk | contribs)
Record the artist as data, so a musician's page can say whose record they played on (via update-page on MediaWiki MCP Server)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
<pre>
<pre>
{{Record
{{Record
|artist = Flatt and Scruggs
|artist = Flatt and Scruggs
|art   = Foggy Mountain Banjo album art.jpg
|art     = Foggy Mountain Banjo album art.jpg
|listen = https://example.org/...
|listen = https://example.org/...
|via   = bandcamp
|via     = bandcamp
|license = CC BY-SA 4.0
}}
}}
</pre>
</pre>
Line 19: Line 20:
=== Parameters ===
=== Parameters ===


* '''artist''' – credited artist, linked.
* '''artist''' – credited artist, linked. Recorded as [[Property:Has record artist|Has record artist]], so that a musician's page can say whose session they played on.
* '''display''' – shown name; defaults to the page name with any trailing parenthetical stripped.
* '''display''' – shown name; defaults to the page name with any trailing parenthetical stripped.
* '''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, and named as such, in the '''Creative Commons Studio Work''' section of every musician who played on it — see {{tl|In the studio}}. Everything else appears under {{tl|Other studio work}} instead. 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}}}]][[Has record 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

Latest revision as of 17:31, 18 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. Recorded as Has record artist, so that a musician's page can say whose session they played on.
  • 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 as Album 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, and named as such, in the Creative Commons Studio Work section of every musician who played on it — see {{In the studio}}. Everything else appears under {{Other studio work}} instead. 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.