Template:Show: Difference between revisions
From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
Create Show infobox template with semantic properties for event listings (via create-page on MediaWiki MCP Server) |
Fix #replace - strip single brackets instead of double to avoid parser issues (via update-page on MediaWiki MCP Server) |
||
| (24 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
'''Show''' - Structured data template for performances/concerts. | |||
Uses Ethereum blockheight as the canonical timestamp anchor. | |||
== Usage == | |||
<pre> | <pre> | ||
{{Show | {{Show | ||
| | |artists=Billy Strings | ||
|venue=The Station Inn | |||
|blockheight=24140272 | |||
|venue=The | |image=Show-poster.jpg | ||
| | |status=proposed | ||
| | |by=Tea | ||
| | |source=stationinn.com | ||
| | |||
| | |||
}} | }} | ||
[[Category:Shows]] | |||
</pre> | </pre> | ||
'''Note:''' You must manually add <nowiki>[[Category:Shows]]</nowiki> to pages using this template (SMW bug workaround). | |||
=== Parameters === | === Parameters === | ||
* ''' | * '''artists''' (required) - Performing artist(s), can include wiki links | ||
* ''' | * '''venue''' (required) - Venue name (should match a venue page) | ||
* ''' | * '''blockheight''' (required) - Ethereum block height when the show started/starts | ||
* ''' | * '''image''' (optional) - Show poster or photo (just the filename, e.g., "Show-poster.jpg") | ||
* ''' | * '''title''' (optional) - Custom title for social sharing (defaults to "artists at venue - PickiPedia") | ||
* ''' | * '''status''' (optional) - "proposed" for bot-proposed, "verified" for human-verified, blank for unverified | ||
* '''price''' - Ticket price | * '''by''' (optional) - Who proposed/verified this | ||
* '''tickets''' - Ticket purchase URL | * '''source''' (optional) - Source for verification | ||
* '''ages''' - Age restriction (e.g., "21+", "All ages") | * '''price''' (optional) - Ticket price | ||
* '''tickets''' (optional) - Ticket purchase URL | |||
* '''ages''' (optional) - Age restriction (e.g., "21+", "All ages") | |||
* '''description''' (optional) - Short description for social sharing cards | |||
=== SMW Properties Set === | |||
</ | * <code>Artist</code> - The artist(s) | ||
* <code>Venue</code> - The venue | |||
* <code>Blockheight</code> - The block height timestamp | |||
* <code>Verification status</code> - proposed/verified/unverified | |||
{{#if:{{{ | |||
{{ | == Page naming == | ||
Show pages should be named: <code>Show:ArtistName-blockheight</code> | |||
{{ | |||
Examples: | |||
{{#if:{{{ | * <code>Show:BillyStrings-24140272</code> | ||
{{ | * <code>Show:BillyStrings_DelMcCouryBand-24140500</code> | ||
{{ | == See also == | ||
}} | * [[Template:Bot_proposes]] | ||
{{# | * [[Template:Verified]] | ||
[[Category:Show templates]] | |||
{{ | </noinclude><includeonly>{{#seo: | ||
}} | |title={{#if:{{{title|}}}|{{{title}}}|{{{artists}}} at {{{venue}}} - PickiPedia}} | ||
{{#if:{{{ | |description={{#if:{{{description|}}}|{{{description}}}|{{{artists}}} performing at {{{venue}}} (block {{{blockheight}}})}} | ||
{{ | |site_name=PickiPedia | ||
|type=article | |||
|image={{#if:{{{image|}}}|{{filepath:{{{image}}}}}|}}}}<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;}}" data-source="{{{source|}}}" data-proposed-by="{{{by|}}}"> | |||
}} | <div style="background: #98b; font-size: 1.1em; padding: 0.3em; text-align: center; margin: -0.5em -0.5em 0.5em -0.5em;">{{{artists}}} at {{{venue}}}</div> | ||
{{#if:{{{ | {{#if:{{{image|}}}|<div style="text-align: center; margin: 0.5em 0;">[[File:{{{image}}}|220px]]</div>|}}<div><strong>Artists:</strong> {{{artists}}}</div> | ||
{{ | <div><strong>Venue:</strong> [[{{{venue}}}]]</div> | ||
<div><strong>Showtime:</strong> [https://etherscan.io/block/{{{blockheight}}} {{{blockheight}}}]</div>{{#if:{{{price|}}}|<div><strong>Price:</strong> ${{{price}}}</div>|}}{{#if:{{{tickets|}}}|<div><strong>Tickets:</strong> [{{{tickets}}} Buy tickets]</div>|}}{{#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>|}}{{#ifeq:{{{status|}}}|verified|<div style="font-size: 0.85em; margin-top: 0.5em; color: #228b22;">✓ Verified{{#if:{{{by|}}}| by {{{by}}}|}}</div>|}}</div>{{#set:Artist={{#replace:{{#replace:{{{artists}}}|]|}}|[|}}}}{{#set:Venue={{{venue}}}}}{{#set:Blockheight={{{blockheight}}}}}{{#set:Verification status={{#ifeq:{{{status|}}}|verified|verified|{{#ifeq:{{{status|}}}|proposed|proposed|unverified}}}}}}</includeonly> | |||
{{ | |||
}} | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
}} | |||
{{# | |||
{{ | |||
{{ | |||
}} | |||
{{# | |||
{{ | |||
{{ | |||
}} | |||
</includeonly> | |||
Latest revision as of 22:01, 7 February 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
|image=Show-poster.jpg
|status=proposed
|by=Tea
|source=stationinn.com
}}
[[Category:Shows]]
Note: You must manually add [[Category:Shows]] to pages using this template (SMW bug workaround).
Parameters
- artists (required) - Performing artist(s), can include wiki links
- venue (required) - Venue name (should match a venue page)
- blockheight (required) - Ethereum block height when the show started/starts
- image (optional) - Show poster or photo (just the filename, e.g., "Show-poster.jpg")
- title (optional) - Custom title for social sharing (defaults to "artists at venue - PickiPedia")
- status (optional) - "proposed" for bot-proposed, "verified" for human-verified, blank for unverified
- by (optional) - Who proposed/verified this
- source (optional) - Source for verification
- price (optional) - Ticket price
- tickets (optional) - Ticket purchase URL
- ages (optional) - Age restriction (e.g., "21+", "All ages")
- description (optional) - Short description for social sharing cards
SMW Properties Set
Artist- The artist(s)Venue- The venueBlockheight- The block height timestampVerification status- proposed/verified/unverified
Page naming
Show pages should be named: Show:ArtistName-blockheight
Examples:
Show:BillyStrings-24140272Show:BillyStrings_DelMcCouryBand-24140500