Template:BlueRailroadTokenCard: Difference between revisions

From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Jump to navigationJump to search
Update documentation - template requires link=none in SMW query (via update-page on MediaWiki MCP Server)
Use Has ipfs cid directly instead of parsing URI with unavailable string functions (via update-page on MediaWiki MCP Server)
Line 12: Line 12:
|?Has video uri
|?Has video uri
|?Has owner address
|?Has owner address
|?Has ipfs cid
|format=template
|format=template
|template=BlueRailroadTokenCard
|template=BlueRailroadTokenCard
Line 30: Line 31:
* {{{6}}} - Has video uri
* {{{6}}} - Has video uri
* {{{7}}} - Has owner address
* {{{7}}} - Has owner address
* {{{8}}} - Has ipfs cid


[[Category:Blue Railroad Templates]]
[[Category:Blue Railroad Templates]]
Line 56: Line 58:
</div>
</div>
<div style="flex: 1; min-width: 280px;">
<div style="flex: 1; min-width: 280px;">
{{#ifeq:{{#pos:{{{6}}}|ipfs://}}|0|{{#ev:videolink|https://gateway.pinata.cloud/ipfs/{{#replace:{{{6}}}|ipfs://|}}|280}}|{{#ev:videolink|https://cryptograss.live/assets/fetched/10-0xCe09A2d0-{{{2}}}.mp4|280}}}}
{{#if:{{{8|}}}|{{#ev:videolink|https://gateway.pinata.cloud/ipfs/{{{8}}}|280}}|{{#ev:videolink|https://cryptograss.live/assets/fetched/10-0xCe09A2d0-{{{2}}}.mp4|280}}}}
</div>
</div>
</div>
</div>
</div></includeonly>
</div></includeonly>

Revision as of 18:40, 21 January 2026

Display template for Blue Railroad tokens in SMW query results. Shows a card with video embed.

Usage

Use with SMW ask queries:

{{#ask: [[Category:Blue Railroad Tokens]]
|?Has token id
|?Has owner
|?Has song id
|?Has date minted
|?Has video uri
|?Has owner address
|?Has ipfs cid
|format=template
|template=BlueRailroadTokenCard
|link=none
|limit=5
|sort=Has date minted
|order=desc
}}

Parameters (set by SMW)

When using format=template with link=none:

  • {{{1}}} - Page title (plain text, e.g., "Blue Railroad Token 3")
  • {{{2}}} - Has token id
  • {{{3}}} - Has owner
  • {{{4}}} - Has song id
  • {{{5}}} - Has date minted
  • {{{6}}} - Has video uri
  • {{{7}}} - Has owner address
  • {{{8}}} - Has ipfs cid