Template:Show: Difference between revisions

From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Jump to navigationJump to search
Rewrite to use blockheight as canonical timestamp (via update-page on MediaWiki MCP Server)
Fix: remove #arraymap, add status parameter for verification styling (via update-page on MediaWiki MCP Server)
Line 7: Line 7:
<pre>
<pre>
{{Show
{{Show
|artists=Billy Strings, Del McCoury Band
|artists=Billy Strings
|venue=The Station Inn
|venue=The Station Inn
|blockheight=24140272
|blockheight=24140272
|status=proposed
|by=Tea
|source=stationinn.com
}}
}}
</pre>
</pre>


=== Parameters ===
=== Parameters ===
* '''artists''' (required) - Comma-separated list of performing artists
* '''artists''' (required) - Performing artist(s)
* '''venue''' (required) - Venue name (should match a venue page)
* '''venue''' (required) - Venue name (should match a venue page)
* '''blockheight''' (required) - Ethereum block height when the show started/starts
* '''blockheight''' (required) - Ethereum block height when the show started/starts
* '''status''' (optional) - "proposed" for bot-proposed, "verified" for human-verified, blank for unverified
* '''by''' (optional) - Who proposed/verified this
* '''source''' (optional) - Source for verification
* '''scene''' (optional) - Local music scene
* '''scene''' (optional) - Local music scene
* '''price''' (optional) - Ticket price
* '''price''' (optional) - Ticket price
Line 23: Line 29:


=== SMW Properties Set ===
=== SMW Properties Set ===
* <code>Has artist</code> - Multi-value, one per artist
* <code>Has artist</code> - The artist(s)
* <code>Has venue</code> - The venue
* <code>Has venue</code> - The venue
* <code>At blockheight</code> - The block height timestamp
* <code>At blockheight</code> - The block height timestamp
* <code>Has scene</code> - The music scene (if provided)
* <code>Has scene</code> - The music scene (if provided)
 
* <code>Has verification status</code> - proposed/verified/unverified
== Verification ==
Wrap in <code><nowiki>{{bot_proposes}}</nowiki></code> for bot-proposed shows awaiting verification:
 
<pre>
{{bot_proposes|
{{Show
|artists=Billy Strings
|venue=The Station Inn
|blockheight=24140272
}}
|by=Tea|source=stationinn.com}}
</pre>


== Page naming ==
== Page naming ==
Line 53: Line 47:


[[Category:Show templates]]
[[Category:Show templates]]
</noinclude><includeonly>{| class="infobox show-infobox" style="width: 22em; border: 1px solid #aaa; padding: 0.5em; margin: 0 0 1em 1em; float: right; clear: right; background: #f9f9f9;"
</noinclude><includeonly><div class="show-infobox {{#ifeq:{{{status|}}}|proposed|bot-proposal|{{#ifeq:{{{status|}}}|verified|show-verified|show-unverified}}}}" style="width: 22em; border: 1px solid #aaa; padding: 0.5em; margin: 0 0 1em 1em; float: right; clear: right; {{#ifeq:{{{status|}}}|proposed|background: #fff3cd; border-left: 3px solid #ffc107;|background: #f9f9f9;}}">
|-
<div style="background: #98b; font-size: 1.1em; padding: 0.3em; text-align: center; margin: -0.5em -0.5em 0.5em -0.5em;">'''Show @ block {{{blockheight}}}'''</div>
! colspan="2" style="background: #98b; font-size: 1.1em; padding: 0.3em;" | Show @ block {{{blockheight}}}
<div><strong>Artists:</strong> [[{{{artists}}}]][[Has artist::{{{artists}}}| ]]</div>
|-
<div><strong>Venue:</strong> [[{{{venue}}}]][[Has venue::{{{venue}}}| ]]</div>
! Artists
<div><strong>Block:</strong> [https://etherscan.io/block/{{{blockheight}}} {{{blockheight}}}][[At blockheight::{{{blockheight}}}| ]]</div>
| {{#arraymap:{{{artists}}}|,|x|[[x]]|, }}{{#arraymap:{{{artists}}}|,|x|[[Has artist::x| ]]|}}
{{#if:{{{scene|}}}|<div><strong>Scene:</strong> [[{{{scene}}}]][[Has scene::{{{scene}}}| ]]</div>}}
|-
{{#if:{{{price|}}}|<div><strong>Price:</strong> ${{{price}}}</div>}}
! Venue
{{#if:{{{tickets|}}}|<div><strong>Tickets:</strong> [{{{tickets}}} Buy tickets]</div>}}
| [[{{{venue}}}]][[Has venue::{{{venue}}}| ]]
{{#if:{{{ages|}}}|<div><strong>Ages:</strong> {{{ages}}}</div>}}
|-
{{#ifeq:{{{status|}}}|proposed|<div style="font-size: 0.85em; margin-top: 0.5em; color: #856404;">Proposed by {{{by|bot}}} via {{{source|unknown}}}</div>}}
! Block
{{#ifeq:{{{status|}}}|verified|<div style="font-size: 0.85em; margin-top: 0.5em; color: #228b22;">✓ Verified{{#if:{{{by|}}}| by {{{by}}}|}}</div>}}
| [https://etherscan.io/block/{{{blockheight}}} {{{blockheight}}}][[At blockheight::{{{blockheight}}}| ]]
[[Has verification status::{{#ifeq:{{{status|}}}|proposed|proposed|{{#ifeq:{{{status|}}}|verified|verified|unverified}}}}| ]]
{{#if:{{{scene|}}}|
</div>[[Category:Shows]]</includeonly>
{{!}}-
! Scene
{{!}} [[{{{scene}}}]][[Has scene::{{{scene}}}| ]]
}}
{{#if:{{{price|}}}|
{{!}}-
! Price
{{!}} ${{{price}}}
}}
{{#if:{{{tickets|}}}|
{{!}}-
! Tickets
{{!}} [{{{tickets}}} Buy tickets]
}}
{{#if:{{{ages|}}}|
{{!}}-
! Ages
{{!}} {{{ages}}}
}}
|}[[Category:Shows]]</includeonly>

Revision as of 19:29, 1 January 2026

Show - Structured data template for performances/concerts.

Uses Ethereum blockheight as the canonical timestamp anchor.

Usage

{{Show
|artists=Billy Strings
|venue=The Station Inn
|blockheight=24140272
|status=proposed
|by=Tea
|source=stationinn.com
}}

Parameters

  • artists (required) - Performing artist(s)
  • venue (required) - Venue name (should match a venue page)
  • blockheight (required) - Ethereum block height when the show started/starts
  • status (optional) - "proposed" for bot-proposed, "verified" for human-verified, blank for unverified
  • by (optional) - Who proposed/verified this
  • source (optional) - Source for verification
  • scene (optional) - Local music scene
  • price (optional) - Ticket price
  • tickets (optional) - Ticket purchase URL
  • ages (optional) - Age restriction (e.g., "21+", "All ages")

SMW Properties Set

  • Has artist - The artist(s)
  • Has venue - The venue
  • At blockheight - The block height timestamp
  • Has scene - The music scene (if provided)
  • Has verification status - proposed/verified/unverified

Page naming

Show pages should be named: Show:ArtistName-blockheight

Examples:

  • Show:BillyStrings-24140272
  • Show:BillyStrings_DelMcCouryBand-24140500

See also