Template:Blue Railroad Token: Difference between revisions
From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Jump to navigationJump to search
Create Blue Railroad token template for NFT display |
Improve template: add song names, exercise types, video embedding for Discord URLs, better formatting (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Template for displaying Blue Railroad NFT token data. | Template for displaying Blue Railroad NFT token data. | ||
</noinclude><includeonly> | |||
{| class="wikitable" style="float:right; margin-left:1em; width: | == Parameters == | ||
* '''token_id''' - The NFT token ID | |||
* '''song_id''' - The song ID (5=Blue Railroad Train, 6=Nine Pound Hammer, 10=Ginseng Sullivan) | |||
* '''date''' - Date minted (YYYY-MM-DD format) | |||
* '''date_raw''' - Raw date value from chain | |||
* '''owner''' - Wallet address of current owner | |||
* '''owner_display''' - ENS name or wallet address | |||
* '''uri''' - Video URI (IPFS or Discord) | |||
== Usage == | |||
<pre> | |||
{{Blue Railroad Token | |||
|token_id=0 | |||
|song_id=5 | |||
|date=2026-01-13 | |||
|owner=0x123... | |||
|owner_display=someone.eth | |||
|uri=ipfs://bafy... | |||
}} | |||
</pre> | |||
</noinclude><includeonly>{{#switch:{{{song_id}}} | |||
|5=[[File:Blue-railroad-train-icon.png|right|64px|link=]] | |||
|6=[[File:Nine-pound-hammer-icon.png|right|64px|link=]] | |||
|10=[[File:Ginseng-sullivan-icon.png|right|64px|link=]] | |||
}} | |||
{| class="wikitable" style="float:right; margin-left:1em; width:320px; clear:right;" | |||
|+ '''Blue Railroad Token #{{{token_id}}}''' | |+ '''Blue Railroad Token #{{{token_id}}}''' | ||
|- | |- | ||
! | ! Exercise | ||
| [[ | | {{#switch:{{{song_id}}} | ||
|5='''Squats''' ([[Blue Railroad Train]]) | |||
|6='''Pushups''' ([[Nine Pound Hammer]]) | |||
|7='''Squats''' ([[Blue Railroad Train]]) {{small|(legacy)}} | |||
|10='''Army Crawls''' ([[Ginseng Sullivan]]) | |||
|#default=Unknown (ID: {{{song_id}}}) | |||
}} | |||
|- | |- | ||
! Date Minted | ! Date Minted | ||
| [[Has date minted::{{{date}}}]] | | [[Has date minted::{{{date|Unknown}}}]] | ||
|- | |- | ||
! Owner | ! Owner | ||
| [[Has owner::{{{owner_display}}}]] {{#ifeq:{{{owner_display}}}|{{{owner}}}||<br/><small>({{{owner}}})</small>}} | | [[Has owner::{{{owner_display}}}]]{{#ifeq:{{{owner_display}}}|{{{owner}}}||<br/><small>([https://optimistic.etherscan.io/address/{{{owner}}} {{{owner}}}])</small>}} | ||
|- | |- | ||
! Video | ! Video | ||
| [https://gateway.pinata.cloud/ipfs/{{#replace:{{{uri}}}|ipfs://|}} View on IPFS] | | {{#ifeq:{{#pos:{{{uri}}}|ipfs://}}|0|<div style="margin:5px 0;"> | ||
[https://gateway.pinata.cloud/ipfs/{{#replace:{{{uri}}}|ipfs://|}} View on IPFS] | |||
</div>|{{#ifeq:{{#pos:{{{uri}}}|discord}}||[{{{uri}}} View source]|<div style="margin:5px 0;"> | |||
<video width="280" controls> | |||
<source src="https://cryptograss.live/assets/fetched/10-0xCe09A2d0-{{{token_id}}}.mp4" type="video/mp4"> | |||
[https://cryptograss.live/assets/fetched/10-0xCe09A2d0-{{{token_id}}}.mp4 Download video] | |||
</video> | |||
</div>}}}} | |||
|- | |- | ||
! Contract | ! Contract | ||
| Line 21: | Line 59: | ||
|} | |} | ||
[[Has token id::{{{token_id}}}]] | [[Has token id::{{{token_id}}}]] | ||
[[Has song id::{{{song_id}}}]] | |||
[[Has video uri::{{{uri}}}]] | [[Has video uri::{{{uri}}}]] | ||
[[Has owner address::{{{owner}}}]] | [[Has owner address::{{{owner}}}]] | ||
[[Category:Blue Railroad Tokens]] | [[Category:Blue Railroad Tokens]] | ||
</includeonly> | </includeonly> | ||
Revision as of 20:31, 15 January 2026
Template for displaying Blue Railroad NFT token data.
Parameters
- token_id - The NFT token ID
- song_id - The song ID (5=Blue Railroad Train, 6=Nine Pound Hammer, 10=Ginseng Sullivan)
- date - Date minted (YYYY-MM-DD format)
- date_raw - Raw date value from chain
- owner - Wallet address of current owner
- owner_display - ENS name or wallet address
- uri - Video URI (IPFS or Discord)
Usage
{{Blue Railroad Token
|token_id=0
|song_id=5
|date=2026-01-13
|owner=0x123...
|owner_display=someone.eth
|uri=ipfs://bafy...
}}